aboutsummaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-07-06 04:19:53 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-07-06 04:19:53 +0000
commit4f3dd030b5f9509b485b45c3079f28108b84b739 (patch)
treebaa04f04aa681ce7e55d9d5eb13b24abec8e70a5 /textproc
parenteb01b30986cd23e1018d53a06b5e2c76072d1aca (diff)
downloadports-4f3dd030b5f9509b485b45c3079f28108b84b739.tar.gz
ports-4f3dd030b5f9509b485b45c3079f28108b84b739.zip
Notes
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