summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorsno <sno@pkgsrc.org>2009-07-07 18:49:13 +0000
committersno <sno@pkgsrc.org>2009-07-07 18:49:13 +0000
commit427d5488d97883b427f5bd52538e2f3da4bd16d3 (patch)
treefe88a96ccbb4dca34b6126dc518fbf38d6f19ec5 /devel
parent4982eceadcef7c966f2e895e215a43438494817e (diff)
downloadpkgsrc-427d5488d97883b427f5bd52538e2f3da4bd16d3.tar.gz
Importing package for p5 module MooseX::Traits version 0.06 as dependency
of scheduled import of MooseX::Traits::Pluggable (dependency for CatalystX::Component::Traits etc.) Often a developer 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.
Diffstat (limited to 'devel')
-rw-r--r--devel/p5-MooseX-Traits/DESCR8
-rw-r--r--devel/p5-MooseX-Traits/Makefile26
-rw-r--r--devel/p5-MooseX-Traits/distinfo5
3 files changed, 39 insertions, 0 deletions
diff --git a/devel/p5-MooseX-Traits/DESCR b/devel/p5-MooseX-Traits/DESCR
new file mode 100644
index 00000000000..b3077e3e22f
--- /dev/null
+++ b/devel/p5-MooseX-Traits/DESCR
@@ -0,0 +1,8 @@
+Often a developer 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.
diff --git a/devel/p5-MooseX-Traits/Makefile b/devel/p5-MooseX-Traits/Makefile
new file mode 100644
index 00000000000..21258d6191b
--- /dev/null
+++ b/devel/p5-MooseX-Traits/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/07/07 18:49:13 sno Exp $
+
+DISTNAME= MooseX-Traits-0.06
+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-Traits/
+COMMENT= Automatically apply roles at object creation time
+LICENSE= ${PERL5_LICENSE}
+
+DEPENDS+= p5-Class-MOP>=0.84:../../devel/p5-Class-MOP
+DEPENDS+= p5-Moose>=0.84:../../devel/p5-Moose
+
+BUILD_DEPENDS+= p5-Test-Exception-[0-9]*:../../devel/p5-Test-Exception
+BUILD_DEPENDS+= p5-Test-use-ok-[0-9]*:../../devel/p5-Test-use-ok
+
+USE_LANGUAGES= # empty
+PERL5_PACKLIST= auto/MooseX/Traits/.packlist
+PERL5_MODULE_TYPE= Module::Install
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-MooseX-Traits/distinfo b/devel/p5-MooseX-Traits/distinfo
new file mode 100644
index 00000000000..0b272c75dce
--- /dev/null
+++ b/devel/p5-MooseX-Traits/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/07/07 18:49:13 sno Exp $
+
+SHA1 (MooseX-Traits-0.06.tar.gz) = e4fa3f2b46c06b8a5ced05299b639d8237570f0a
+RMD160 (MooseX-Traits-0.06.tar.gz) = 7ad6216a2db73c245cf010d37ce1f742c9d30d1c
+Size (MooseX-Traits-0.06.tar.gz) = 17665 bytes