import p5-MooseX-Traits
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 commit is contained in:
parent
a57b9d1e41
commit
debf17f1bb
20
devel/p5-MooseX-Traits/Makefile
Normal file
20
devel/p5-MooseX-Traits/Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/01/12 09:43:05 jasper Exp $
|
||||
|
||||
COMMENT= automatically apply roles at object creation time
|
||||
|
||||
DISTNAME= MooseX-Traits-0.07
|
||||
|
||||
CATEGORIES= devel
|
||||
|
||||
# perl
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MODULES= cpan
|
||||
|
||||
RUN_DEPENDS= ::devel/p5-Moose \
|
||||
::devel/p5-Sub-Exporter \
|
||||
::devel/p5-namespace-autoclean
|
||||
.include <bsd.port.mk>
|
5
devel/p5-MooseX-Traits/distinfo
Normal file
5
devel/p5-MooseX-Traits/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (MooseX-Traits-0.07.tar.gz) = gtjMzMlAD9f61VTliFyQ7g==
|
||||
RMD160 (MooseX-Traits-0.07.tar.gz) = Xl9OeIYt1XUQ1/3YQeiCwCUV2EU=
|
||||
SHA1 (MooseX-Traits-0.07.tar.gz) = r9iVyMD0kIhmVuWofu/WG5M6CbQ=
|
||||
SHA256 (MooseX-Traits-0.07.tar.gz) = QGTxjX7VoOf/WPiyMRjwb0kAvfq3ODN5uVf3O5eLCXI=
|
||||
SIZE (MooseX-Traits-0.07.tar.gz) = 18587
|
6
devel/p5-MooseX-Traits/pkg/DESCR
Normal file
6
devel/p5-MooseX-Traits/pkg/DESCR
Normal file
@ -0,0 +1,6 @@
|
||||
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.
|
6
devel/p5-MooseX-Traits/pkg/PLIST
Normal file
6
devel/p5-MooseX-Traits/pkg/PLIST
Normal file
@ -0,0 +1,6 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/01/12 09:43:05 jasper Exp $
|
||||
${P5SITE}/MooseX/
|
||||
${P5SITE}/MooseX/Traits/
|
||||
${P5SITE}/MooseX/Traits.pm
|
||||
${P5SITE}/MooseX/Traits/Util.pm
|
||||
@man man/man3p/MooseX::Traits.3p
|
Loading…
Reference in New Issue
Block a user