aboutsummaryrefslogtreecommitdiff
path: root/textproc/p5-podlators
diff options
context:
space:
mode:
authorSergey Skvortsov <skv@FreeBSD.org>2012-06-19 20:34:25 +0000
committerSergey Skvortsov <skv@FreeBSD.org>2012-06-19 20:34:25 +0000
commitc144e4a445907a170e07c0eaf7d387646ec92674 (patch)
treeb4e98478029bc3f35df2ba79cd53ac17e1bcdb17 /textproc/p5-podlators
parentbc0ec673035943674bcd68ab4e98c87d3a85ce9a (diff)
downloadports-c144e4a445907a170e07c0eaf7d387646ec92674.tar.gz
ports-c144e4a445907a170e07c0eaf7d387646ec92674.zip
Notes
Diffstat (limited to 'textproc/p5-podlators')
-rw-r--r--textproc/p5-podlators/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/textproc/p5-podlators/Makefile b/textproc/p5-podlators/Makefile
index 0d729e28bafa..9dbd29a59f8a 100644
--- a/textproc/p5-podlators/Makefile
+++ b/textproc/p5-podlators/Makefile
@@ -20,12 +20,10 @@ LICENSE_COMB= dual
PERL_CONFIGURE= yes
-MAN1= perlpodstyle.1
MAN3= Pod::Man.3 Pod::ParseLink.3 Pod::Text.3 Pod::Text::Color.3 \
Pod::Text::Overstrike.3 Pod::Text::Termcap.3
post-patch:
- ${REINPLACE_CMD} -e '/pod2text/d;s/man1pod.*pod2man.*//' ${WRKSRC}/Makefile.PL
.include <bsd.port.pre.mk>
@@ -33,4 +31,15 @@ post-patch:
RUN_DEPENDS+= p5-Pod-Simple>=3.06:${PORTSDIR}/textproc/p5-Pod-Simple
.endif
+.if ${PERL_LEVEL} < 501400
+MAN1= perlpodstyle.1
+.endif
+
+post-patch:
+.if ${PERL_LEVEL} < 501400
+ ${REINPLACE_CMD} -e '/pod2text/d;s/man1pod.*pod2man.*//' ${WRKSRC}/Makefile.PL
+.else
+ ${REINPLACE_CMD} -e "/man1pod (/d;/EXE_FILES/d" ${WRKSRC}/Makefile.PL
+.endif
+
.include <bsd.port.post.mk>