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
This commit is contained in:
Adam Weinberger 2016-02-15 00:23:08 +00:00
parent 1bb5898cac
commit 89f4af7d98
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=408913

View file

@ -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>