diff options
-rw-r--r-- | devel/p5-Moo/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
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 <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> |