pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-MooseX-Traits Importing package for p5 module...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/79797d84d7fb
branches:  trunk
changeset: 395225:79797d84d7fb
user:      sno <sno%pkgsrc.org@localhost>
date:      Tue Jul 07 18:49:13 2009 +0000

description:
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:

 devel/p5-MooseX-Traits/DESCR    |   8 ++++++++
 devel/p5-MooseX-Traits/Makefile |  26 ++++++++++++++++++++++++++
 devel/p5-MooseX-Traits/distinfo |   5 +++++
 3 files changed, 39 insertions(+), 0 deletions(-)

diffs (51 lines):

diff -r 275b0bb36f22 -r 79797d84d7fb devel/p5-MooseX-Traits/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-MooseX-Traits/DESCR      Tue Jul 07 18:49:13 2009 +0000
@@ -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 -r 275b0bb36f22 -r 79797d84d7fb devel/p5-MooseX-Traits/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-MooseX-Traits/Makefile   Tue Jul 07 18:49:13 2009 +0000
@@ -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@localhost
+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 -r 275b0bb36f22 -r 79797d84d7fb devel/p5-MooseX-Traits/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-MooseX-Traits/distinfo   Tue Jul 07 18:49:13 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index