aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2009-12-10 07:34:41 +0800
committerleeym <leeym@FreeBSD.org>2009-12-10 07:34:41 +0800
commit6fb63258d57e6795394f4379339d71f5457ae31e (patch)
tree49230de6934b17b75a420c51f3244aa6719e0248
parent362db18ef0757610f5466d05dccaee551e1a9a5a (diff)
downloadfreebsd-ports-gnome-6fb63258d57e6795394f4379339d71f5457ae31e.tar.gz
freebsd-ports-gnome-6fb63258d57e6795394f4379339d71f5457ae31e.tar.zst
freebsd-ports-gnome-6fb63258d57e6795394f4379339d71f5457ae31e.zip
- add p5-MooseX-Types-Common-0.001000
A set of commonly-used type constraints that do not ship with Moose by default. WWW: http://search.cpan.org/dist/MooseX-Types-Common/
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-MooseX-Types-Common/Makefile27
-rw-r--r--devel/p5-MooseX-Types-Common/distinfo3
-rw-r--r--devel/p5-MooseX-Types-Common/pkg-descr19
-rw-r--r--devel/p5-MooseX-Types-Common/pkg-plist10
5 files changed, 60 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 179221403f01..79313c9cead5 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1728,6 +1728,7 @@
SUBDIR += p5-MooseX-Traits
SUBDIR += p5-MooseX-Traits-Pluggable
SUBDIR += p5-MooseX-Types
+ SUBDIR += p5-MooseX-Types-Common
SUBDIR += p5-MooseX-Types-DateTime-ButMaintained
SUBDIR += p5-MooseX-Types-DateTimeX
SUBDIR += p5-MooseX-Types-Path-Class
diff --git a/devel/p5-MooseX-Types-Common/Makefile b/devel/p5-MooseX-Types-Common/Makefile
new file mode 100644
index 000000000000..238cd2a1c0b5
--- /dev/null
+++ b/devel/p5-MooseX-Types-Common/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: MooseX-Types-Common
+# Date created: 2009-12-09
+# Whom: Yen-Ming Lee <leeym@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= MooseX-Types-Common
+PORTVERSION= 0.001000
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= leeym@FreeBSD.org
+COMMENT= A set of commonly-used type constraints that do not ship with Moose
+
+RUN_DEPENDS= p5-Moose>=0.39:${PORTSDIR}/devel/p5-Moose \
+ p5-MooseX-Types>=0.04:${PORTSDIR}/devel/p5-MooseX-Types
+BUILD_DEPENDS= ${RUN_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= MooseX::Types::Common.3 \
+ MooseX::Types::Common::Numeric.3 \
+ MooseX::Types::Common::String.3
+
+.include <bsd.port.mk>
diff --git a/devel/p5-MooseX-Types-Common/distinfo b/devel/p5-MooseX-Types-Common/distinfo
new file mode 100644
index 000000000000..d5bfc81481b4
--- /dev/null
+++ b/devel/p5-MooseX-Types-Common/distinfo
@@ -0,0 +1,3 @@
+MD5 (MooseX-Types-Common-0.001000.tar.gz) = 81cd8929dd35335fe44383fe340054c4
+SHA256 (MooseX-Types-Common-0.001000.tar.gz) = bc8c4e8a9bafa6d9b961aacbbf6847afaa75e5d6777ceed95b26db5ac1a66392
+SIZE (MooseX-Types-Common-0.001000.tar.gz) = 14273
diff --git a/devel/p5-MooseX-Types-Common/pkg-descr b/devel/p5-MooseX-Types-Common/pkg-descr
new file mode 100644
index 000000000000..22d861e90d56
--- /dev/null
+++ b/devel/p5-MooseX-Types-Common/pkg-descr
@@ -0,0 +1,19 @@
+A set of commonly-used type constraints that do not ship with Moose by default.
+
+ use MooseX::Types::Common::String qw/SimpleStr/;
+ has short_str => (is => 'rw', isa => SimpleStr);
+
+ ...
+ #this will fail
+ $object->short_str("string\nwith\nbreaks");
+
+
+
+ use MooseX::Types::Common::Numeric qw/PositiveInt/;
+ has count => (is => 'rw', isa => PositiveInt);
+
+ ...
+ #this will fail
+ $object->count(-33);
+
+WWW: http://search.cpan.org/dist/MooseX-Types-Common/
diff --git a/devel/p5-MooseX-Types-Common/pkg-plist b/devel/p5-MooseX-Types-Common/pkg-plist
new file mode 100644
index 000000000000..3ab6719a4d4e
--- /dev/null
+++ b/devel/p5-MooseX-Types-Common/pkg-plist
@@ -0,0 +1,10 @@
+%%SITE_PERL%%/MooseX/Types/Common.pm
+%%SITE_PERL%%/MooseX/Types/Common/Numeric.pm
+%%SITE_PERL%%/MooseX/Types/Common/String.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Types/Common/.packlist
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Types/Common
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Types
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX
+@dirrmtry %%SITE_PERL%%/MooseX/Types/Common
+@dirrmtry %%SITE_PERL%%/MooseX/Types
+@dirrmtry %%SITE_PERL%%/MooseX