diff options
Diffstat (limited to 'devel/p5-MooseX-Traits')
-rw-r--r-- | devel/p5-MooseX-Traits/Makefile | 24 | ||||
-rw-r--r-- | devel/p5-MooseX-Traits/distinfo | 3 | ||||
-rw-r--r-- | devel/p5-MooseX-Traits/pkg-descr | 11 | ||||
-rw-r--r-- | devel/p5-MooseX-Traits/pkg-plist | 5 |
4 files changed, 43 insertions, 0 deletions
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 |