Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2016 18:52:05 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r411298 - head/textproc/p5-PDF-Table
Message-ID:  <201603171852.u2HIq5qK019913@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603171852.u2HIq5qK019913>