aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/p5-Devel-MAT/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/devel/p5-Devel-MAT/Makefile b/devel/p5-Devel-MAT/Makefile
index 4a193ffafda2..0862d57e29da 100644
--- a/devel/p5-Devel-MAT/Makefile
+++ b/devel/p5-Devel-MAT/Makefile
@@ -3,6 +3,7 @@
PORTNAME= Devel-MAT
PORTVERSION= 0.17
+PORTREVISION= 1
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -13,12 +14,9 @@ COMMENT= Perl Memory Analysis Tool
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
-# Module::Pluggable will be removed from core since Perl 5.20
BUILD_DEPENDS= p5-File-ShareDir>=0:${PORTSDIR}/devel/p5-File-ShareDir \
p5-List-MoreUtils>=0:${PORTSDIR}/lang/p5-List-MoreUtils \
- p5-List-UtilsBy>=0:${PORTSDIR}/devel/p5-List-UtilsBy \
- p5-Module-Pluggable>=0:${PORTSDIR}/devel/p5-Module-Pluggable \
- p5-Scalar-List-Utils>=1.29:${PORTSDIR}/lang/p5-Scalar-List-Utils
+ p5-List-UtilsBy>=0:${PORTSDIR}/devel/p5-List-UtilsBy
RUN_DEPENDS:= ${BUILD_DEPENDS}
TEST_DEPENDS= p5-Test-Identity>=0:${PORTSDIR}/devel/p5-Test-Identity \
p5-Test-Pod>=1:${PORTSDIR}/devel/p5-Test-Pod
@@ -26,4 +24,14 @@ TEST_DEPENDS= p5-Test-Identity>=0:${PORTSDIR}/devel/p5-Test-Identity \
USE_PERL5= modbuild
USES= perl5
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 502000
+BUILD_DEPENDS+= p5-Scalar-List-Utils>=1.29:${PORTSDIR}/lang/p5-Scalar-List-Utils
+RUN_DEPENDS+= p5-Scalar-List-Utils>=1.29:${PORTSDIR}/lang/p5-Scalar-List-Utils
+.else
+BUILD_DEPENDS+= p5-Module-Pluggable>=0:${PORTSDIR}/devel/p5-Module-Pluggable
+RUN_DEPENDS+= p5-Module-Pluggable>=0:${PORTSDIR}/devel/p5-Module-Pluggable
+.endif
+
+.include <bsd.port.post.mk>