aboutsummaryrefslogtreecommitdiff
path: root/archivers/p5-Archive-Tar
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2012-03-13 16:15:36 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2012-03-13 16:15:36 +0000
commitb59621d3ae883bef429a8fae6073bfa293a55222 (patch)
treeb415c7b2903cf47ada68c5557c3c6ac33a25fc41 /archivers/p5-Archive-Tar
parente93c09b8f3675471a176b72ae1e6f085f7a607ad (diff)
downloadports-b59621d3ae883bef429a8fae6073bfa293a55222.tar.gz
ports-b59621d3ae883bef429a8fae6073bfa293a55222.zip
Notes
Diffstat (limited to 'archivers/p5-Archive-Tar')
-rw-r--r--archivers/p5-Archive-Tar/Makefile22
-rw-r--r--archivers/p5-Archive-Tar/pkg-plist2
2 files changed, 23 insertions, 1 deletions
diff --git a/archivers/p5-Archive-Tar/Makefile b/archivers/p5-Archive-Tar/Makefile
index c0d7ee9632af..373086e8439b 100644
--- a/archivers/p5-Archive-Tar/Makefile
+++ b/archivers/p5-Archive-Tar/Makefile
@@ -23,12 +23,32 @@ MAN3= Archive::Tar.3 Archive::Tar::File.3
OPTIONS= TEXT_DIFF "Text::Diff support for ptardiff" off
+.include <bsd.port.pre.mk>
+
.if defined(WITH_TEXT_DIFF)
RUN_DEPENDS+= ${SITE_PERL}/Text/Diff.pm:${PORTSDIR}/textproc/p5-Text-Diff
.endif
+.if ${PERL_LEVEL} < 500904
+RUN_DEPENDS+= p5-Package-Constants>=0:${PORTSDIR}/devel/p5-Package-Constants
+.endif
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Zlib>=1.01:${PORTSDIR}/archivers/p5-IO-Zlib \
+ p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.if ${PERL_LEVEL} >= 501000
+PLIST_SUB+= EXE_FILES="@comment "
+.else
+PLIST_SUB+= EXE_FILES=""
+MAN1= ptardiff.1 ptar.1
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's/5.009/5.666/' ${WRKSRC}/Makefile.PL
+.if ${PERL_LEVEL} >= 501000
@${REINPLACE_CMD} -e '/EXE_FILES/d' ${WRKSRC}/Makefile.PL
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/archivers/p5-Archive-Tar/pkg-plist b/archivers/p5-Archive-Tar/pkg-plist
index 595b64154f2e..bc81f665980b 100644
--- a/archivers/p5-Archive-Tar/pkg-plist
+++ b/archivers/p5-Archive-Tar/pkg-plist
@@ -1,3 +1,5 @@
+%%EXE_FILES%%bin/ptar
+%%EXE_FILES%%bin/ptardiff
%%SITE_PERL%%/Archive/Tar.pm
%%SITE_PERL%%/Archive/Tar/Constant.pm
%%SITE_PERL%%/Archive/Tar/File.pm