Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Feb 2016 00:23:08 +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: r408913 - head/devel/p5-Moo
Message-ID:  <201602150023.u1F0N87f053862@repo.freebsd.org>

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



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