aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-Test-Harness
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2005-03-02 02:17:40 +0800
committerleeym <leeym@FreeBSD.org>2005-03-02 02:17:40 +0800
commit7d21457cf3ac422a7a0b5bfe97eab35fb644f72f (patch)
tree312b1b9cfd31bd5cac5c4396ea519a1f45569d83 /devel/p5-Test-Harness
parent915026621c31978b1487cb2393b351f85f66363c (diff)
downloadfreebsd-ports-gnome-7d21457cf3ac422a7a0b5bfe97eab35fb644f72f.tar.gz
freebsd-ports-gnome-7d21457cf3ac422a7a0b5bfe97eab35fb644f72f.tar.zst
freebsd-ports-gnome-7d21457cf3ac422a7a0b5bfe97eab35fb644f72f.zip
- skip bin/prove and its manpage under perl 5.8
PR: 70233 Submitted by: leeym
Diffstat (limited to 'devel/p5-Test-Harness')
-rw-r--r--devel/p5-Test-Harness/Makefile20
-rw-r--r--devel/p5-Test-Harness/pkg-plist2
2 files changed, 16 insertions, 6 deletions
diff --git a/devel/p5-Test-Harness/Makefile b/devel/p5-Test-Harness/Makefile
index e4ec80a1b33d..6f0356652fd1 100644
--- a/devel/p5-Test-Harness/Makefile
+++ b/devel/p5-Test-Harness/Makefile
@@ -22,14 +22,24 @@ MAN1= prove.1
MAN3= Test::Harness.3 Test::Harness::Assert.3 \
Test::Harness::Iterator.3 Test::Harness::Straps.3
-post-patch:
- ${PERL} -pi -e 'm.INSTALLDIRS.&&s,.,,sg' ${WRKSRC}/Makefile.PL
-
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500601
-BUILD_DEPENDS= ${SITE_PERL}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-PodParser
-RUN_DEPENDS= ${BUILD_DEPENDS}
+BUILD_DEPENDS+= ${SITE_PERL}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-PodParser
+RUN_DEPENDS+= ${BUILD_DEPENDS}
+.endif
+
+.if ${PERL_LEVEL} >= 500800
+.undef MAN1
+PLIST_SUB+= PL_FILES="@comment "
+.else
+PLIST_SUB+= PL_FILES=""
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e '/INSTALLDIRS/d' ${WRKSRC}/Makefile.PL
+.if ${PERL_LEVEL} >= 500800
+ @${REINPLACE_CMD} -e '/EXE_FILES/d' ${WRKSRC}/Makefile.PL
.endif
.include <bsd.port.post.mk>
diff --git a/devel/p5-Test-Harness/pkg-plist b/devel/p5-Test-Harness/pkg-plist
index 0bf68542132e..7512253381f3 100644
--- a/devel/p5-Test-Harness/pkg-plist
+++ b/devel/p5-Test-Harness/pkg-plist
@@ -1,4 +1,4 @@
-bin/prove
+%%PL_FILES%%bin/prove
%%SITE_PERL%%/Test/Harness.pm
%%SITE_PERL%%/Test/Harness/Assert.pm
%%SITE_PERL%%/Test/Harness/Iterator.pm