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
| System | Port | Version |
|---|---|---|
| MidnightBSD | converters/p5-JSON-MaybeXS | 1.004008 |
| FreeBSD | converters/p5-JSON-MaybeXS | 1.004008 |
| OpenBSD | converters/p5-JSON-MaybeXS | 1.004008 |
| NetBSD | converters/p5-JSON-MaybeXS | 1.004008 |
| DragonFly | converters/p5-JSON-MaybeXS | 1.004008 |
| HardenedBSD | converters/p5-JSON-MaybeXS | 1.004008 |
| GhostBSD | converters/p5-JSON-MaybeXS | 1.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
p5-Cpanel-JSON-XS>=2.3310: converters/p5-Cpanel-JSON-XS
Runtime 1
p5-Cpanel-JSON-XS>=2.3310: converters/p5-Cpanel-JSON-XS
Test 3
p5-JSON-XS>=0: converters/p5-JSON-XSp5-Test-Needs>=0.002006: devel/p5-Test-Needsp5-Test-Without-Module>=0.17: devel/p5-Test-Without-Module
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
| File | Size | SHA256 |
|---|---|---|
| JSON-MaybeXS-1.004008.tar.gz | 24049 | cd3937afa78831f80a2ad5abab6c51b9e82fca4c31e5856ea208d598db5dc867 |
Master sites 1
- CPAN