aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-Module-ScanDeps
diff options
context:
space:
mode:
Diffstat (limited to 'devel/p5-Module-ScanDeps')
-rw-r--r--devel/p5-Module-ScanDeps/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/devel/p5-Module-ScanDeps/Makefile b/devel/p5-Module-ScanDeps/Makefile
index 1be991c74a09..3f85ff9468fc 100644
--- a/devel/p5-Module-ScanDeps/Makefile
+++ b/devel/p5-Module-ScanDeps/Makefile
@@ -25,4 +25,17 @@ post-patch:
's|/usr/bin/perl|${PERL}|' ${WRKSRC}/script/scandeps.pl \
${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+regression-test:
+ cd ${WRKSRC} && ${MAKE} test
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500904
+RUN_DEPENDS+= p5-Module-Build>=0:${PORTSDIR}/devel/p5-Module-Build
+.endif
+
+.if ${PERL_LEVEL} < 500900
+RUN_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>