git: 36765a20d3b1 - main - devel/p5-Syntax-Keyword-Match: Add p5-Syntax-Keyword-Match 0.09
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 16 Apr 2022 04:20:46 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=36765a20d3b136499f00cb2dea441b5d287ac254 commit 36765a20d3b136499f00cb2dea441b5d287ac254 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-04-16 03:39:01 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-04-16 04:19:02 +0000 devel/p5-Syntax-Keyword-Match: Add p5-Syntax-Keyword-Match 0.09 Syntax::Keyword::Match provides a syntax plugin that implements a control-flow block called match/case, which executes at most one of a choice of different blocks depending on the value of its controlling expression. This is similar to C's switch/case syntax (copied into many other languages), or syntax provided by Switch::Plain. WWW: https://metacpan.org/dist/Syntax-Keyword-Match --- devel/Makefile | 1 + devel/p5-Syntax-Keyword-Match/Makefile | 25 +++++++++++++++++++++++++ devel/p5-Syntax-Keyword-Match/distinfo | 3 +++ devel/p5-Syntax-Keyword-Match/pkg-descr | 8 ++++++++ devel/p5-Syntax-Keyword-Match/pkg-plist | 3 +++ 5 files changed, 40 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 52b7cde2a30b..a5d72b66137d 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3334,6 +3334,7 @@ SUBDIR += p5-Syntax-Keyword-Dynamically SUBDIR += p5-Syntax-Keyword-Gather SUBDIR += p5-Syntax-Keyword-Junction + SUBDIR += p5-Syntax-Keyword-Match SUBDIR += p5-Syntax-Keyword-Try SUBDIR += p5-Sys-CPU SUBDIR += p5-Sys-Info diff --git a/devel/p5-Syntax-Keyword-Match/Makefile b/devel/p5-Syntax-Keyword-Match/Makefile new file mode 100644 index 000000000000..1ecb27bd5e9c --- /dev/null +++ b/devel/p5-Syntax-Keyword-Match/Makefile @@ -0,0 +1,25 @@ +# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org> + +PORTNAME= Syntax-Keyword-Match +PORTVERSION= 0.09 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Match/case syntax for Perl + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-XS-Parse-Keyword>=0.14:devel/p5-XS-Parse-Keyword + +USES= perl5 +USE_PERL5= modbuild + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Syntax/Keyword/Match/Match.so + +.include <bsd.port.mk> diff --git a/devel/p5-Syntax-Keyword-Match/distinfo b/devel/p5-Syntax-Keyword-Match/distinfo new file mode 100644 index 000000000000..1a90d5192794 --- /dev/null +++ b/devel/p5-Syntax-Keyword-Match/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1649423640 +SHA256 (Syntax-Keyword-Match-0.09.tar.gz) = ea5875400ff479f9711daf835e4e8120c0b6587e623a40d8cf572b30d2c64051 +SIZE (Syntax-Keyword-Match-0.09.tar.gz) = 24839 diff --git a/devel/p5-Syntax-Keyword-Match/pkg-descr b/devel/p5-Syntax-Keyword-Match/pkg-descr new file mode 100644 index 000000000000..646eb085d3ae --- /dev/null +++ b/devel/p5-Syntax-Keyword-Match/pkg-descr @@ -0,0 +1,8 @@ +Syntax::Keyword::Match provides a syntax plugin that implements a control-flow +block called match/case, which executes at most one of a choice of different +blocks depending on the value of its controlling expression. + +This is similar to C's switch/case syntax (copied into many other languages), or +syntax provided by Switch::Plain. + +WWW: https://metacpan.org/dist/Syntax-Keyword-Match diff --git a/devel/p5-Syntax-Keyword-Match/pkg-plist b/devel/p5-Syntax-Keyword-Match/pkg-plist new file mode 100644 index 000000000000..67eebbba07b4 --- /dev/null +++ b/devel/p5-Syntax-Keyword-Match/pkg-plist @@ -0,0 +1,3 @@ +%%SITE_ARCH%%/Syntax/Keyword/Match.pm +%%SITE_ARCH%%/auto/Syntax/Keyword/Match/Match.so +%%PERL5_MAN3%%/Syntax::Keyword::Match.3.gz