aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2014-02-17 01:10:19 +0800
committersunpoet <sunpoet@FreeBSD.org>2014-02-17 01:10:19 +0800
commite04e533cf1bc01e44ad69d14d5c6c205e25bfe3a (patch)
treefe78bb1314bb6efcd3b42d5aeeae6e3a13f69b1b /textproc
parentc107c7f8842686eb08da81387ae945c224a6e74a (diff)
downloadfreebsd-ports-gnome-e04e533cf1bc01e44ad69d14d5c6c205e25bfe3a.tar.gz
freebsd-ports-gnome-e04e533cf1bc01e44ad69d14d5c6c205e25bfe3a.tar.zst
freebsd-ports-gnome-e04e533cf1bc01e44ad69d14d5c6c205e25bfe3a.zip
- Remove MASTERDIR
- Add LICENSE - Support STAGEDIR - Reformat pkg-descr - Remove Author line - Update WWW
Diffstat (limited to 'textproc')
-rw-r--r--textproc/pdfoutline/Makefile30
-rw-r--r--textproc/pdfoutline/distinfo2
-rw-r--r--textproc/pdfoutline/pkg-descr10
3 files changed, 30 insertions, 12 deletions
diff --git a/textproc/pdfoutline/Makefile b/textproc/pdfoutline/Makefile
index 438fd770a7e9..5de5f03353db 100644
--- a/textproc/pdfoutline/Makefile
+++ b/textproc/pdfoutline/Makefile
@@ -2,15 +2,33 @@
# $FreeBSD$
PORTNAME= pdfoutline
-PORTREVISION= 0
+PORTVERSION= 3.2
CATEGORIES= textproc
+MASTER_SITES= SF/fntsample/fntsample/${PORTVERSION}
+DISTNAME= fntsample-${PORTVERSION}
+MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Add outlines to PDF files
-MASTERDIR= ${.CURDIR}/../../x11-fonts/fntsample
-DESCR= ${.CURDIR}/pkg-descr
+LICENSE= GPLv3
-PDFOUTLINE= yes
+BUILD_DEPENDS= p5-Locale-libintl>=0:${PORTSDIR}/devel/p5-Locale-libintl \
+ p5-PDF-API2>=0:${PORTSDIR}/textproc/p5-PDF-API2
+RUN_DEPENDS:= ${BUILD_DEPENDS}
-NO_STAGE= yes
-.include "${MASTERDIR}/Makefile"
+NO_BUILD= yes
+USE_PERL5= run
+USES= perl5 pkgconfig
+
+PLIST_FILES= bin/${PORTNAME} \
+ man/man1/${PORTNAME}.1.gz
+
+post-patch:
+ @${SED} -e 's|##PACKAGE##|fntsample|g; s|##LOCALEDIR##|${PREFIX}/share/locale|g' ${WRKSRC}/${PORTNAME}.pl > ${WRKSRC}/${PORTNAME}
+ @${SED} -e 's|@DATE@|2008-10-22|g' ${WRKSRC}/${PORTNAME}.1.in > ${WRKSRC}/${PORTNAME}.1
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1/
+
+.include <bsd.port.mk>
diff --git a/textproc/pdfoutline/distinfo b/textproc/pdfoutline/distinfo
new file mode 100644
index 000000000000..26b553722f2a
--- /dev/null
+++ b/textproc/pdfoutline/distinfo
@@ -0,0 +1,2 @@
+SHA256 (fntsample-3.2.tar.gz) = 54ed7ac19dbcee82f9d66ff0c2aec6f63036e220e710849405e881ad58e27ef5
+SIZE (fntsample-3.2.tar.gz) = 174945
diff --git a/textproc/pdfoutline/pkg-descr b/textproc/pdfoutline/pkg-descr
index f1010e83612a..2b4473fb0c92 100644
--- a/textproc/pdfoutline/pkg-descr
+++ b/textproc/pdfoutline/pkg-descr
@@ -1,7 +1,5 @@
-pdfoutline adds outlines (aka bookmarks) to PDF files. It reads input
-file given as first argument, adds outlines from text file given as
-second argument, and saves result to file with name given as third
-argument.
+pdfoutline adds outlines (aka bookmarks) to PDF files. It reads input file given
+as first argument, adds outlines from text file given as second argument, and
+saves result to file with name given as third argument.
-Author: Eugeniy Meshcheryakov <eugeniy@users.sourceforge.net>
-WWW: http://sourceforge.net/projects/fntsample/
+WWW: http://fntsample.sourceforge.net/