aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorskv <skv@FreeBSD.org>2009-05-12 03:43:40 +0800
committerskv <skv@FreeBSD.org>2009-05-12 03:43:40 +0800
commit4adf7e5b60bee4f64c348927de759fd470af7e95 (patch)
treefa520211a1e1ab0c696d0af02e01a62a908874d3 /devel
parentfe2ba6990da53e2651634cd5786e97b50ad3f24c (diff)
downloadfreebsd-ports-gnome-4adf7e5b60bee4f64c348927de759fd470af7e95.tar.gz
freebsd-ports-gnome-4adf7e5b60bee4f64c348927de759fd470af7e95.tar.zst
freebsd-ports-gnome-4adf7e5b60bee4f64c348927de759fd470af7e95.zip
Add p5-MooseX-Traits 0.03, Moose eXtenstion to automatically apply roles
at object creation time.
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-MooseX-Traits/Makefile24
-rw-r--r--devel/p5-MooseX-Traits/distinfo3
-rw-r--r--devel/p5-MooseX-Traits/pkg-descr11
-rw-r--r--devel/p5-MooseX-Traits/pkg-plist5
5 files changed, 44 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 5181adc78ec9..d6821325485e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1611,6 +1611,7 @@
SUBDIR += p5-MooseX-Singleton
SUBDIR += p5-MooseX-Storage
SUBDIR += p5-MooseX-StrictConstructor
+ SUBDIR += p5-MooseX-Traits
SUBDIR += p5-MooseX-Types
SUBDIR += p5-MooseX-Types-Path-Class
SUBDIR += p5-MooseX-Types-Structured
diff --git a/devel/p5-MooseX-Traits/Makefile b/devel/p5-MooseX-Traits/Makefile
new file mode 100644
index 000000000000..909fbbe489a4
--- /dev/null
+++ b/devel/p5-MooseX-Traits/Makefile
@@ -0,0 +1,24 @@
+# New ports collection makefile for: MooseX-Traits
+# Date created: 11 May 2009
+# Whom: Sergey Skvortsov <skv@protey.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= MooseX-Traits
+PORTVERSION= 0.03
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= skv@FreeBSD.org
+COMMENT= Moose eXtenstion to automatically apply roles at object creation time
+
+BUILD_DEPENDS= p5-Moose>=0:${PORTSDIR}/devel/p5-Mouse
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= MooseX::Traits.3
+
+.include <bsd.port.mk>
diff --git a/devel/p5-MooseX-Traits/distinfo b/devel/p5-MooseX-Traits/distinfo
new file mode 100644
index 000000000000..c8068b582622
--- /dev/null
+++ b/devel/p5-MooseX-Traits/distinfo
@@ -0,0 +1,3 @@
+MD5 (MooseX-Traits-0.03.tar.gz) = 39872e7b0ffe1baf3c8986ac5856e349
+SHA256 (MooseX-Traits-0.03.tar.gz) = c9823d361e50dc4728af71ad7446a2b51853a56b71d315f1cfe4297d4ca07879
+SIZE (MooseX-Traits-0.03.tar.gz) = 13203
diff --git a/devel/p5-MooseX-Traits/pkg-descr b/devel/p5-MooseX-Traits/pkg-descr
new file mode 100644
index 000000000000..4ccea7c3196b
--- /dev/null
+++ b/devel/p5-MooseX-Traits/pkg-descr
@@ -0,0 +1,11 @@
+Often you want to create components that can be added to a class
+arbitrarily. This module makes it easy for the end user to use these
+components. Instead of requiring the user to create a named class with
+the desired roles applied, or applying roles to the instance one-by-one,
+he can just pass a traits parameter to the class's new_with_traits
+constructor. This role will then apply the roles in one go, cache the
+resulting class (for efficiency), and return a new instance. Arguments
+meant to initialize the applied roles' attributes can also be passed to
+the constructor.
+
+WWW: http://search.cpan.org/dist/MooseX-Traits/
diff --git a/devel/p5-MooseX-Traits/pkg-plist b/devel/p5-MooseX-Traits/pkg-plist
new file mode 100644
index 000000000000..f4de535b0f15
--- /dev/null
+++ b/devel/p5-MooseX-Traits/pkg-plist
@@ -0,0 +1,5 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Traits/.packlist
+%%SITE_PERL%%/MooseX/Traits.pm
+@dirrmtry %%SITE_PERL%%/MooseX
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Traits
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX