svn commit: r332960 - head/print/pdf4tcl
Pietro Cerutti
gahr at FreeBSD.org
Wed Nov 6 09:31:51 UTC 2013
Author: gahr
Date: Wed Nov 6 09:31:51 2013
New Revision: 332960
URL: http://svnweb.freebsd.org/changeset/ports/332960
Log:
- Add LICENSE
- Add man page
- STAGE-clean
Modified:
head/print/pdf4tcl/Makefile
Modified: head/print/pdf4tcl/Makefile
==============================================================================
--- head/print/pdf4tcl/Makefile Wed Nov 6 09:26:56 2013 (r332959)
+++ head/print/pdf4tcl/Makefile Wed Nov 6 09:31:51 2013 (r332960)
@@ -11,27 +11,37 @@ DISTFILES= ${PORTNAME}${PORTVERSION:S/./
MAINTAINER= tcltk at FreeBSD.org
COMMENT= Pure Tcl library to generate PDF files
+LICENSE= BSD
+LICENSE_FILE= ${WRKSRC}/licence.terms
+
+OPTIONS_DEFINE= DOCS
+
+BUILD_DEPENDS= dtplite:${PORTSDIR}/devel/tcllib
RUN_DEPENDS= ${LOCALBASE}/lib/tcllib/snit/snit.tcl:${PORTSDIR}/devel/tcllib
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION:S/.//}
-NO_BUILD= yes
PORTDOCS= *
PLIST_FILES= lib/${PKGNAME}/glyph2uni.tcl \
lib/${PKGNAME}/pkgIndex.tcl \
lib/${PKGNAME}/pdf4tcl.tcl \
- lib/${PKGNAME}/stdmetrics.tcl
+ lib/${PKGNAME}/stdmetrics.tcl \
+ man/mann/pdf4tcl.n.gz
PLIST_DIRS= lib/${PKGNAME}
-NO_STAGE= yes
.include <bsd.port.options.mk>
+do-build:
+# Generate manpage
+ cd ${WRKSRC} && ${LOCALBASE}/bin/dtplite -o pdf4tcl.n nroff pdf4tcl.man
+
do-install:
- ${MKDIR} ${PREFIX}/lib/${PKGNAME}
- cd ${WRKSRC} && ${COPYTREE_SHARE} \*.tcl ${PREFIX}/lib/${PKGNAME}
+ ${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PKGNAME}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} \*.tcl ${STAGEDIR}${PREFIX}/lib/${PKGNAME}
+ ${INSTALL_DATA} ${WRKSRC}/pdf4tcl.n ${STAGEDIR}${PREFIX}/man/mann
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.html ${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.html ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list