From owner-svn-ports-all@FreeBSD.ORG Wed Nov 6 18:57:16 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CE57444B; Wed, 6 Nov 2013 18:57:16 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B37BB24D9; Wed, 6 Nov 2013 18:57:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rA6IvGm4099826; Wed, 6 Nov 2013 18:57:16 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rA6IvFtm099820; Wed, 6 Nov 2013 18:57:15 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201311061857.rA6IvFtm099820@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Wed, 6 Nov 2013 18:57:15 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Nov 2013 18:57:17 -0000 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 +# $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 + +.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 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