aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-08-08 21:35:51 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-08-08 21:43:51 +0000
commite2e981e5f4e0c7e780b8fc4d9488a33da292c8a7 (patch)
tree1aaa550b600601106522d0fa11f5f02b10d64b31
parentd6d6e0ac174598d9057572029bd9c9097ebabcb3 (diff)
downloadports-e2e981e5f4e0c7e780b8fc4d9488a33da292c8a7.tar.gz
ports-e2e981e5f4e0c7e780b8fc4d9488a33da292c8a7.zip
textproc/pdfoutline: Install pdf-extract-outline
- Bump PORTREVISION for package change
-rw-r--r--textproc/pdfoutline/Makefile16
-rw-r--r--textproc/pdfoutline/pkg-plist4
2 files changed, 12 insertions, 8 deletions
diff --git a/textproc/pdfoutline/Makefile b/textproc/pdfoutline/Makefile
index 62d49a36a338..cc1111874c14 100644
--- a/textproc/pdfoutline/Makefile
+++ b/textproc/pdfoutline/Makefile
@@ -3,6 +3,7 @@
PORTNAME= pdfoutline
PORTVERSION= 5.4
DISTVERSIONPREFIX= release/
+PORTREVISION= 1
CATEGORIES= textproc
MAINTAINER= sunpoet@FreeBSD.org
@@ -21,21 +22,20 @@ USE_PERL5= run
NO_ARCH= yes
NO_BUILD= yes
-PLIST_FILES= bin/pdfoutline \
- share/man/man1/pdfoutline.1.gz
-
GH_ACCOUNT= eugmes
GH_PROJECT= fntsample
USE_GITHUB= yes
-SHEBANG_FILES= scripts/pdfoutline.pl
+SHEBANG_FILES= scripts/*.pl
post-patch:
- @${SED} -e 's|@CMAKE_PROJECT_NAME@|fntsample|; s|@CMAKE_INSTALL_FULL_LOCALEDIR@|${LOCALBASE}/share/locale|' ${WRKSRC}/scripts/pdfoutline.pl > ${WRKSRC}/pdfoutline
- @${SED} -e 's|@DATE@|2021-08-01|; s|@CMAKE_PROJECT_VERSION@|${PORTVERSION}|; s|@CMAKE_PROJECT_NAME@|fntsample|; s|@CMAKE_PROJECT_HOMEPAGE_URL@|https://github.com/eugmes/fntsample|' ${WRKSRC}/scripts/pdfoutline.1.in > ${WRKSRC}/pdfoutline.1
+.for file in pdf-extract-outline pdfoutline
+ @${SED} -e 's|@CMAKE_PROJECT_NAME@|fntsample|; s|@CMAKE_INSTALL_FULL_LOCALEDIR@|${LOCALBASE}/share/locale|' ${WRKSRC}/scripts/${file}.pl > ${WRKSRC}/${file}
+ @${SED} -e 's|@DATE@|2021-08-01|; s|@CMAKE_PROJECT_VERSION@|${PORTVERSION}|; s|@CMAKE_PROJECT_NAME@|fntsample|; s|@CMAKE_PROJECT_HOMEPAGE_URL@|https://github.com/eugmes/fntsample|' ${WRKSRC}/scripts/${file}.1.in > ${WRKSRC}/${file}.1
+.endfor
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/pdfoutline ${STAGEDIR}${PREFIX}/bin/
- ${INSTALL_MAN} ${WRKSRC}/pdfoutline.1 ${STAGEDIR}${PREFIX}/share/man/man1/
+ ${INSTALL_SCRIPT} ${WRKSRC}/pdf-extract-outline ${WRKSRC}/pdfoutline ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/pdf-extract-outline.1 ${WRKSRC}/pdfoutline.1 ${STAGEDIR}${PREFIX}/share/man/man1/
.include <bsd.port.mk>
diff --git a/textproc/pdfoutline/pkg-plist b/textproc/pdfoutline/pkg-plist
new file mode 100644
index 000000000000..7f6541915405
--- /dev/null
+++ b/textproc/pdfoutline/pkg-plist
@@ -0,0 +1,4 @@
+bin/pdf-extract-outline
+bin/pdfoutline
+share/man/man1/pdf-extract-outline.1.gz
+share/man/man1/pdfoutline.1.gz