134b5b4083
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.
26 lines
810 B
Makefile
26 lines
810 B
Makefile
# $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"
|