diff options
author | sno <sno> | 2012-09-13 15:46:59 +0000 |
---|---|---|
committer | sno <sno> | 2012-09-13 15:46:59 +0000 |
commit | d8590672f58b9f7007408348d907f6446795d4ae (patch) | |
tree | 4c743c384ed433c6fb5bdac64d3778dcc11d985c /devel | |
parent | 55d9640d4f421543c183f5f248b13a74f4882907 (diff) | |
download | pkgsrc-d8590672f58b9f7007408348d907f6446795d4ae.tar.gz |
Adding package for CPAN modules Syntax::Feature::Junction and
Syntax::Keyword::Junction from distribution Syntax-Keyword-Junction
version 0.003001 into devel/p5-Syntax-Keyword-Junction.
This is a lightweight module which provides 'Junction' operators, the most
commonly used being any and all. Inspired by the Perl6 design docs [1].
Provides a limited subset of the functionality of Quantum::Superpositions
([2]).
That if you want to match against a regular expression, you must use == or
!=. Not =~ or !~. You must also use a regex object, such as qr/\d/, not a
plain regex such as /\d/.
This module is actually a fork of Perl6::Junction with very few (initial)
changes. The reason being that we want to avoid the incendiary name
containing Perl6.
Quantum::Superpositions provides the same functionality as this, and more.
However, this module provides this limited functionality at a much greater
runtime speed, with my benchmarks showing between 500% and 6000% improvment.
[1] http://dev.perl.org/perl6/doc/design/exe/E06.html
[2] http://search.cpan.org/perldoc?Quantum%3A%3ASuperpositions
Diffstat (limited to 'devel')
-rw-r--r-- | devel/p5-Syntax-Keyword-Junction/DESCR | 20 | ||||
-rw-r--r-- | devel/p5-Syntax-Keyword-Junction/Makefile | 22 | ||||
-rw-r--r-- | devel/p5-Syntax-Keyword-Junction/distinfo | 5 |
3 files changed, 47 insertions, 0 deletions
diff --git a/devel/p5-Syntax-Keyword-Junction/DESCR b/devel/p5-Syntax-Keyword-Junction/DESCR new file mode 100644 index 00000000000..7870bacf048 --- /dev/null +++ b/devel/p5-Syntax-Keyword-Junction/DESCR @@ -0,0 +1,20 @@ +This is a lightweight module which provides 'Junction' operators, the most +commonly used being any and all. Inspired by the Perl6 design docs [1]. + +Provides a limited subset of the functionality of Quantum::Superpositions +([2]). + +That if you want to match against a regular expression, you must use == or +!=. Not =~ or !~. You must also use a regex object, such as qr/\d/, not a +plain regex such as /\d/. + +This module is actually a fork of Perl6::Junction with very few (initial) +changes. The reason being that we want to avoid the incendiary name +containing Perl6. + +Quantum::Superpositions provides the same functionality as this, and more. +However, this module provides this limited functionality at a much greater +runtime speed, with my benchmarks showing between 500% and 6000% improvment. + +[1] http://dev.perl.org/perl6/doc/design/exe/E06.html +[2] http://search.cpan.org/perldoc?Quantum%3A%3ASuperpositions diff --git a/devel/p5-Syntax-Keyword-Junction/Makefile b/devel/p5-Syntax-Keyword-Junction/Makefile new file mode 100644 index 00000000000..c284b45335d --- /dev/null +++ b/devel/p5-Syntax-Keyword-Junction/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2012/09/13 15:46:59 sno Exp $ +# + +DISTNAME= Syntax-Keyword-Junction-0.003001 +PKGNAME= p5-${DISTNAME} +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Syntax/} + +MAINTAINER= rhaen@NetBSD.org +HOMEPAGE= http://search.cpan.org/dist/Syntax-Keyword-Junction/ +COMMENT= Perl5 module to provide keywords for any, all, none, or one +LICENSE= ${PERL5_LICENSE} + +PKG_DESTDIR_SUPPORT= user-destdir + +DEPENDS+= p5-Sub-Exporter-Progressive>=0.001006:../../devel/p5-Sub-Exporter-Progressive +DEPENDS+= p5-syntax-[0-9]*:../../devel/p5-syntax + +PERL5_PACKLIST= auto/Syntax/Keyword/Junction/.packlist + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-Syntax-Keyword-Junction/distinfo b/devel/p5-Syntax-Keyword-Junction/distinfo new file mode 100644 index 00000000000..2034475855e --- /dev/null +++ b/devel/p5-Syntax-Keyword-Junction/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2012/09/13 15:46:59 sno Exp $ + +SHA1 (Syntax-Keyword-Junction-0.003001.tar.gz) = f6b627d549519c2216c502da6da6df694ec593fb +RMD160 (Syntax-Keyword-Junction-0.003001.tar.gz) = de355183f2e3160ca48e6694470e17c828686fd2 +Size (Syntax-Keyword-Junction-0.003001.tar.gz) = 16776 bytes |