From owner-svn-ports-head@freebsd.org Sun Jun 30 16:07:47 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F19715D9834; Sun, 30 Jun 2019 16:07:47 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E3D088BD82; Sun, 30 Jun 2019 16:07:46 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B742927C9C; Sun, 30 Jun 2019 16:07:46 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x5UG7kDR074714; Sun, 30 Jun 2019 16:07:46 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x5UG7jqq074709; Sun, 30 Jun 2019 16:07:45 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201906301607.x5UG7jqq074709@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sun, 30 Jun 2019 16:07:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r505429 - in head/devel: . p5-JSON-Parse X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/devel: . p5-JSON-Parse X-SVN-Commit-Revision: 505429 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: E3D088BD82 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.95)[-0.950,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jun 2019 16:07:47 -0000 Author: sunpoet Date: Sun Jun 30 16:07:45 2019 New Revision: 505429 URL: https://svnweb.freebsd.org/changeset/ports/505429 Log: Add p5-JSON-Parse 0.55 JSON::Parse is a module for parsing JSON. (JSON means "JavaScript Object Notation" and it is specified in "RFC 7159".) JSON::Parse offers the function "parse_json", which takes a string containing JSON, and returns an equivalent Perl structure. It also offers validation of JSON via "valid_json", which returns true or false depending on whether the JSON is correct or not, and "assert_valid_json", which produces a descriptive fatal error if the JSON is invalid. A function "json_file_to_perl" reads JSON from a file, and there is a safer version of "parse_json" called "parse_json_safe" which doesn't throw exceptions. For special cases of parsing, there are also methods "new" and "run", which create a JSON parsing object and run it on text. See "METHODS". JSON::Parse accepts only UTF-8 as input. See "UTF-8 only" and "Handling of Unicode". WWW: https://metacpan.org/release/JSON-Parse Added: head/devel/p5-JSON-Parse/ head/devel/p5-JSON-Parse/Makefile (contents, props changed) head/devel/p5-JSON-Parse/distinfo (contents, props changed) head/devel/p5-JSON-Parse/pkg-descr (contents, props changed) head/devel/p5-JSON-Parse/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sun Jun 30 16:06:25 2019 (r505428) +++ head/devel/Makefile Sun Jun 30 16:07:45 2019 (r505429) @@ -2581,6 +2581,7 @@ SUBDIR += p5-JIRA-REST SUBDIR += p5-JQuery SUBDIR += p5-JSON-Hyper + SUBDIR += p5-JSON-Parse SUBDIR += p5-JSON-Path SUBDIR += p5-JSON-Pointer SUBDIR += p5-JSON-RPC Added: head/devel/p5-JSON-Parse/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-JSON-Parse/Makefile Sun Jun 30 16:07:45 2019 (r505429) @@ -0,0 +1,22 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= JSON-Parse +PORTVERSION= 0.55 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Read JSON into a Perl variable + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual + +USES= perl5 +USE_PERL5= configure + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/JSON/Parse/Parse.so + +.include Added: head/devel/p5-JSON-Parse/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-JSON-Parse/distinfo Sun Jun 30 16:07:45 2019 (r505429) @@ -0,0 +1,3 @@ +TIMESTAMP = 1561906599 +SHA256 (JSON-Parse-0.55.tar.gz) = dc9856dbc355114bcb0dc036bb632976b19b88d3a7ad59726f1fa917e7f5d256 +SIZE (JSON-Parse-0.55.tar.gz) = 77591 Added: head/devel/p5-JSON-Parse/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-JSON-Parse/pkg-descr Sun Jun 30 16:07:45 2019 (r505429) @@ -0,0 +1,18 @@ +JSON::Parse is a module for parsing JSON. (JSON means "JavaScript Object +Notation" and it is specified in "RFC 7159".) + +JSON::Parse offers the function "parse_json", which takes a string containing +JSON, and returns an equivalent Perl structure. It also offers validation of +JSON via "valid_json", which returns true or false depending on whether the JSON +is correct or not, and "assert_valid_json", which produces a descriptive fatal +error if the JSON is invalid. A function "json_file_to_perl" reads JSON from a +file, and there is a safer version of "parse_json" called "parse_json_safe" +which doesn't throw exceptions. + +For special cases of parsing, there are also methods "new" and "run", which +create a JSON parsing object and run it on text. See "METHODS". + +JSON::Parse accepts only UTF-8 as input. See "UTF-8 only" and "Handling of +Unicode". + +WWW: https://metacpan.org/release/JSON-Parse Added: head/devel/p5-JSON-Parse/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-JSON-Parse/pkg-plist Sun Jun 30 16:07:45 2019 (r505429) @@ -0,0 +1,8 @@ +bin/validjson +%%SITE_ARCH%%/JSON/Parse.pm +%%SITE_ARCH%%/JSON/Parse.pod +%%SITE_ARCH%%/JSON/Tokenize.pm +%%SITE_ARCH%%/JSON/Tokenize.pod +%%SITE_ARCH%%/auto/JSON/Parse/Parse.so +%%PERL5_MAN3%%/JSON::Parse.3.gz +%%PERL5_MAN3%%/JSON::Tokenize.3.gz