From 2ff3d6dc54e23bbcf29d713e721804baf5544a5d Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Tue, 18 Mar 2014 16:46:08 +0000 Subject: [PATCH] - Add p5-match-simple 0.008 match::simple provides a simple match operator |M| that acts like a sane subset of the (as of Perl 5.18) deprecated smart match operator. Unlike smart match, the behaviour of the match is determined entirely by the operand on the right hand side. WWW: http://search.cpan.org/dist/match-simple/ --- devel/Makefile | 1 + devel/p5-match-simple/Makefile | 26 ++++++++++++++++++++++++++ devel/p5-match-simple/distinfo | 2 ++ devel/p5-match-simple/pkg-descr | 6 ++++++ devel/p5-match-simple/pkg-plist | 8 ++++++++ 5 files changed, 43 insertions(+) create mode 100644 devel/p5-match-simple/Makefile create mode 100644 devel/p5-match-simple/distinfo create mode 100644 devel/p5-match-simple/pkg-descr create mode 100644 devel/p5-match-simple/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 5ab278ab700f..816b0b3056c0 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3081,6 +3081,7 @@ SUBDIR += p5-libalarm SUBDIR += p5-libxml-enno SUBDIR += p5-local-lib + SUBDIR += p5-match-simple SUBDIR += p5-mixin SUBDIR += p5-mocked SUBDIR += p5-multidimensional diff --git a/devel/p5-match-simple/Makefile b/devel/p5-match-simple/Makefile new file mode 100644 index 000000000000..485b791ac588 --- /dev/null +++ b/devel/p5-match-simple/Makefile @@ -0,0 +1,26 @@ +# Created by: Sunpoet Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= match-simple +PORTVERSION= 0.008 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:TOBYINK +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Simplified clone of smartmatch operator + +LICENSE= ART10 GPLv1 +LICENSE_COMB= dual + +BUILD_DEPENDS= p5-Exporter-Tiny>=0.026:${PORTSDIR}/devel/p5-Exporter-Tiny \ + p5-List-MoreUtils>=0:${PORTSDIR}/lang/p5-List-MoreUtils \ + p5-Sub-Infix>=0.001:${PORTSDIR}/devel/p5-Sub-Infix +RUN_DEPENDS:= ${BUILD_DEPENDS} +TEST_DEPENDS= p5-Test-Fatal>=0:${PORTSDIR}/devel/p5-Test-Fatal + +USE_PERL5= configure +USES= perl5 + +.include diff --git a/devel/p5-match-simple/distinfo b/devel/p5-match-simple/distinfo new file mode 100644 index 000000000000..12f3fbde8c5e --- /dev/null +++ b/devel/p5-match-simple/distinfo @@ -0,0 +1,2 @@ +SHA256 (match-simple-0.008.tar.gz) = cc1d6aa8fd1625f59651d1d82f543cffa7552404fd3cb5d4a28868eaaa9a313d +SIZE (match-simple-0.008.tar.gz) = 22403 diff --git a/devel/p5-match-simple/pkg-descr b/devel/p5-match-simple/pkg-descr new file mode 100644 index 000000000000..5b328252b7ea --- /dev/null +++ b/devel/p5-match-simple/pkg-descr @@ -0,0 +1,6 @@ +match::simple provides a simple match operator |M| that acts like a sane subset +of the (as of Perl 5.18) deprecated smart match operator. Unlike smart match, +the behaviour of the match is determined entirely by the operand on the right +hand side. + +WWW: http://search.cpan.org/dist/match-simple/ diff --git a/devel/p5-match-simple/pkg-plist b/devel/p5-match-simple/pkg-plist new file mode 100644 index 000000000000..950d42453905 --- /dev/null +++ b/devel/p5-match-simple/pkg-plist @@ -0,0 +1,8 @@ +%%SITE_PERL%%/%%PERL_ARCH%%/auto/match/simple/.packlist +%%SITE_PERL%%/match/simple.pm +%%SITE_PERL%%/match/smart.pm +%%PERL5_MAN3%%/match::simple.3.gz +%%PERL5_MAN3%%/match::smart.3.gz +@dirrmtry %%SITE_PERL%%/match +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/match/simple +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/match