diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2013-11-07 02:57:15 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2013-11-07 02:57:15 +0800 |
commit | b0189074545a3d6f1b34d4cc48c0ea03e259edfa (patch) | |
tree | ec499c5ed8c79b2a5727e3fd22b4ced8f6d7ee4f /converters/p5-JSON-MaybeXS | |
parent | 586de24eaf85782255843c913eaebcf02b735775 (diff) | |
download | freebsd-ports-gnome-b0189074545a3d6f1b34d4cc48c0ea03e259edfa.tar.gz freebsd-ports-gnome-b0189074545a3d6f1b34d4cc48c0ea03e259edfa.tar.zst freebsd-ports-gnome-b0189074545a3d6f1b34d4cc48c0ea03e259edfa.zip |
- Add p5-JSON-MaybeXS 1.000000
JSON::MaybeXS tries to load Cpanel::JSON::XS, and if that fails instead tries to
load JSON::PP. If neither is available, an exception will be thrown.
It then exports the encode_json and decode_json functions from the loaded
module, along with a JSON constant that returns the class name for calling new
on.
WWW: http://search.cpan.org/dist/JSON-MaybeXS/
Diffstat (limited to 'converters/p5-JSON-MaybeXS')
-rw-r--r-- | converters/p5-JSON-MaybeXS/Makefile | 30 | ||||
-rw-r--r-- | converters/p5-JSON-MaybeXS/distinfo | 2 | ||||
-rw-r--r-- | converters/p5-JSON-MaybeXS/pkg-descr | 8 | ||||
-rw-r--r-- | converters/p5-JSON-MaybeXS/pkg-plist | 6 |
4 files changed, 46 insertions, 0 deletions
diff --git a/converters/p5-JSON-MaybeXS/Makefile b/converters/p5-JSON-MaybeXS/Makefile new file mode 100644 index 000000000000..1db52374c9e3 --- /dev/null +++ b/converters/p5-JSON-MaybeXS/Makefile @@ -0,0 +1,30 @@ +# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= JSON-MaybeXS +PORTVERSION= 1.000000 +CATEGORIES= converters perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Use Cpanel::JSON::XS with a fallback to JSON::PP + +LICENSE= ART10 GPLv1 +LICENSE_COMB= dual + +BUILD_DEPENDS= p5-Cpanel-JSON-XS>=2.33.10:${PORTSDIR}/converters/p5-Cpanel-JSON-XS +RUN_DEPENDS:= ${BUILD_DEPENDS} +TEST_DEPENDS= p5-Test-Without-Module>=0.17:${PORTSDIR}/devel/p5-Test-Without-Module + +USE_PERL5= configure +USES= perl5 + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 501800 +BUILD_DEPENDS+= p5-JSON-PP>=2.27202:${PORTSDIR}/converters/p5-JSON-PP +RUN_DEPENDS+= p5-JSON-PP>=2.27202:${PORTSDIR}/converters/p5-JSON-PP +.endif + +.include <bsd.port.post.mk> diff --git a/converters/p5-JSON-MaybeXS/distinfo b/converters/p5-JSON-MaybeXS/distinfo new file mode 100644 index 000000000000..73fdaf88bb29 --- /dev/null +++ b/converters/p5-JSON-MaybeXS/distinfo @@ -0,0 +1,2 @@ +SHA256 (JSON-MaybeXS-1.000000.tar.gz) = a8dd97d144e2077f112493da7b28f5783e1042335703cf71a03705b9ef2419a0 +SIZE (JSON-MaybeXS-1.000000.tar.gz) = 4143 diff --git a/converters/p5-JSON-MaybeXS/pkg-descr b/converters/p5-JSON-MaybeXS/pkg-descr new file mode 100644 index 000000000000..4d3d65e53a04 --- /dev/null +++ b/converters/p5-JSON-MaybeXS/pkg-descr @@ -0,0 +1,8 @@ +JSON::MaybeXS tries to load Cpanel::JSON::XS, and if that fails instead tries to +load JSON::PP. If neither is available, an exception will be thrown. + +It then exports the encode_json and decode_json functions from the loaded +module, along with a JSON constant that returns the class name for calling new +on. + +WWW: http://search.cpan.org/dist/JSON-MaybeXS/ diff --git a/converters/p5-JSON-MaybeXS/pkg-plist b/converters/p5-JSON-MaybeXS/pkg-plist new file mode 100644 index 000000000000..dfb9b825678c --- /dev/null +++ b/converters/p5-JSON-MaybeXS/pkg-plist @@ -0,0 +1,6 @@ +%%SITE_PERL%%/JSON/MaybeXS.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/JSON/MaybeXS/.packlist +%%PERL5_MAN3%%/JSON::MaybeXS.3.gz +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/JSON/MaybeXS +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/JSON +@dirrmtry %%SITE_PERL%%/JSON |