Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Feb 2016 23:03:25 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r408909 - head/devel/p5-strictures
Message-ID:  <201602142303.u1EN3Pn0030390@repo.freebsd.org>

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



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