aboutsummaryrefslogtreecommitdiffstats
path: root/converters
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2013-11-07 23:06:56 +0800
committersunpoet <sunpoet@FreeBSD.org>2013-11-07 23:06:56 +0800
commit56e968c555c65c8c853c001b31e28fe519c111d4 (patch)
treebf614e6af181b38e74a7619f0fe9602d4de88e62 /converters
parent844385664a7cd9fcb20daa35f738803a9af550c0 (diff)
downloadfreebsd-ports-gnome-56e968c555c65c8c853c001b31e28fe519c111d4.tar.gz
freebsd-ports-gnome-56e968c555c65c8c853c001b31e28fe519c111d4.tar.zst
freebsd-ports-gnome-56e968c555c65c8c853c001b31e28fe519c111d4.zip
- Update 1.31
- Remove hardcoded p5-JSON dependency - Add TEST_DEPENDS - Add CPANEL, JSON_XS, JSON_PP, JSON and JSON_DWIW options for JSON backend Changes: http://search.cpan.org/dist/JSON-Any/CHANGES
Diffstat (limited to 'converters')
-rw-r--r--converters/p5-JSON-Any/Makefile38
-rw-r--r--converters/p5-JSON-Any/distinfo4
2 files changed, 36 insertions, 6 deletions
diff --git a/converters/p5-JSON-Any/Makefile b/converters/p5-JSON-Any/Makefile
index 7c47e9b2d087..1e901915c9a8 100644
--- a/converters/p5-JSON-Any/Makefile
+++ b/converters/p5-JSON-Any/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= JSON-Any
-PORTVERSION= 1.30
+PORTVERSION= 1.31
CATEGORIES= converters perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -13,10 +13,40 @@ COMMENT= Perl Wrapper Class for the various JSON classes
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
-BUILD_DEPENDS= p5-JSON>=2.02:${PORTSDIR}/converters/p5-JSON
-RUN_DEPENDS= p5-JSON>=2.02:${PORTSDIR}/converters/p5-JSON
+TEST_DEPENDS= p5-Cpanel-JSON-XS>=0:${PORTSDIR}/converters/p5-Cpanel-JSON-XS \
+ p5-JSON>=0:${PORTSDIR}/converters/p5-JSON \
+ p5-JSON-DWIW>=0:${PORTSDIR}/converters/p5-JSON-DWIW \
+ p5-JSON-XS>=0:${PORTSDIR}/converters/p5-JSON-XS \
+ p5-Test-Requires>=0:${PORTSDIR}/devel/p5-Test-Requires \
+ p5-Test-Without-Module>=0.17:${PORTSDIR}/devel/p5-Test-Without-Module
+
+# Author preference: Cpanel::JSON::XS > JSON::XS > JSON::PP > JSON > JSON::DWIW
+OPTIONS_DEFINE= CPANEL JSON_XS JSON_PP JSON JSON_DWIW
+OPTIONS_DEFAULT=CPANEL
+CPANEL_DESC= Use Cpanel::JSON::XS
+JSON_DESC= Use JSON
+JSON_DWIW_DESC= Use JSON::DWIW
+JSON_PP_DESC= Use JSON::PP
+JSON_XS_DESC= Use JSON::XS
USES= perl5
USE_PERL5= configure
-.include <bsd.port.mk>
+CPANEL_BUILD_DEPENDS= p5-Cpanel-JSON-XS>=0:${PORTSDIR}/converters/p5-Cpanel-JSON-XS
+CPANEL_RUN_DEPENDS= p5-Cpanel-JSON-XS>=0:${PORTSDIR}/converters/p5-Cpanel-JSON-XS
+JSON_BUILD_DEPENDS= p5-JSON>=0:${PORTSDIR}/converters/p5-JSON
+JSON_RUN_DEPENDS= p5-JSON>=0:${PORTSDIR}/converters/p5-JSON
+JSON_DWIW_BUILD_DEPENDS=p5-JSON-DWIW>=0:${PORTSDIR}/converters/p5-JSON-DWIW
+JSON_DWIW_RUN_DEPENDS= p5-JSON-DWIW>=0:${PORTSDIR}/converters/p5-JSON-DWIW
+JSON_PP_BUILD_DEPENDS= p5-JSON-PP>=0:${PORTSDIR}/converters/p5-JSON-PP
+JSON_PP_RUN_DEPENDS= p5-JSON-PP>=0:${PORTSDIR}/converters/p5-JSON-PP
+JSON_XS_BUILD_DEPENDS= p5-JSON-XS>=0:${PORTSDIR}/converters/p5-JSON-XS
+JSON_XS_RUN_DEPENDS= p5-JSON-XS>=0:${PORTSDIR}/converters/p5-JSON-XS
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501400
+TEST_DEPENDS+= p5-JSON-PP>=0:${PORTSDIR}/converters/p5-JSON-PP
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/converters/p5-JSON-Any/distinfo b/converters/p5-JSON-Any/distinfo
index 5afc765c0df8..564fcef0d6d4 100644
--- a/converters/p5-JSON-Any/distinfo
+++ b/converters/p5-JSON-Any/distinfo
@@ -1,2 +1,2 @@
-SHA256 (JSON-Any-1.30.tar.gz) = 40fcace8ef117cd98f1369237465b2f28331a8ae83558751705e63678b6f6a60
-SIZE (JSON-Any-1.30.tar.gz) = 19612
+SHA256 (JSON-Any-1.31.tar.gz) = 8e7fce281b04ad93b20007d77e78244ec748ac731338f6b7b477a554370dbff3
+SIZE (JSON-Any-1.31.tar.gz) = 26546