aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2012-07-06 12:19:53 +0800
committersunpoet <sunpoet@FreeBSD.org>2012-07-06 12:19:53 +0800
commitdd52e039e20e99dcbc5bcbe73fabce02e0fc155a (patch)
treef90a6985bc1a8d7cf2697892454caefe5ac5a6a3 /textproc
parentf35ad18673caf6ce17fcbdae60131be765baa4d6 (diff)
downloadfreebsd-ports-gnome-dd52e039e20e99dcbc5bcbe73fabce02e0fc155a.tar.gz
freebsd-ports-gnome-dd52e039e20e99dcbc5bcbe73fabce02e0fc155a.tar.zst
freebsd-ports-gnome-dd52e039e20e99dcbc5bcbe73fabce02e0fc155a.zip
- Update to 0.40
- Add LICENSE - Add OPTIONS: PP for XML::Parsepp Changes: http://search.cpan.org/dist/XML-Reader/Changes
Diffstat (limited to 'textproc')
-rw-r--r--textproc/p5-XML-Reader/Makefile29
-rw-r--r--textproc/p5-XML-Reader/distinfo4
2 files changed, 27 insertions, 6 deletions
diff --git a/textproc/p5-XML-Reader/Makefile b/textproc/p5-XML-Reader/Makefile
index b53d2048e66e..51768343d851 100644
--- a/textproc/p5-XML-Reader/Makefile
+++ b/textproc/p5-XML-Reader/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= XML-Reader
-PORTVERSION= 0.39
+PORTVERSION= 0.40
CATEGORIES= textproc perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -14,8 +14,13 @@ PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Reading XML and providing path information based on a pull-parser
-BUILD_DEPENDS= p5-XML-Parser>=1:${PORTSDIR}/textproc/p5-XML-Parser
-RUN_DEPENDS= p5-XML-Parser>=1:${PORTSDIR}/textproc/p5-XML-Parser
+LICENSE= ART10 GPLv1
+LICENSE_COMB= dual
+
+TEST_DEPENDS= p5-XML-Parser>=1:${PORTSDIR}/textproc/p5-XML-Parser
+
+OPTIONS_DEFINE= PP
+PP_DESC= Use XML::Parsepp (Perl 5.14+ required)
PERL_CONFIGURE= yes
@@ -23,4 +28,20 @@ MAN3= XML::Reader.3 \
XML::Reader_de.3 \
XML::Reader_fr.3
-.include <bsd.port.mk>
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MPP}
+BUILD_DEPENDS+= p5-XML-Parsepp>=0:${PORTSDIR}/textproc/p5-XML-Parsepp
+RUN_DEPENDS+= p5-XML-Parsepp>=0:${PORTSDIR}/textproc/p5-XML-Parsepp
+.else
+BUILD_DEPENDS+= p5-XML-Parser>=1:${PORTSDIR}/textproc/p5-XML-Parser
+RUN_DEPENDS+= p5-XML-Parser>=1:${PORTSDIR}/textproc/p5-XML-Parser
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} >= 501400
+TEST_DEPENDS+= p5-XML-Parsepp>=0:${PORTSDIR}/textproc/p5-XML-Parsepp
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-XML-Reader/distinfo b/textproc/p5-XML-Reader/distinfo
index 84e5b3f692a5..01fb4a8fa3f7 100644
--- a/textproc/p5-XML-Reader/distinfo
+++ b/textproc/p5-XML-Reader/distinfo
@@ -1,2 +1,2 @@
-SHA256 (XML-Reader-0.39.tar.gz) = 296624121e3e541f2b5d928c71475e3576c545544f11e14ef6bf9a27597bcf12
-SIZE (XML-Reader-0.39.tar.gz) = 64113
+SHA256 (XML-Reader-0.40.tar.gz) = b9ab76a6010731838fe9920a08eb608d9fe8c2dd23566ba6dd58e5355431101b
+SIZE (XML-Reader-0.40.tar.gz) = 72021