pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-MooseX-ConfigFromFile Importing package devel...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fc807148a5f7
branches:  trunk
changeset: 399598:fc807148a5f7
user:      sno <sno%pkgsrc.org@localhost>
date:      Tue Sep 22 18:38:43 2009 +0000

description:
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:

 devel/p5-MooseX-ConfigFromFile/DESCR    |  10 ++++++++++
 devel/p5-MooseX-ConfigFromFile/Makefile |  24 ++++++++++++++++++++++++
 devel/p5-MooseX-ConfigFromFile/distinfo |   5 +++++
 3 files changed, 39 insertions(+), 0 deletions(-)

diffs (51 lines):

diff -r 49c2f70fb5f5 -r fc807148a5f7 devel/p5-MooseX-ConfigFromFile/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-MooseX-ConfigFromFile/DESCR      Tue Sep 22 18:38:43 2009 +0000
@@ -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 -r 49c2f70fb5f5 -r fc807148a5f7 devel/p5-MooseX-ConfigFromFile/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-MooseX-ConfigFromFile/Makefile   Tue Sep 22 18:38:43 2009 +0000
@@ -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@localhost
+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 -r 49c2f70fb5f5 -r fc807148a5f7 devel/p5-MooseX-ConfigFromFile/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-MooseX-ConfigFromFile/distinfo   Tue Sep 22 18:38:43 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index