summaryrefslogtreecommitdiff
path: root/devel/p5-MooseX-StrictConstructor
diff options
context:
space:
mode:
authorhe <he>2009-01-11 14:06:19 +0000
committerhe <he>2009-01-11 14:06:19 +0000
commitff7e8696c2992e022e02fa8ff37e3caf171dd488 (patch)
treeca605ba0e278e5e628328e7cd5e05863191a2305 /devel/p5-MooseX-StrictConstructor
parent4700d815ab1fe6f3114f2a07f8fc7dba386610f2 (diff)
downloadpkgsrc-ff7e8696c2992e022e02fa8ff37e3caf171dd488.tar.gz
Import p5-MooseX-StrictConstructor version 0.07.
Simply loading this module makes your constructors "strict". If your constructor is called with an attribute init argument that your class does not declare, then it calls "Carp::confess()". This is a great way to catch small typos.
Diffstat (limited to 'devel/p5-MooseX-StrictConstructor')
-rw-r--r--devel/p5-MooseX-StrictConstructor/DESCR4
-rw-r--r--devel/p5-MooseX-StrictConstructor/Makefile22
-rw-r--r--devel/p5-MooseX-StrictConstructor/distinfo5
3 files changed, 31 insertions, 0 deletions
diff --git a/devel/p5-MooseX-StrictConstructor/DESCR b/devel/p5-MooseX-StrictConstructor/DESCR
new file mode 100644
index 00000000000..20ca22d319c
--- /dev/null
+++ b/devel/p5-MooseX-StrictConstructor/DESCR
@@ -0,0 +1,4 @@
+Simply loading this module makes your constructors "strict". If
+your constructor is called with an attribute init argument that
+your class does not declare, then it calls "Carp::confess()". This
+is a great way to catch small typos.
diff --git a/devel/p5-MooseX-StrictConstructor/Makefile b/devel/p5-MooseX-StrictConstructor/Makefile
new file mode 100644
index 00000000000..9734e77849c
--- /dev/null
+++ b/devel/p5-MooseX-StrictConstructor/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/01/11 14:06:19 he Exp $
+#
+
+DISTNAME= MooseX-StrictConstructor-0.07
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=MooseX/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/MooseX-StrictConstructor/
+COMMENT= Make your object constructors blow up on unknown attributes
+
+DEPENDS+= p5-Moose>=0.56:../../devel/p5-Moose
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= # empty
+PERL5_PACKLIST= auto/MooseX/StrictConstructor/.packlist
+PERL5_MODULE_TYPE= Module::Build
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-MooseX-StrictConstructor/distinfo b/devel/p5-MooseX-StrictConstructor/distinfo
new file mode 100644
index 00000000000..3bfd04d52b0
--- /dev/null
+++ b/devel/p5-MooseX-StrictConstructor/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/01/11 14:06:19 he Exp $
+
+SHA1 (MooseX-StrictConstructor-0.07.tar.gz) = 1c0674c7c01bb240855bc10f334adcfa0104e0be
+RMD160 (MooseX-StrictConstructor-0.07.tar.gz) = deacb2e4b631d862725a079766b2971560595458
+Size (MooseX-StrictConstructor-0.07.tar.gz) = 5694 bytes