svn commit: r411298 - head/textproc/p5-PDF-Table
Mathieu Arnold
mat at FreeBSD.org
Thu Mar 17 18:52:06 UTC 2016
Author: mat
Date: Thu Mar 17 18:52:05 2016
New Revision: 411298
URL: https://svnweb.freebsd.org/changeset/ports/411298
Log:
Add an option to install the examples.
Because the man page says:
For a complete working example or initial script look into
distribution`s 'examples' folder.
With hat: perl@
Sponsored by: Absolight
Modified:
head/textproc/p5-PDF-Table/Makefile
Modified: head/textproc/p5-PDF-Table/Makefile
==============================================================================
--- head/textproc/p5-PDF-Table/Makefile Thu Mar 17 18:24:38 2016 (r411297)
+++ head/textproc/p5-PDF-Table/Makefile Thu Mar 17 18:52:05 2016 (r411298)
@@ -3,6 +3,7 @@
PORTNAME= PDF-Table
DISTVERSION= 0.9.10
+PORTREVISION= 1
CATEGORIES= textproc perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -16,6 +17,12 @@ RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= perl5
USE_PERL5= configure
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+OPTIONS_DEFINE= EXAMPLES
+
+PORTEXAMPLES= *
+
+post-install-EXAMPLES-on:
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list