aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorglarkin <glarkin@FreeBSD.org>2008-10-25 01:01:09 +0800
committerglarkin <glarkin@FreeBSD.org>2008-10-25 01:01:09 +0800
commit09ddab3bfc0dc11d2b338e6f77a5ce8c89ea9838 (patch)
tree5c0ca87280aafa78edfb98107f2c015669be85fc /devel
parent042bf4dcb48bca1129d8627805b4b7196aab7607 (diff)
downloadfreebsd-ports-gnome-09ddab3bfc0dc11d2b338e6f77a5ce8c89ea9838.tar.gz
freebsd-ports-gnome-09ddab3bfc0dc11d2b338e6f77a5ce8c89ea9838.tar.zst
freebsd-ports-gnome-09ddab3bfc0dc11d2b338e6f77a5ce8c89ea9838.zip
Simply loading the MooseX::StrictConstructor 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. WWW: http://search.cpan.org/dist/MooseX-StrictConstructor/
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-MooseX-StrictConstructor/Makefile26
-rw-r--r--devel/p5-MooseX-StrictConstructor/distinfo3
-rw-r--r--devel/p5-MooseX-StrictConstructor/pkg-descr6
-rw-r--r--devel/p5-MooseX-StrictConstructor/pkg-plist8
5 files changed, 44 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index df1454b8d9e5..a193664041e6 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1515,6 +1515,7 @@
SUBDIR += p5-MooseX-Policy-SemiAffordanceAccessor
SUBDIR += p5-MooseX-Singleton
SUBDIR += p5-MooseX-Storage
+ SUBDIR += p5-MooseX-StrictConstructor
SUBDIR += p5-MooseX-Types
SUBDIR += p5-MooseX-Types-Path-Class
SUBDIR += p5-Mouse
diff --git a/devel/p5-MooseX-StrictConstructor/Makefile b/devel/p5-MooseX-StrictConstructor/Makefile
new file mode 100644
index 000000000000..53bf13b54765
--- /dev/null
+++ b/devel/p5-MooseX-StrictConstructor/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: p5-MooseX-StrictConstructor
+# Date created: 2008-10-23
+# Whom: glarkin
+#
+# $FreeBSD$
+#
+
+PORTNAME= MooseX-StrictConstructor
+PORTVERSION= 0.07
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= glarkin@FreeBSD.org
+COMMENT= Make your MooseX object constructors blow up on unknown attributes
+
+RUN_DEPENDS= p5-Moose>=0.56:${PORTSDIR}/devel/p5-Moose
+BUILD_DEPENDS= ${RUN_DEPENDS}
+
+PERL_MODBUILD= yes
+
+MAN3= MooseX::StrictConstructor.3 \
+ MooseX::StrictConstructor::Role::Meta::Method::Constructor.3 \
+ MooseX::StrictConstructor::Role::Object.3
+
+.include <bsd.port.mk>
diff --git a/devel/p5-MooseX-StrictConstructor/distinfo b/devel/p5-MooseX-StrictConstructor/distinfo
new file mode 100644
index 000000000000..e138ddd6b03d
--- /dev/null
+++ b/devel/p5-MooseX-StrictConstructor/distinfo
@@ -0,0 +1,3 @@
+MD5 (MooseX-StrictConstructor-0.07.tar.gz) = f5c258dfb52699b261c9ab1458d6f64c
+SHA256 (MooseX-StrictConstructor-0.07.tar.gz) = 830d02266bc03a338b6ea551da7acf2f63c2cff7680157db7fed10c72e25bf5b
+SIZE (MooseX-StrictConstructor-0.07.tar.gz) = 5694
diff --git a/devel/p5-MooseX-StrictConstructor/pkg-descr b/devel/p5-MooseX-StrictConstructor/pkg-descr
new file mode 100644
index 000000000000..1cf9af9fcc48
--- /dev/null
+++ b/devel/p5-MooseX-StrictConstructor/pkg-descr
@@ -0,0 +1,6 @@
+Simply loading the MooseX::StrictConstructor 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.
+
+WWW: http://search.cpan.org/dist/MooseX-StrictConstructor/
diff --git a/devel/p5-MooseX-StrictConstructor/pkg-plist b/devel/p5-MooseX-StrictConstructor/pkg-plist
new file mode 100644
index 000000000000..6120b37732d1
--- /dev/null
+++ b/devel/p5-MooseX-StrictConstructor/pkg-plist
@@ -0,0 +1,8 @@
+%%SITE_PERL%%/MooseX/StrictConstructor.pm
+%%SITE_PERL%%/MooseX/StrictConstructor/Role/Meta/Method/Constructor.pm
+%%SITE_PERL%%/MooseX/StrictConstructor/Role/Object.pm
+@dirrm %%SITE_PERL%%/MooseX/StrictConstructor/Role/Meta/Method
+@dirrm %%SITE_PERL%%/MooseX/StrictConstructor/Role/Meta
+@dirrm %%SITE_PERL%%/MooseX/StrictConstructor/Role
+@dirrm %%SITE_PERL%%/MooseX/StrictConstructor
+@dirrmtry %%SITE_PERL%%/MooseX