diff options
Diffstat (limited to 'devel/p5-Lexical-Var')
-rw-r--r-- | devel/p5-Lexical-Var/Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/devel/p5-Lexical-Var/Makefile b/devel/p5-Lexical-Var/Makefile index 832d971c02c0..aa8073c7e7c9 100644 --- a/devel/p5-Lexical-Var/Makefile +++ b/devel/p5-Lexical-Var/Makefile @@ -18,7 +18,20 @@ PERL_CONFIGURE= yes MAN3= Lexical::Sub.3 Lexical::Var.3 +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 501000 +BUILD_DEPENDS+= p5-ExtUtils-CBuilder>=0.1500:${PORTSDIR}/devel/p5-ExtUtils-CBuilder +.endif + +.if ${PERL_LEVEL} < 501200 +BUILD_DEPENDS+= p5-Lexical-SealRequireHints>=0.006:${PORTSDIR}/devel/p5-Lexical-SealRequireHints +RUN_DEPENDS+= p5-Lexical-SealRequireHints>=0.006:${PORTSDIR}/devel/p5-Lexical-SealRequireHints +.endif + post-patch: +.if ${PERL_LEVEL} >= 501200 @${REINPLACE_CMD} -e '/Lexical::SealRequireHints/d' ${WRKSRC}/Build.PL ${WRKSRC}/lib/Lexical/Var.pm +.endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |