Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Nov 2013 18:57:15 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r333023 - in head/converters: . p5-JSON-MaybeXS
Message-ID:  <201311061857.rA6IvFtm099820@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Wed Nov  6 18:57:15 2013
New Revision: 333023
URL: http://svnweb.freebsd.org/changeset/ports/333023

Log:
  - 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/

Added:
  head/converters/p5-JSON-MaybeXS/
  head/converters/p5-JSON-MaybeXS/Makefile   (contents, props changed)
  head/converters/p5-JSON-MaybeXS/distinfo   (contents, props changed)
  head/converters/p5-JSON-MaybeXS/pkg-descr   (contents, props changed)
  head/converters/p5-JSON-MaybeXS/pkg-plist   (contents, props changed)
Modified:
  head/converters/Makefile

Modified: head/converters/Makefile
==============================================================================
--- head/converters/Makefile	Wed Nov  6 18:56:00 2013	(r333022)
+++ head/converters/Makefile	Wed Nov  6 18:57:15 2013	(r333023)
@@ -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

Added: head/converters/p5-JSON-MaybeXS/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/converters/p5-JSON-MaybeXS/Makefile	Wed Nov  6 18:57:15 2013	(r333023)
@@ -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>

Added: head/converters/p5-JSON-MaybeXS/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/converters/p5-JSON-MaybeXS/distinfo	Wed Nov  6 18:57:15 2013	(r333023)
@@ -0,0 +1,2 @@
+SHA256 (JSON-MaybeXS-1.000000.tar.gz) = a8dd97d144e2077f112493da7b28f5783e1042335703cf71a03705b9ef2419a0
+SIZE (JSON-MaybeXS-1.000000.tar.gz) = 4143

Added: head/converters/p5-JSON-MaybeXS/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/converters/p5-JSON-MaybeXS/pkg-descr	Wed Nov  6 18:57:15 2013	(r333023)
@@ -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/

Added: head/converters/p5-JSON-MaybeXS/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/converters/p5-JSON-MaybeXS/pkg-plist	Wed Nov  6 18:57:15 2013	(r333023)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311061857.rA6IvFtm099820>