BSD Ports

converters/p5-JSON-MaybeXS 1.004008 DragonFly

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

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
converters, perl5
Package size
16.1 KiB, 40.6 KiB installed

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
DragonFlyconverters/p5-JSON-MaybeXS1.004008
FreeBSDconverters/p5-JSON-MaybeXS1.004008
OpenBSDconverters/p5-JSON-MaybeXS1.004008
NetBSDconverters/p5-JSON-MaybeXS1.004008
MidnightBSDconverters/p5-JSON-MaybeXS1.004008
HardenedBSDconverters/p5-JSON-MaybeXS1.004008
GhostBSDconverters/p5-JSON-MaybeXS1.004008

Install

Binary package:

pkg install p5-JSON-MaybeXS

From DPorts:

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

Dependencies

Run dependencies 2