From owner-svn-ports-head@freebsd.org Fri Apr 24 18:01:01 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 549382BCE01; Fri, 24 Apr 2020 18:01:01 +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 4982644wBwz3J2q; Fri, 24 Apr 2020 18:01:00 +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 7426521F15; Fri, 24 Apr 2020 18:01:00 +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 03OI10Nt051903; Fri, 24 Apr 2020 18:01:00 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 03OI0xDY051895; Fri, 24 Apr 2020 18:00:59 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <202004241800.03OI0xDY051895@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Fri, 24 Apr 2020 18:00:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r532811 - in head/devel: . p5-Keyword-Declare X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/devel: . p5-Keyword-Declare X-SVN-Commit-Revision: 532811 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Fri, 24 Apr 2020 18:01:01 -0000 Author: sunpoet Date: Fri Apr 24 18:00:58 2020 New Revision: 532811 URL: https://svnweb.freebsd.org/changeset/ports/532811 Log: Add p5-Keyword-Declare 0.001017 Keyword::Declare implements a new Perl keyword: keyword, which you can use to specify other new keywords. Normally, to define new keywords in Perl, you either have to write them in XS (shiver!) or use a module like Keyword::Simple or Keyword::API. Using any of these approaches requires you to grab all the source code after the keyword, manually parse out the components of the keyword's syntax, construct the replacement source code, and then substitute it for the original source code you just parsed. Using Keyword::Declare, you define a new keyword by specifying its name and a parameter list corresponding to the syntactic components that must follow the keyword. You then use those parameters to construct and return the replacement source code. The module takes care of setting up the keyword, and of the associated syntax parsing, and of inserting the replacement source code in the correct place. WWW: https://metacpan.org/release/Keyword-Declare Added: head/devel/p5-Keyword-Declare/ head/devel/p5-Keyword-Declare/Makefile (contents, props changed) head/devel/p5-Keyword-Declare/distinfo (contents, props changed) head/devel/p5-Keyword-Declare/pkg-descr (contents, props changed) head/devel/p5-Keyword-Declare/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Fri Apr 24 18:00:52 2020 (r532810) +++ head/devel/Makefile Fri Apr 24 18:00:58 2020 (r532811) @@ -2608,6 +2608,7 @@ SUBDIR += p5-JSON-Schema SUBDIR += p5-Java SUBDIR += p5-Jonk + SUBDIR += p5-Keyword-Declare SUBDIR += p5-Keyword-Pluggable SUBDIR += p5-LV SUBDIR += p5-Lexical-Alias Added: head/devel/p5-Keyword-Declare/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Keyword-Declare/Makefile Fri Apr 24 18:00:58 2020 (r532811) @@ -0,0 +1,27 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= Keyword-Declare +PORTVERSION= 0.001017 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:DCONWAY +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Declare new Perl keywords...via a keyword...named keyword + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-B-Hooks-EndOfScope>=0:devel/p5-B-Hooks-EndOfScope \ + p5-Keyword-Simple>=0:devel/p5-Keyword-Simple \ + p5-PPR>=0.000015:devel/p5-PPR + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include Added: head/devel/p5-Keyword-Declare/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Keyword-Declare/distinfo Fri Apr 24 18:00:58 2020 (r532811) @@ -0,0 +1,3 @@ +TIMESTAMP = 1587721871 +SHA256 (Keyword-Declare-0.001017.tar.gz) = 6cc1cd21f34c869d1fdc95cfd35b36754105a90123430d43f91e04288e2ee315 +SIZE (Keyword-Declare-0.001017.tar.gz) = 47930 Added: head/devel/p5-Keyword-Declare/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Keyword-Declare/pkg-descr Fri Apr 24 18:00:58 2020 (r532811) @@ -0,0 +1,18 @@ +Keyword::Declare implements a new Perl keyword: keyword, which you can use to +specify other new keywords. + +Normally, to define new keywords in Perl, you either have to write them in XS +(shiver!) or use a module like Keyword::Simple or Keyword::API. Using any of +these approaches requires you to grab all the source code after the keyword, +manually parse out the components of the keyword's syntax, construct the +replacement source code, and then substitute it for the original source code you +just parsed. + +Using Keyword::Declare, you define a new keyword by specifying its name and a +parameter list corresponding to the syntactic components that must follow the +keyword. You then use those parameters to construct and return the replacement +source code. The module takes care of setting up the keyword, and of the +associated syntax parsing, and of inserting the replacement source code in the +correct place. + +WWW: https://metacpan.org/release/Keyword-Declare Added: head/devel/p5-Keyword-Declare/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Keyword-Declare/pkg-plist Fri Apr 24 18:00:58 2020 (r532811) @@ -0,0 +1,2 @@ +%%SITE_PERL%%/Keyword/Declare.pm +%%PERL5_MAN3%%/Keyword::Declare.3.gz