svn commit: r408909 - head/devel/p5-strictures

Adam Weinberger adamw at FreeBSD.org
Sun Feb 14 23:03:27 UTC 2016


Author: adamw
Date: Sun Feb 14 23:03:25 2016
New Revision: 408909
URL: https://svnweb.freebsd.org/changeset/ports/408909

Log:
  p5-bareword-filehandles, p5-indirect, and p5-multidimensional are recommended
  but not required. They provide extra tests that are enabled when activated via
  an environment variable, or whether p5-strictures determines that you are a
  module author.
  
  Add the ability to disable them with an option that defaults to on.

Modified:
  head/devel/p5-strictures/Makefile

Modified: head/devel/p5-strictures/Makefile
==============================================================================
--- head/devel/p5-strictures/Makefile	Sun Feb 14 22:55:35 2016	(r408908)
+++ head/devel/p5-strictures/Makefile	Sun Feb 14 23:03:25 2016	(r408909)
@@ -15,13 +15,17 @@ COMMENT=	Turn on strict and make all war
 LICENSE=	ART10 GPLv1
 LICENSE_COMB=	dual
 
-BUILD_DEPENDS=	p5-bareword-filehandles>=0:${PORTSDIR}/devel/p5-bareword-filehandles \
-		p5-indirect>=0:${PORTSDIR}/devel/p5-indirect \
-		p5-multidimensional>=0:${PORTSDIR}/devel/p5-multidimensional
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
 NO_ARCH=	yes
 USES=		perl5
 USE_PERL5=	configure
 
+OPTIONS_DEFINE=	STRICTURES_EXTRA
+OPTIONS_DEFAULT=STRICTURES_EXTRA
+
+STRICTURES_EXTRA_DESC=		Enable full set of strictures (recommended)
+STRICTURES_EXTRA_BUILD_DEPENDS=	p5-bareword-filehandles>=0:${PORTSDIR}/devel/p5-bareword-filehandles \
+				p5-indirect>=0:${PORTSDIR}/devel/p5-indirect \
+				p5-multidimensional>=0:${PORTSDIR}/devel/p5-multidimensional
+STRICTURES_EXTRA_RUN_DEPENDS=	${STRICTURES_EXTRA_BUILD_DEPENDS}
+
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list