svn commit: r411096 - head/textproc/p5-Perl-Lint

Mathieu Arnold mat at FreeBSD.org
Mon Mar 14 15:52:30 UTC 2016


Author: mat
Date: Mon Mar 14 15:52:28 2016
New Revision: 411096
URL: https://svnweb.freebsd.org/changeset/ports/411096

Log:
  Install examples.
  
  Sponsored by:	Absolight

Modified:
  head/textproc/p5-Perl-Lint/Makefile

Modified: head/textproc/p5-Perl-Lint/Makefile
==============================================================================
--- head/textproc/p5-Perl-Lint/Makefile	Mon Mar 14 15:31:56 2016	(r411095)
+++ head/textproc/p5-Perl-Lint/Makefile	Mon Mar 14 15:52:28 2016	(r411096)
@@ -3,7 +3,7 @@
 
 PORTNAME=	Perl-Lint
 PORTVERSION=	0.23
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	textproc perl5
 MASTER_SITES=	CPAN
 MASTER_SITE_SUBDIR=	CPAN:MOZNION
@@ -31,6 +31,14 @@ TEST_DEPENDS=	p5-Text-TestBase>=0:${PORT
 USES=		perl5
 USE_PERL5=	modbuildtiny
 
+OPTIONS_DEFINE=	EXAMPLES
+
+PORTEXAMPLES=	lint.pl lint_string.pl
+
+post-install-EXAMPLES-on:
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/eg/|} ${STAGEDIR}${EXAMPLESDIR}
+
 .include <bsd.port.pre.mk>
 
 .if ${PERL_LEVEL} >= 502000


More information about the svn-ports-head mailing list