summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2005-03-02 07:02:58 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2005-03-02 07:02:58 +0000
commit134d13a9a4b7ff2526233bd099497f0054227b04 (patch)
treebef3b0479bcee7ff8a76525db457a4c890b4de22 /textproc
parent- Update to 0.05 (diff)
- skip pod2html under perl 5.6 or above
Notes
Notes: svn path=/head/; revision=130150
Diffstat (limited to 'textproc')
-rw-r--r--textproc/p5-Pod-Tree/Makefile42
-rw-r--r--textproc/p5-Pod-Tree/pkg-plist2
2 files changed, 29 insertions, 15 deletions
diff --git a/textproc/p5-Pod-Tree/Makefile b/textproc/p5-Pod-Tree/Makefile
index decf06a2c99b..63b9bf720492 100644
--- a/textproc/p5-Pod-Tree/Makefile
+++ b/textproc/p5-Pod-Tree/Makefile
@@ -22,17 +22,31 @@ RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
-MAN1= perl2html.1 pod2html.1 pods2html.1
-MAN3= Pod::Tree.3 \
- Pod::Tree::HTML.3 \
- Pod::Tree::Node.3 \
- Pod::Tree::PerlBin.3 \
- Pod::Tree::PerlDist.3 \
- Pod::Tree::PerlFunc.3 \
- Pod::Tree::PerlLib.3 \
- Pod::Tree::PerlMap.3 \
- Pod::Tree::PerlPod.3 \
- Pod::Tree::PerlTop.3 \
- Pod::Tree::Pod.3
-
-.include <bsd.port.mk>
+MAN1= perl2html.1 pods2html.1
+MAN3= Pod::Tree.3 \
+ Pod::Tree::HTML.3 \
+ Pod::Tree::Node.3 \
+ Pod::Tree::PerlBin.3 \
+ Pod::Tree::PerlDist.3 \
+ Pod::Tree::PerlFunc.3 \
+ Pod::Tree::PerlLib.3 \
+ Pod::Tree::PerlMap.3 \
+ Pod::Tree::PerlPod.3 \
+ Pod::Tree::PerlTop.3 \
+ Pod::Tree::Pod.3
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} >= 500600
+PLIST_SUB+= POD2HTML="@comment "
+.else
+MAN1+= pod2html.1
+PLIST_SUB+= POD2HTML=""
+.endif
+
+post-patch:
+.if ${PERL_LEVEL} >= 500600
+ ${REINPLACE_CMD} -e 's/pod2html //g' ${WRKSRC}/Makefile.PL
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Pod-Tree/pkg-plist b/textproc/p5-Pod-Tree/pkg-plist
index 5fc17ad1f819..38ff276c86be 100644
--- a/textproc/p5-Pod-Tree/pkg-plist
+++ b/textproc/p5-Pod-Tree/pkg-plist
@@ -1,5 +1,5 @@
bin/perl2html
-bin/pod2html
+%%POD2HTML%%bin/pod2html
bin/pods2html
%%SITE_PERL%%/Pod/Tree.pm
%%SITE_PERL%%/Pod/Tree/HTML.pm