aboutsummaryrefslogtreecommitdiffstats
path: root/print/pstotext/Makefile
diff options
context:
space:
mode:
authorlippe <lippe@FreeBSD.org>2008-09-03 03:06:45 +0800
committerlippe <lippe@FreeBSD.org>2008-09-03 03:06:45 +0800
commitf05e36a13b4c746aeceefc93a11d757b512faef5 (patch)
treeca87abff5627852b119d3a7bcf7b523e975c6d7d /print/pstotext/Makefile
parent8b623f208ea72409c3021fb018d94b689298828a (diff)
downloadfreebsd-ports-gnome-f05e36a13b4c746aeceefc93a11d757b512faef5.tar.gz
freebsd-ports-gnome-f05e36a13b4c746aeceefc93a11d757b512faef5.tar.zst
freebsd-ports-gnome-f05e36a13b4c746aeceefc93a11d757b512faef5.zip
- Update to 1.9.
PR: ports/125611 Submitted by: bf <bf2006a@yahoo.com> Approved by: maintainer timeout (> 2 weeks)
Diffstat (limited to 'print/pstotext/Makefile')
-rw-r--r--print/pstotext/Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/print/pstotext/Makefile b/print/pstotext/Makefile
index f81d022f1f7a..d060dd8d0aea 100644
--- a/print/pstotext/Makefile
+++ b/print/pstotext/Makefile
@@ -6,12 +6,9 @@
#
PORTNAME= pstotext
-PORTVERSION= 1.8g
-PORTREVISION= 1
+PORTVERSION= 1.9
CATEGORIES= print
-MASTER_SITES= http://www.breuninger.org/files/distfiles/
-DISTNAME= ${PORTNAME}
-EXTRACT_SUFX= .tar.Z
+MASTER_SITES= http://mirror.cs.wisc.edu/pub/mirrors/ghost/contrib/
MAINTAINER= ob@breuninger.org
COMMENT= A PostScript to Text converter
@@ -20,9 +17,18 @@ USE_GHOSTSCRIPT_RUN= yes
MAN1= pstotext.1
PLIST_FILES= bin/pstotext
+PORTDOCS= copyright
+
+post-patch:
+ ${REINPLACE_CMD} -e 's;%%LOCALBASE%%;${LOCALBASE};g' ${WRKSRC}/main.c
+ ${REINPLACE_CMD} -e 's;%%PREFIX%%;${PREFIX};g' ${WRKSRC}/pstotext.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pstotext ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/pstotext.1 ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/pstotext.1 ${MAN1PREFIX}/man/man1
+.ifndef(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/pstotext.txt ${DOCSDIR}/copyright
+.endif
.include <bsd.port.mk>