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:
parent
1bb5898cac
commit
89f4af7d98
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=408913
1 changed files with 9 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue