import p5-JSON-MaybeXS 1.003005

OK benoit@

use Cpanel::JSON::XS or JSON::XS or JSON::PP

This module first checks to see if either Cpanel::JSON::XS or
JSON::XS is already loaded, in which case it uses that module.
Otherwise it tries to load Cpanel::JSON::XS, then JSON::XS, then
JSON::PP in order, and either uses the first module it finds or
throws an error.
This commit is contained in:
bluhm 2015-08-24 14:38:01 +00:00
parent e1350ba983
commit fd36514911
4 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# $OpenBSD: Makefile,v 1.1.1.1 2015/08/24 14:38:01 bluhm Exp $
COMMENT = use Cpanel::JSON::XS or JSON::XS or JSON::PP
DISTNAME = JSON-MaybeXS-1.003005
CATEGORIES = converters
MAINTAINER = Alexander Bluhm <bluhm@openbsd.org>
# perl_5
PERMIT_PACKAGE_CDROM = Yes
MODULES = cpan
TEST_DEPENDS = devel/p5-Test-Without-Module>=0.17
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (JSON-MaybeXS-1.003005.tar.gz) = vbRpS1ZPEEWdSbllhpPOuLkbZtsPxenxnPFfPORsyAo=
SIZE (JSON-MaybeXS-1.003005.tar.gz) = 10373

View File

@ -0,0 +1,5 @@
This module first checks to see if either Cpanel::JSON::XS or
JSON::XS is already loaded, in which case it uses that module.
Otherwise it tries to load Cpanel::JSON::XS, then JSON::XS, then
JSON::PP in order, and either uses the first module it finds or
throws an error.

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2015/08/24 14:38:01 bluhm Exp $
${P5SITE}/JSON/
${P5SITE}/JSON/MaybeXS.pm
@man man/man3p/JSON::MaybeXS.3p