pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/p5-Class-Base Added devel/p5-Class-Base version ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e377a0395608
branches: trunk
changeset: 544391:e377a0395608
user: abs <abs%pkgsrc.org@localhost>
date: Mon Jul 14 09:19:15 2008 +0000
description:
Added devel/p5-Class-Base version 0.03
This module implements a simple base class from which other modules
can be derived, thereby inheriting a number of useful methods such
as new(), init(), params(), clone(), error() and debug().
For a number of years, I found myself re-writing this module for
practically every Perl project of any significant size. Or rather,
I would copy the module from the last project and perform a global
search and replace to change the names. Each time it got a little
more polished and eventually, I decided to Do The Right Thing and
release it as a module in it's own right.
It doesn't pretend to be an all-encompassing solution for every
kind of object creation problem you might encounter. In fact, it
only supports blessed hash references that are created using the
popular, but by no means universal convention of calling new() with
a list or reference to a hash array of named parameters. Constructor
failure is indicated by returning undef and setting the $ERROR
package variable in the module's class to contain a relevant message
(which you can also fetch by calling error() as a class method).
diffstat:
devel/p5-Class-Base/DESCR | 19 +++++++++++++++++++
devel/p5-Class-Base/Makefile | 18 ++++++++++++++++++
devel/p5-Class-Base/distinfo | 5 +++++
3 files changed, 42 insertions(+), 0 deletions(-)
diffs (54 lines):
diff -r 2bb71faf738e -r e377a0395608 devel/p5-Class-Base/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Class-Base/DESCR Mon Jul 14 09:19:15 2008 +0000
@@ -0,0 +1,19 @@
+This module implements a simple base class from which other modules
+can be derived, thereby inheriting a number of useful methods such
+as new(), init(), params(), clone(), error() and debug().
+
+For a number of years, I found myself re-writing this module for
+practically every Perl project of any significant size. Or rather,
+I would copy the module from the last project and perform a global
+search and replace to change the names. Each time it got a little
+more polished and eventually, I decided to Do The Right Thing and
+release it as a module in it's own right.
+
+It doesn't pretend to be an all-encompassing solution for every
+kind of object creation problem you might encounter. In fact, it
+only supports blessed hash references that are created using the
+popular, but by no means universal convention of calling new() with
+a list or reference to a hash array of named parameters. Constructor
+failure is indicated by returning undef and setting the $ERROR
+package variable in the module's class to contain a relevant message
+(which you can also fetch by calling error() as a class method).
diff -r 2bb71faf738e -r e377a0395608 devel/p5-Class-Base/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Class-Base/Makefile Mon Jul 14 09:19:15 2008 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/07/14 09:19:15 abs Exp $
+
+DISTNAME= Class-Base-0.03
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/A/AB/ABW/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://search.cpan.org/perldoc?Class::Base
+COMMENT= Useful base class for deriving other modules
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= # empty
+PERL5_PACKLIST= auto/Class/Base/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 2bb71faf738e -r e377a0395608 devel/p5-Class-Base/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Class-Base/distinfo Mon Jul 14 09:19:15 2008 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/07/14 09:19:15 abs Exp $
+
+SHA1 (Class-Base-0.03.tar.gz) = 75955566ae475896272ca98e6297d7033779ae6d
+RMD160 (Class-Base-0.03.tar.gz) = f0458304dba2b9d59cc8f21fe7826db91ca73f02
+Size (Class-Base-0.03.tar.gz) = 14932 bytes
Home |
Main Index |
Thread Index |
Old Index