diff options
author | sno <sno@pkgsrc.org> | 2012-07-05 09:51:46 +0000 |
---|---|---|
committer | sno <sno@pkgsrc.org> | 2012-07-05 09:51:46 +0000 |
commit | 975d523608caba1e3286db9ac7f450c9a8a25e7a (patch) | |
tree | 2e5293cc9df282420e1f5dedb6de687173516df9 /devel/p5-MooseX-OneArgNew | |
parent | 96271b307f7d5171a7d02335e78242f3aae257db (diff) | |
download | pkgsrc-975d523608caba1e3286db9ac7f450c9a8a25e7a.tar.gz |
Importing package for Perl 5 Moose Role MooseX::OneArgNew module version
0.002 into p5-MooseX-OneArgNew.
MooseX::OneArgNew lets your constructor take a single argument, which
will be translated into the value for a one-entry hashref. It is a
parameterized role with two parameters:
type
The Moose type that the single argument must be for the one-arg form
to work. This should be an existing type, and may be either a string
type or a MooseX::Type.
init_arg
This is the string that will be used as the key for the hashref
constructed from the one-arg call to new.
Diffstat (limited to 'devel/p5-MooseX-OneArgNew')
-rw-r--r-- | devel/p5-MooseX-OneArgNew/DESCR | 12 | ||||
-rw-r--r-- | devel/p5-MooseX-OneArgNew/Makefile | 26 | ||||
-rw-r--r-- | devel/p5-MooseX-OneArgNew/distinfo | 5 |
3 files changed, 43 insertions, 0 deletions
diff --git a/devel/p5-MooseX-OneArgNew/DESCR b/devel/p5-MooseX-OneArgNew/DESCR new file mode 100644 index 00000000000..de302d482a1 --- /dev/null +++ b/devel/p5-MooseX-OneArgNew/DESCR @@ -0,0 +1,12 @@ +MooseX::OneArgNew lets your constructor take a single argument, which +will be translated into the value for a one-entry hashref. It is a +parameterized role with two parameters: + +type + The Moose type that the single argument must be for the one-arg form + to work. This should be an existing type, and may be either a string + type or a MooseX::Type. + +init_arg + This is the string that will be used as the key for the hashref + constructed from the one-arg call to new. diff --git a/devel/p5-MooseX-OneArgNew/Makefile b/devel/p5-MooseX-OneArgNew/Makefile new file mode 100644 index 00000000000..a1c17c07046 --- /dev/null +++ b/devel/p5-MooseX-OneArgNew/Makefile @@ -0,0 +1,26 @@ +# $NetBSD: Makefile,v 1.1.1.1 2012/07/05 09:51:46 sno Exp $ +# + +DISTNAME= MooseX-OneArgNew-0.002 +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-OneArgNew/ +COMMENT= Perl 5 Moose role to teach ->new to accept single, non-hashref arguments +LICENSE= ${PERL5_LICENSE} + +DEPENDS+= p5-Moose-[0-9]*:../../devel/p5-Moose +DEPENDS+= p5-MooseX-Role-Parameterized-[0-9]*:../../devel/p5-MooseX-Role-Parameterized +DEPENDS+= p5-namespace-autoclean-[0-9]*:../../devel/p5-namespace-autoclean + +BUILD_DEPENDS+= {perl>=5.14.0,p5-Test-Simple>=0.96}:../../devel/p5-Test-Simple + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_LANGUAGES= # empty +PERL5_PACKLIST= auto/MooseX/OneArgNew/.packlist + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-MooseX-OneArgNew/distinfo b/devel/p5-MooseX-OneArgNew/distinfo new file mode 100644 index 00000000000..4910abe3d39 --- /dev/null +++ b/devel/p5-MooseX-OneArgNew/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2012/07/05 09:51:46 sno Exp $ + +SHA1 (MooseX-OneArgNew-0.002.tar.gz) = 4d10b4396ccc79f07a0713df69f11904b3c37439 +RMD160 (MooseX-OneArgNew-0.002.tar.gz) = 070af561e0494bb02a3ddc0437c05065c78248e5 +Size (MooseX-OneArgNew-0.002.tar.gz) = 10909 bytes |