routine update to gpresent-2.5; OK pascal@ (MAINTAINER)

This commit is contained in:
schwarze 2018-03-07 12:03:37 +00:00
parent aac6ceb7be
commit 137d1af853
3 changed files with 28 additions and 11 deletions

View File

@ -1,11 +1,10 @@
# $OpenBSD: Makefile,v 1.2 2016/05/07 12:40:58 pascal Exp $
# $OpenBSD: Makefile,v 1.3 2018/03/07 12:03:37 schwarze Exp $
COMMENT = make presentations with groff and PDF
DISTNAME = gpresent-2.3
DISTNAME = gpresent-2.5
CATEGORIES = textproc
HOMEPAGE = http://www.science.uva.nl/~bobd/useful/gpresent/
HOMEPAGE = https://staff.fnwi.uva.nl/b.diertens/useful/gpresent/
MAINTAINER = Pascal Stumpf <pascal@stumpf.co>
REVISION = 0
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes

View File

@ -1,2 +1,2 @@
SHA256 (gpresent-2.3.tar.gz) = p2ubk5+BB9U9ejycH0A6OvI4aMHmsuYJ73CzDRLXDFE=
SIZE (gpresent-2.3.tar.gz) = 119129
SHA256 (gpresent-2.5.tar.gz) = NTukz0zPe3VSF+bbtouwiwSo+a6trx/wHnv6KTomjs4=
SIZE (gpresent-2.5.tar.gz) = 118063

View File

@ -1,8 +1,9 @@
$OpenBSD: patch-presentps,v 1.1.1.1 2014/08/31 17:28:35 schwarze Exp $
Prevent document corruption when including EPS files.
--- presentps.orig Thu Feb 26 10:35:49 2004
+++ presentps Fri Aug 29 20:26:23 2014
@@ -393,8 +393,17 @@ foreach (@pre){
$OpenBSD: patch-presentps,v 1.2 2018/03/07 12:03:37 schwarze Exp $
Prevent document corruption when including nested EPS files.
Index: presentps
--- presentps.orig
+++ presentps
@@ -453,8 +453,18 @@ foreach (@pre){
while (<>) {
$pageln = $nextln;
@page = ();
@ -10,6 +11,7 @@ Prevent document corruption when including EPS files.
while (<>) {
- if (/^EEND /) {
+ if (/^%%BeginDocument:/) {
+ # prevent processing of included document
+ $embedded++;
+ push @page, $_;
+ } elsif ($embedded) {
@ -21,3 +23,19 @@ Prevent document corruption when including EPS files.
push @page, "EEND\n";
s/^EEND //;
redo;
@@ -476,15 +486,6 @@ while (<>) {
s/ EP$//;
push @page, $_;
push @page, "EP\n";
- } elsif (/^%%BeginDocument:/) {
- # prevent processing of included document
- push @page, $_;
- while (<>) {
- push @page, $_;
- if (/^%%EndDocument$/) {
- last;
- }
- }
} elsif (/^%%Trailer$/) {
$lastpage = 1;
$nextln = $_;