diff --git a/devel/p5-Moo/Makefile b/devel/p5-Moo/Makefile index 926b268fa3b3..aa3054c4aca2 100644 --- a/devel/p5-Moo/Makefile +++ b/devel/p5-Moo/Makefile @@ -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 +.include + +.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