View | Details | Raw Unified | Return to bug 111287
Collapse All | Expand All

(-)peps/Makefile (-20 / +16 lines)
Lines 6-38 Link Here
6
#
6
#
7
7
8
PORTNAME=	peps
8
PORTNAME=	peps
9
PORTVERSION=	1.0
9
PORTVERSION=	2.0
10
PORTREVISION=	1
10
PORTREVISION=	0
11
CATEGORIES=	graphics
11
CATEGORIES=	graphics
12
MASTER_SITES=	${MASTER_SITE_LOCAL}
12
MASTER_SITES=	ftp://ftp.peps.redprince.net/unix/peps/ \
13
MASTER_SITE_SUBDIR=	petef
13
		http://www.peps.redprince.net/peps/2.0/		
14
14
15
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	Converts EPS images to anti-aliased PGM bitmaps
16
COMMENT=	Converts EPS images to anti-aliased bitmaps
17
17
18
PLIST_FILES=	bin/peps
18
MAN1=	peps.1
19
PLIST_SUB=	DISTNAME=${DISTNAME}
20
PLIST_FILES=	bin/peps \
21
		etc/peps.mime \
22
		share/doc/%%DISTNAME%%/peps.pdf
23
PLIST_DIRS=	share/doc/%%DISTNAME%%
19
24
20
USE_GHOSTSCRIPT_RUN=	yes
25
USE_GHOSTSCRIPT_RUN=	yes
26
MAKE_ENV=	DOCDIR=${PREFIX}/share/doc MAN1DIR=${PREFIX}/man/man1 \
27
		ETC=${PREFIX}/etc XBINDIR=${PREFIX}/bin
21
28
22
RUN_DEPENDS=	pnmtopng:${PORTSDIR}/graphics/netpbm
29
.if !defined(WITHOUT_X11)
23
30
PLIST_FILES+=	bin/xpeps
24
pre-fetch:
31
INSTALL_TARGET= install xinstall
25
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
26
	@${ECHO} ""
27
	@${ECHO} "      Define WITH_GHOSTSCRIPT_AFPL=yes to use"
28
	@${ECHO} "      AFPL Postscript interpreter instead of GNU one"
29
	@${ECHO} ""
30
.endif
32
.endif
31
32
post-patch:
33
	@${REINPLACE_CMD} -e 's!cc -O3!${CC} ${CFLAGS}!' ${WRKSRC}/Makefile
34
35
do-install:
36
	${INSTALL_PROGRAM} ${WRKSRC}/peps ${PREFIX}/bin
37
33
38
.include <bsd.port.mk>
34
.include <bsd.port.mk>
(-)peps/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (peps-1.0.tar.gz) = 3c60e405dd9994cc4145fd7274efe8d2
1
MD5 (peps-2.0.tar.gz) = e0d90fe74976c0e7cc6dfc49afe29476
2
SHA256 (peps-1.0.tar.gz) = 91cdaa421b064c12f5259a504cf96089101f41e2acd7d1db73d09dfd11a81e33
2
SHA256 (peps-2.0.tar.gz) = b514fed9412548cdcf43a95b6dcf01b2038f314bc9ef363498ebd2779c897a91
3
SIZE (peps-1.0.tar.gz) = 203248
3
SIZE (peps-2.0.tar.gz) = 55421
(-)peps/files/patch-peps.c (-37 lines)
Lines 1-37 Link Here
1
--- peps.c-	Thu Jul  5 05:29:56 2001
2
+++ peps.c	Mon Jun 16 15:13:13 2003
3
@@ -62,6 +62,7 @@
4
  */
5
 #include <stdio.h>
6
 #include <stdlib.h>
7
+#include <sys/wait.h>
8
 
9
 char gsargs[] = "gs "
10
 	"-q "
11
@@ -181,7 +182,8 @@
12
 }
13
 
14
 int main(int argc, char *argv[]) {
15
-	register int i;
16
+	register int i; 
17
+	int status, error;
18
 	register char *charptr;
19
 	FILE *gs, *eps;
20
 
21
@@ -420,8 +422,14 @@
22
 		input, input
23
 		);
24
 
25
-	pclose(gs);
26
+	status = pclose(gs);
27
 
28
-	return 0;
29
+	error = !WIFEXITED(status) || WEXITSTATUS(status);
30
+
31
+	if (error && output)
32
+		(void) remove(output);
33
+			
34
+	exit(error);
35
+		
36
 }
37
 
(-)peps/pkg-descr (-7 / +6 lines)
Lines 1-8 Link Here
1
peps is a utility to Print Encapsulated PostScript files.
1
Peps will preprocess encapsulated Postscript files for conversion by Ghostscript
2
Specifically, it allows you to convert an EPS file into an anti-aliased
2
into bitmaps.  It provides variable levels of resolution and anti-aliasing. 
3
PGM bitmap (with a variable resolution and anti-aliasing level).
3
You can use it as a stand-alone Postscript-to-bitmap conversion program, or use 
4
If the -p option is specified, the resulting bitmap is piped through
4
it on-line to create bitmaps on the fly and send them out to a web browser, even 
5
pnmtopng to create a PNG image.
5
compressing them if the browser supports gzip compression.
6
6
7
- Pete
7
WWW: http://peps.redprince.net/peps/
8
petef@databits.net

Return to bug 111287