diff options
author | sno <sno@pkgsrc.org> | 2009-09-22 18:38:43 +0000 |
---|---|---|
committer | sno <sno@pkgsrc.org> | 2009-09-22 18:38:43 +0000 |
commit | 2a58fdeb93fe0c5baee26d144bb0812c625d1dd0 (patch) | |
tree | bc0bbeac2e2f64d3aeab1aacb2970da866536c0f /devel/p5-MooseX-ConfigFromFile | |
parent | db300a90f380a2c3b2861265eed3b5483d232cf6 (diff) | |
download | pkgsrc-2a58fdeb93fe0c5baee26d144bb0812c625d1dd0.tar.gz |
Importing package devel/p5-MooseX-ConfigFromFile for p5 module
MooseX::ConfigFromFile v0.02 from PR pkg/42025 with some modifications.
This is an abstract role which provides an alternate constructor for creating
objects using parameters passed in from a configuration file. The actual
implementation of reading the configuration file is left to concrete subroles.
It declares an attribute configfile and a class method new_with_config, and
requires that concrete roles derived from it implement the class method
get_config_from_file.
Attributes specified directly as arguments to new_with_config supercede those
in the configfile.
Diffstat (limited to 'devel/p5-MooseX-ConfigFromFile')
-rw-r--r-- | devel/p5-MooseX-ConfigFromFile/DESCR | 10 | ||||
-rw-r--r-- | devel/p5-MooseX-ConfigFromFile/Makefile | 24 | ||||
-rw-r--r-- | devel/p5-MooseX-ConfigFromFile/distinfo | 5 |
3 files changed, 39 insertions, 0 deletions
diff --git a/devel/p5-MooseX-ConfigFromFile/DESCR b/devel/p5-MooseX-ConfigFromFile/DESCR new file mode 100644 index 00000000000..2a4e8f66d07 --- /dev/null +++ b/devel/p5-MooseX-ConfigFromFile/DESCR @@ -0,0 +1,10 @@ +This is an abstract role which provides an alternate constructor for creating +objects using parameters passed in from a configuration file. The actual +implementation of reading the configuration file is left to concrete subroles. + +It declares an attribute configfile and a class method new_with_config, and +requires that concrete roles derived from it implement the class method +get_config_from_file. + +Attributes specified directly as arguments to new_with_config supercede those +in the configfile. diff --git a/devel/p5-MooseX-ConfigFromFile/Makefile b/devel/p5-MooseX-ConfigFromFile/Makefile new file mode 100644 index 00000000000..46b3bdfea8f --- /dev/null +++ b/devel/p5-MooseX-ConfigFromFile/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/09/22 18:38:43 sno Exp $ + +DISTNAME= MooseX-ConfigFromFile-0.02 +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-ConfigFromFile/ +COMMENT= Abstract Moose role for setting attributes from a configfile +LICENSE= ${PERL5_LICENSE} + +DEPENDS+= p5-Moose>=0.35:../../devel/p5-Moose +DEPENDS+= p5-MooseX-Types-Path-Class>=0.04:../../devel/p5-MooseX-Types-Path-Class + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_LANGUAGES= # empty + +PERL5_PACKLIST= auto/MooseX/ConfigFromFile/.packlist +PERL5_MODULE_TYPE= Module::Install + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-MooseX-ConfigFromFile/distinfo b/devel/p5-MooseX-ConfigFromFile/distinfo new file mode 100644 index 00000000000..32eea4671ba --- /dev/null +++ b/devel/p5-MooseX-ConfigFromFile/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/09/22 18:38:43 sno Exp $ + +SHA1 (MooseX-ConfigFromFile-0.02.tar.gz) = 4da080e6a4a5b44acabbaa71db018af105aeaf3b +RMD160 (MooseX-ConfigFromFile-0.02.tar.gz) = 117aa4f81730f68e6221c62e6ff655c5c38c9e9d +Size (MooseX-ConfigFromFile-0.02.tar.gz) = 20447 bytes |