svn commit: r344613 - head/textproc/pdfoutline

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sun Feb 16 17:10:20 UTC 2014


Author: sunpoet
Date: Sun Feb 16 17:10:19 2014
New Revision: 344613
URL: http://svnweb.freebsd.org/changeset/ports/344613
QAT: https://qat.redports.org/buildarchive/r344613/

Log:
  - Remove MASTERDIR
  - Add LICENSE
  - Support STAGEDIR
  - Reformat pkg-descr
  - Remove Author line
  - Update WWW

Added:
  head/textproc/pdfoutline/distinfo   (contents, props changed)
Modified:
  head/textproc/pdfoutline/Makefile
  head/textproc/pdfoutline/pkg-descr

Modified: head/textproc/pdfoutline/Makefile
==============================================================================
--- head/textproc/pdfoutline/Makefile	Sun Feb 16 17:09:46 2014	(r344612)
+++ head/textproc/pdfoutline/Makefile	Sun Feb 16 17:10:19 2014	(r344613)
@@ -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 at 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>

Added: head/textproc/pdfoutline/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/pdfoutline/distinfo	Sun Feb 16 17:10:19 2014	(r344613)
@@ -0,0 +1,2 @@
+SHA256 (fntsample-3.2.tar.gz) = 54ed7ac19dbcee82f9d66ff0c2aec6f63036e220e710849405e881ad58e27ef5
+SIZE (fntsample-3.2.tar.gz) = 174945

Modified: head/textproc/pdfoutline/pkg-descr
==============================================================================
--- head/textproc/pdfoutline/pkg-descr	Sun Feb 16 17:09:46 2014	(r344612)
+++ head/textproc/pdfoutline/pkg-descr	Sun Feb 16 17:10:19 2014	(r344613)
@@ -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 at users.sourceforge.net>
-WWW: http://sourceforge.net/projects/fntsample/
+WWW: http://fntsample.sourceforge.net/


More information about the svn-ports-all mailing list