Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Apr 2020 18:00:59 +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: r532811 - in head/devel: . p5-Keyword-Declare
Message-ID:  <202004241800.03OI0xDY051895@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <sunpoet@FreeBSD.org>
+# $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 <bsd.port.mk>

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



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