diff options
-rw-r--r-- | devel/p5-List-AllUtils/Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/devel/p5-List-AllUtils/Makefile b/devel/p5-List-AllUtils/Makefile index c1e0f9f3b25b..0c858140f07a 100644 --- a/devel/p5-List-AllUtils/Makefile +++ b/devel/p5-List-AllUtils/Makefile @@ -2,6 +2,7 @@ PORTNAME= List-AllUtils PORTVERSION= 0.08 +PORTREVISION= 1 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -11,13 +12,18 @@ COMMENT= Combines List::Util and List::MoreUtils in one bite-sized package LICENSE= ART20 -# As of Perl 5.18, List::Util in core are earlier than 1.31 -BUILD_DEPENDS= p5-List-MoreUtils>=0.28:${PORTSDIR}/lang/p5-List-MoreUtils \ - p5-Scalar-List-Utils>=1.31:${PORTSDIR}/lang/p5-Scalar-List-Utils +BUILD_DEPENDS= p5-List-MoreUtils>=0.28:${PORTSDIR}/lang/p5-List-MoreUtils RUN_DEPENDS:= ${BUILD_DEPENDS} TEST_DEPENDS= p5-Test-Warnings>=0:${PORTSDIR}/devel/p5-Test-Warnings USES= perl5 USE_PERL5= configure -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 502000 +BUILD_DEPENDS+= p5-Scalar-List-Utils>=1.31:${PORTSDIR}/lang/p5-Scalar-List-Utils +RUN_DEPENDS+= p5-Scalar-List-Utils>=1.31:${PORTSDIR}/lang/p5-Scalar-List-Utils +.endif + +.include <bsd.port.post.mk> |