BSD Ports

converters/p5-JSON-MaybeXS 1.004008 MidnightBSD

Use Cpanel::JSON::XS with a fallback to JSON::PP

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
artistic, gpl+
Categories
converters, perl5

Description

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.

In the other systems

SystemPortVersion
MidnightBSDconverters/p5-JSON-MaybeXS1.004008
FreeBSDconverters/p5-JSON-MaybeXS1.004008
OpenBSDconverters/p5-JSON-MaybeXS1.004008
NetBSDconverters/p5-JSON-MaybeXS1.004008
DragonFlyconverters/p5-JSON-MaybeXS1.004008
HardenedBSDconverters/p5-JSON-MaybeXS1.004008
GhostBSDconverters/p5-JSON-MaybeXS1.004008

Install

Binary package:

mport install p5-JSON-MaybeXS

From mports:

cd /usr/mports/converters/p5-JSON-MaybeXS && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-JSON-MaybeXS>0:converters/p5-JSON-MaybeXS

Dependencies

As this port's Makefile names them.

Build 1

Runtime 1

Test 3

Build dependencies 1
Run dependencies 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/JSON/MaybeXS.pm
  • %%PERL5_MAN3%%/JSON::MaybeXS.3.gz
distinfo 1
FileSizeSHA256
JSON-MaybeXS-1.004008.tar.gz24049cd3937afa78831f80a2ad5abab6c51b9e82fca4c31e5856ea208d598db5dc867
Master sites 1
  • CPAN