summaryrefslogtreecommitdiff
path: root/devel/p5-Method-Signatures
diff options
context:
space:
mode:
authorsno <sno@pkgsrc.org>2011-11-15 18:05:20 +0000
committersno <sno@pkgsrc.org>2011-11-15 18:05:20 +0000
commit47f35bb94b1ed1620cc52be4d8c0f948f7593c29 (patch)
tree965c909a9857561d817347200f343fc73980404a /devel/p5-Method-Signatures
parentf3da8e8c5a53252e9633f462f68cac7a5afb1e09 (diff)
downloadpkgsrc-47f35bb94b1ed1620cc52be4d8c0f948f7593c29.tar.gz
Importing package for CPAN module Method::Signatures 20111020 into
devel/p5-Method-Signatures to let developers use new keywords func and methods when writing scripts or modules for the Perl programming language. This package is a dependency of scheduled update of devel/p5-Git-CPAN-Patch to 0.7.0. Method::Signatures provides two new keywords, func and method, so that you can write subroutines with signatures instead of having to spell out my $self = shift; my($thing) = @_ * func is like sub but takes a signature where the prototype would normally go. This takes the place of my($foo, $bar) = @_ and does a whole lot more. * method is like func but specifically for making methods. It will automatically provide the invocant as $self. No more my $self = shift. Also allows signatures, very similar to Perl 6 signatures. Also does type checking, understanding all the types that Moose (or Mouse) would understand. And it does all this with no source filters.
Diffstat (limited to 'devel/p5-Method-Signatures')
-rw-r--r--devel/p5-Method-Signatures/DESCR15
-rw-r--r--devel/p5-Method-Signatures/Makefile32
-rw-r--r--devel/p5-Method-Signatures/distinfo5
3 files changed, 52 insertions, 0 deletions
diff --git a/devel/p5-Method-Signatures/DESCR b/devel/p5-Method-Signatures/DESCR
new file mode 100644
index 00000000000..4cd36cc9c44
--- /dev/null
+++ b/devel/p5-Method-Signatures/DESCR
@@ -0,0 +1,15 @@
+Method::Signatures provides two new keywords, func and method, so that you
+can write subroutines with signatures instead of having to spell out my
+ $self = shift; my($thing) = @_
+
+* func is like sub but takes a signature where the prototype would normally
+ go. This takes the place of my($foo, $bar) = @_ and does a whole lot more.
+
+* method is like func but specifically for making methods. It will
+ automatically provide the invocant as $self. No more my $self = shift.
+
+Also allows signatures, very similar to Perl 6 signatures.
+
+Also does type checking, understanding all the types that Moose (or Mouse) would understand.
+
+And it does all this with no source filters.
diff --git a/devel/p5-Method-Signatures/Makefile b/devel/p5-Method-Signatures/Makefile
new file mode 100644
index 00000000000..b705940e100
--- /dev/null
+++ b/devel/p5-Method-Signatures/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/11/15 18:05:20 sno Exp $
+
+DISTNAME= Method-Signatures-20111020
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/B/BA/BAREFOOT/}
+#MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Method/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/Method-Signatures/
+COMMENT= Method and function declarations with signatures and no source filter
+LICENSE= ${PERL5_LICENSE}
+
+DEPENDS+= p5-Const-Fast>=0.006:../../devel/p5-Const-Fast
+DEPENDS+= p5-Devel-Pragma>=0.40:../../devel/p5-Devel-Pragma
+DEPENDS+= p5-Devel-Declare>=0.006002:../../devel/p5-Devel-Declare
+DEPENDS+= p5-Devel-BeginLift>=0.001001:../../devel/p5-Devel-BeginLift
+DEPENDS+= p5-PPI>=1.203:../../devel/p5-PPI
+DEPENDS+= p5-Data-Alias>=1.08:../../devel/p5-Data-Alias
+DEPENDS+= p5-Any-Moose>=0.11:../../devel/p5-Any-Moose
+DEPENDS+= p5-Mouse>=0.64:../../devel/p5-Mouse
+DEPENDS+= p5-Sub-Name>=0.03:../../devel/p5-Sub-Name
+
+USE_LANGUAGES= # empty
+
+PERL5_PACKLIST= auto/Method/Signatures/.packlist
+PERL5_MODULE_TYPE= Module::Build
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-Method-Signatures/distinfo b/devel/p5-Method-Signatures/distinfo
new file mode 100644
index 00000000000..5f83dea86ad
--- /dev/null
+++ b/devel/p5-Method-Signatures/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/11/15 18:05:20 sno Exp $
+
+SHA1 (Method-Signatures-20111020.tar.gz) = e29a04941ff1146eef60854d27cee237e1ceff9b
+RMD160 (Method-Signatures-20111020.tar.gz) = 35208f59fc725605f76b5db7dbe2c0730f6305e7
+Size (Method-Signatures-20111020.tar.gz) = 47174 bytes