- 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/
This commit is contained in:
parent
f938e2c7bb
commit
88967f8668
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333023
@ -88,6 +88,7 @@
|
||||
SUBDIR += p5-JSON
|
||||
SUBDIR += p5-JSON-Any
|
||||
SUBDIR += p5-JSON-DWIW
|
||||
SUBDIR += p5-JSON-MaybeXS
|
||||
SUBDIR += p5-JSON-PP
|
||||
SUBDIR += p5-JSON-XS
|
||||
SUBDIR += p5-JSON-XS-VersionOneAndTwo
|
||||
|
30
converters/p5-JSON-MaybeXS/Makefile
Normal file
30
converters/p5-JSON-MaybeXS/Makefile
Normal file
@ -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>
|
2
converters/p5-JSON-MaybeXS/distinfo
Normal file
2
converters/p5-JSON-MaybeXS/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (JSON-MaybeXS-1.000000.tar.gz) = a8dd97d144e2077f112493da7b28f5783e1042335703cf71a03705b9ef2419a0
|
||||
SIZE (JSON-MaybeXS-1.000000.tar.gz) = 4143
|
8
converters/p5-JSON-MaybeXS/pkg-descr
Normal file
8
converters/p5-JSON-MaybeXS/pkg-descr
Normal file
@ -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/
|
6
converters/p5-JSON-MaybeXS/pkg-plist
Normal file
6
converters/p5-JSON-MaybeXS/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user