aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/p5-Pod-Stripper
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/p5-Pod-Stripper')
-rw-r--r--textproc/p5-Pod-Stripper/Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/textproc/p5-Pod-Stripper/Makefile b/textproc/p5-Pod-Stripper/Makefile
index 39e2e984409..d684b7c8e74 100644
--- a/textproc/p5-Pod-Stripper/Makefile
+++ b/textproc/p5-Pod-Stripper/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Pod-Stripper
PORTVERSION= 0.22
+PORTREVISION= 1
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Pod
@@ -15,17 +16,21 @@ PKGNAMEPREFIX= p5-
MAINTAINER= skv@FreeBSD.org
COMMENT= Strip all pod, and output what's left
-BUILD_DEPENDS= ${SITE_PERL}/Pod/Parser.pm:${PORTSDIR}/textproc/p5-PodParser
-RUN_DEPENDS= ${BUILD_DEPENDS}
-
PERL_CONFIGURE= yes
-CONFIGURE_ARGS+= INSTALLDIRS="site"
+CONFIGURE_ARGS= INSTALLDIRS="site"
MAN1= podstrip.1
MAN3= Pod::Stripper.3
-MAN1PREFIX= ${PREFIX}
post-patch:
@${FIND} ${WRKSRC} -type f|${XARGS} ${PERL} -pi -e 's/\x0d(?=\x0a)//;'
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500601
+BUILD_DEPENDS+= ${SITE_PERL}/Pod/Parser.pm:${PORTSDIR}/textproc/p5-PodParser
+RUN_DEPENDS+= ${BUILD_DEPENDS}
+
+.endif
+
+.include <bsd.port.post.mk>