svn commit: r408913 - head/devel/p5-Moo

Adam Weinberger adamw at FreeBSD.org
Mon Feb 15 00:23:09 UTC 2016


Author: adamw
Date: Mon Feb 15 00:23:08 2016
New Revision: 408913
URL: https://svnweb.freebsd.org/changeset/ports/408913

Log:
  Improve XS dependency.
  
  p5-Scalar-List-Utils is only used for Sub::Util, which shipped with perl5.22.
  Only register the dependency on older perls, and register against the version
  that is equivalent to perl5.22's version rather than just >=0.
  
  MFH:		2016Q1

Modified:
  head/devel/p5-Moo/Makefile

Modified: head/devel/p5-Moo/Makefile
==============================================================================
--- head/devel/p5-Moo/Makefile	Mon Feb 15 00:07:11 2016	(r408912)
+++ head/devel/p5-Moo/Makefile	Mon Feb 15 00:23:08 2016	(r408913)
@@ -27,8 +27,14 @@ NO_ARCH=	yes
 USES=		perl5
 USE_PERL5=	configure
 
-XS_BUILD_DEPENDS=	p5-Class-XSAccessor>=1.18:${PORTSDIR}/devel/p5-Class-XSAccessor \
-			p5-Scalar-List-Utils>=0:${PORTSDIR}/lang/p5-Scalar-List-Utils
+XS_BUILD_DEPENDS=	p5-Class-XSAccessor>=1.18:${PORTSDIR}/devel/p5-Class-XSAccessor
 XS_RUN_DEPENDS:=	${XS_BUILD_DEPENDS}
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 502104 && ${PORT_OPTIONS:MXS}
+BUILD_DEPENDS+=		p5-Scalar-List-Utils>=1.41:${PORTSDIR}/lang/p5-Scalar-List-Utils
+RUN_DEPENDS+=		p5-Scalar-List-Utils>=1.41:${PORTSDIR}/lang/p5-Scalar-List-Utils
+.endif
+
+.include <bsd.port.post.mk>


More information about the svn-ports-all mailing list