aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2014-02-28 06:50:37 +0800
committersunpoet <sunpoet@FreeBSD.org>2014-02-28 06:50:37 +0800
commitade2702536808ac0d137194632a52602d4738c7e (patch)
tree80535dc7ce95a4ea311f8270f1824c97efc7bc87
parente0d248e85c932e7f6c9d3467f193d67fc6076a8a (diff)
downloadfreebsd-ports-gnome-ade2702536808ac0d137194632a52602d4738c7e.tar.gz
freebsd-ports-gnome-ade2702536808ac0d137194632a52602d4738c7e.tar.zst
freebsd-ports-gnome-ade2702536808ac0d137194632a52602d4738c7e.zip
- Convert to new options helper
- Update PP_DESC - Remove outdated PERL_LEVEL check
-rw-r--r--textproc/p5-XML-Reader/Makefile26
1 files changed, 8 insertions, 18 deletions
diff --git a/textproc/p5-XML-Reader/Makefile b/textproc/p5-XML-Reader/Makefile
index d1fd5b1d8705..aded5eecbdf0 100644
--- a/textproc/p5-XML-Reader/Makefile
+++ b/textproc/p5-XML-Reader/Makefile
@@ -13,28 +13,18 @@ COMMENT= Reading XML and providing path information based on a pull-parser
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
-TEST_DEPENDS= p5-XML-Parser>=1:${PORTSDIR}/textproc/p5-XML-Parser
+TEST_DEPENDS= p5-XML-Parser>=1:${PORTSDIR}/textproc/p5-XML-Parser \
+ p5-XML-Parsepp>=0.04:${PORTSDIR}/textproc/p5-XML-Parsepp
OPTIONS_DEFINE= PP
-PP_DESC= Use XML::Parsepp (Perl 5.14+ required)
+PP_DESC= Use XML::Parsepp
USES= perl5
USE_PERL5= configure
-.include <bsd.port.options.mk>
+PP_BUILD_DEPENDS= p5-XML-Parsepp>=0.04:${PORTSDIR}/textproc/p5-XML-Parsepp
+PP_BUILD_DEPENDS_OFF= p5-XML-Parser>=1:${PORTSDIR}/textproc/p5-XML-Parser
+PP_RUN_DEPENDS= p5-XML-Parsepp>=0.04:${PORTSDIR}/textproc/p5-XML-Parsepp
+PP_RUN_DEPENDS_OFF= p5-XML-Parser>=1:${PORTSDIR}/textproc/p5-XML-Parser
-.if ${PORT_OPTIONS:MPP}
-BUILD_DEPENDS+= p5-XML-Parsepp>=0.04:${PORTSDIR}/textproc/p5-XML-Parsepp
-RUN_DEPENDS+= p5-XML-Parsepp>=0.04:${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.04:${PORTSDIR}/textproc/p5-XML-Parsepp
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>