diff options
author | leeym <leeym@FreeBSD.org> | 2005-03-02 15:02:58 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2005-03-02 15:02:58 +0800 |
commit | d6c5c18c4513ab399e22f8f830e76f6e3b3e269a (patch) | |
tree | db0d2402303c798d99c94fcab72746affb7be879 /textproc | |
parent | 6722403d6ab4a95d35e977f1c544e5d2c11c8e93 (diff) | |
download | freebsd-ports-gnome-d6c5c18c4513ab399e22f8f830e76f6e3b3e269a.tar.gz freebsd-ports-gnome-d6c5c18c4513ab399e22f8f830e76f6e3b3e269a.tar.zst freebsd-ports-gnome-d6c5c18c4513ab399e22f8f830e76f6e3b3e269a.zip |
- skip pod2html under perl 5.6 or above
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/p5-Pod-Tree/Makefile | 42 | ||||
-rw-r--r-- | textproc/p5-Pod-Tree/pkg-plist | 2 |
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 |