diff options
author | Jason E. Hale <jhale@FreeBSD.org> | 2014-06-15 14:03:26 +0000 |
---|---|---|
committer | Jason E. Hale <jhale@FreeBSD.org> | 2014-06-15 14:03:26 +0000 |
commit | ac44c6a7372b9c2cf7872baace45c8df14e6d979 (patch) | |
tree | 2b65f632014214e9bfb363e4679403c26f66a0a1 | |
parent | ceba983ef66b08992dbada636adc6d92804e8063 (diff) | |
download | ports-ac44c6a7372b9c2cf7872baace45c8df14e6d979.tar.gz ports-ac44c6a7372b9c2cf7872baace45c8df14e6d979.zip |
Notes
-rw-r--r-- | print/pstotext/Makefile | 32 | ||||
-rw-r--r-- | print/pstotext/files/patch-Makefile (renamed from print/pstotext/files/patch-aa) | 0 | ||||
-rw-r--r-- | print/pstotext/files/patch-main.c (renamed from print/pstotext/files/patch-ab) | 0 | ||||
-rw-r--r-- | print/pstotext/files/patch-pstotext.1 | 2 |
4 files changed, 16 insertions, 18 deletions
diff --git a/print/pstotext/Makefile b/print/pstotext/Makefile index afa0d58c12b5..4b6816123cc4 100644 --- a/print/pstotext/Makefile +++ b/print/pstotext/Makefile @@ -3,7 +3,7 @@ PORTNAME= pstotext PORTVERSION= 1.9 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= print MASTER_SITES= http://ftp.gwdg.de/pub/%SUBDIR%/ \ http://ftp.sunet.se/pub/text-processing/postscript/interpreters/%SUBDIR%/ \ @@ -14,28 +14,26 @@ MASTER_SITE_SUBDIR= ghostscript/contrib MAINTAINER= ports@FreeBSD.org COMMENT= PostScript to Text converter -USE_GHOSTSCRIPT_RUN= yes - -MAN1= pstotext.1 -PLIST_FILES= bin/pstotext -PORTDOCS= copyright +LICENSE= EULA +LICENSE_NAME= End User License Agreement +LICENSE_FILE= ${WRKSRC}/pstotext.txt +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -NO_STAGE= yes +USE_GHOSTSCRIPT_RUN= yes -OPTIONS_DEFINE= DOCS +SUB_LIST= LICENSE=${LICENSE} \ + LICENSE_DIR=${_LICENSE_DIR} -.include <bsd.port.options.mk> +PLIST_FILES= bin/pstotext \ + man/man1/pstotext.1.gz post-patch: - ${REINPLACE_CMD} -e 's;%%LOCALBASE%%;${LOCALBASE};g' ${WRKSRC}/main.c - ${REINPLACE_CMD} -e 's;%%PREFIX%%;${PREFIX};g' ${WRKSRC}/pstotext.1 + @${REINPLACE_CMD} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ + ${WRKSRC}/main.c \ + ${WRKSRC}/pstotext.1 do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/pstotext ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/pstotext.1 ${MAN1PREFIX}/man/man1 -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/pstotext.txt ${DOCSDIR}/copyright -.endif + ${INSTALL_PROGRAM} ${WRKSRC}/pstotext ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/pstotext.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 .include <bsd.port.mk> diff --git a/print/pstotext/files/patch-aa b/print/pstotext/files/patch-Makefile index 3da057cab9be..3da057cab9be 100644 --- a/print/pstotext/files/patch-aa +++ b/print/pstotext/files/patch-Makefile diff --git a/print/pstotext/files/patch-ab b/print/pstotext/files/patch-main.c index a208de3ce0b3..a208de3ce0b3 100644 --- a/print/pstotext/files/patch-ab +++ b/print/pstotext/files/patch-main.c diff --git a/print/pstotext/files/patch-pstotext.1 b/print/pstotext/files/patch-pstotext.1 index 2f519cc4e870..7adb73c2e8df 100644 --- a/print/pstotext/files/patch-pstotext.1 +++ b/print/pstotext/files/patch-pstotext.1 @@ -5,7 +5,7 @@ Distributed only by permission. .br -See file pstotext.txt for details. -+See file %%PREFIX%%/share/doc/pstotext/copyright for details. ++See file %%LICENSE_DIR%%/%%LICENSE%% for details. .br .BR .PP |