pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/p5-Class-DBI-Plugin Added databases/p5-Class...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8414d1774bc6
branches: trunk
changeset: 557255:8414d1774bc6
user: abs <abs%pkgsrc.org@localhost>
date: Sun Apr 12 19:25:25 2009 +0000
description:
Added databases/p5-Class-DBI-Plugin version 0.03
Class::DBI::Plugin is an abstract base class for Class::DBI plugins.
Its purpose is to make writing plugins easier. Writers of plugins
should be able to concentrate on the functionality their module
provides, instead of having to deal with the symbol table hackery
involved when writing a plugin module. Only three things must be
remembered:
1. All methods which are to exported are given the "Plugged"
attribute. All other methods are not exported to the plugged-in
class.
2. Method calls which are to be sent to the plugged-in class
are put in the init() method. Examples of these are set_sql(),
add_trigger() and so on.
3. The class parameter for the init() method and the "Plugged"
methods is the plugged-in class, not the plugin class.
diffstat:
databases/p5-Class-DBI-Plugin/DESCR | 15 +++++++++++++++
databases/p5-Class-DBI-Plugin/Makefile | 20 ++++++++++++++++++++
databases/p5-Class-DBI-Plugin/distinfo | 5 +++++
3 files changed, 40 insertions(+), 0 deletions(-)
diffs (52 lines):
diff -r 856aa59bb749 -r 8414d1774bc6 databases/p5-Class-DBI-Plugin/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/p5-Class-DBI-Plugin/DESCR Sun Apr 12 19:25:25 2009 +0000
@@ -0,0 +1,15 @@
+Class::DBI::Plugin is an abstract base class for Class::DBI plugins.
+Its purpose is to make writing plugins easier. Writers of plugins
+should be able to concentrate on the functionality their module
+provides, instead of having to deal with the symbol table hackery
+involved when writing a plugin module. Only three things must be
+remembered:
+
+ 1. All methods which are to exported are given the "Plugged"
+ attribute. All other methods are not exported to the plugged-in
+ class.
+ 2. Method calls which are to be sent to the plugged-in class
+ are put in the init() method. Examples of these are set_sql(),
+ add_trigger() and so on.
+ 3. The class parameter for the init() method and the "Plugged"
+ methods is the plugged-in class, not the plugin class.
diff -r 856aa59bb749 -r 8414d1774bc6 databases/p5-Class-DBI-Plugin/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/p5-Class-DBI-Plugin/Makefile Sun Apr 12 19:25:25 2009 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/04/12 19:25:25 abs Exp $
+#
+
+DISTNAME= Class-DBI-Plugin-0.03
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Class/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://search.cpan.org/perldoc?Class::DBI::Plugin
+COMMENT= Abstract base class for Class::DBI plugins
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+DEPENDS+= p5-Class-DBI>=0.90:../../databases/p5-Class-DBI
+
+PERL5_PACKLIST= auto/Class/DBI/Plugin/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 856aa59bb749 -r 8414d1774bc6 databases/p5-Class-DBI-Plugin/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/p5-Class-DBI-Plugin/distinfo Sun Apr 12 19:25:25 2009 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/04/12 19:25:25 abs Exp $
+
+SHA1 (Class-DBI-Plugin-0.03.tar.gz) = 2b394d4dfeb87d7e623405448faf2b28d0caa364
+RMD160 (Class-DBI-Plugin-0.03.tar.gz) = 0f9ccda25851c2d3cf0229557de33b88936d0e99
+Size (Class-DBI-Plugin-0.03.tar.gz) = 3390 bytes
Home |
Main Index |
Thread Index |
Old Index