aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authormm <mm@FreeBSD.org>2010-09-21 15:56:43 +0800
committermm <mm@FreeBSD.org>2010-09-21 15:56:43 +0800
commita447d3207d987ddc5b4cb16345ffd07b474aea9c (patch)
tree740d2c4dbf9c6b5d7e0a621cb113b01436081f94 /print
parent755a0561c300f159d88d880440dc70a9ae0425e2 (diff)
downloadfreebsd-ports-gnome-a447d3207d987ddc5b4cb16345ffd07b474aea9c.tar.gz
freebsd-ports-gnome-a447d3207d987ddc5b4cb16345ffd07b474aea9c.tar.zst
freebsd-ports-gnome-a447d3207d987ddc5b4cb16345ffd07b474aea9c.zip
Change dependency on old p5-Compress-Zlib, p5-IO-Compress-Base,
p5-IO-Compress-Zlib and p5-IO-Compress-Bzip2 modules to p5-IO-Compress. Explicitly depend on p5-IO-Compress only if PERL_LEVEL < 500903 Bump PORTREVISION
Diffstat (limited to 'print')
-rw-r--r--print/p5-Text-PDF/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/print/p5-Text-PDF/Makefile b/print/p5-Text-PDF/Makefile
index 896c0f9358d2..57cc0c512910 100644
--- a/print/p5-Text-PDF/Makefile
+++ b/print/p5-Text-PDF/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Text-PDF
PORTVERSION= 0.29a
+PORTREVISION= 1
CATEGORIES= print perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -14,9 +15,6 @@ PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
COMMENT= A PDF manipulation module
-BUILD_DEPENDS= ${SITE_PERL}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib
-RUN_DEPENDS= ${BUILD_DEPENDS}
-
WRKSRC= ${WRKDIR}/${DISTNAME:C/a$//}
PERL_CONFIGURE= yes
@@ -28,6 +26,13 @@ MAN3= Text::PDF::Pages.3 Text::PDF::Page.3 Text::PDF::Name.3 \
Text::PDF::Utils.3 Text::PDF::TTFont.3 Text::PDF::Number.3 \
Text::PDF::Null.3 Text::PDF.3
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+BUILD_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
post-patch:
@${RM} -f ${WRKSRC}/pm_to_blib
@@ -35,4 +40,4 @@ post-install:
@${MKDIR} ${SITE_PERL}/Text/PDF/examples
@${INSTALL_DATA} ${WRKSRC}/examples/* ${SITE_PERL}/Text/PDF/examples
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>