summaryrefslogtreecommitdiff
path: root/databases/p5-Class-DBI-Plugin
diff options
context:
space:
mode:
authorabs <abs>2009-04-12 19:25:25 +0000
committerabs <abs>2009-04-12 19:25:25 +0000
commit6a36918665b6952b61cd5bb397bf96e9e92116ce (patch)
treea127fa9b85718cc68ce0a85e67ccb672a32b159d /databases/p5-Class-DBI-Plugin
parent574e4c4c91aed2f0bbe3e38d0369d7be2a026edd (diff)
downloadpkgsrc-6a36918665b6952b61cd5bb397bf96e9e92116ce.tar.gz
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 (limited to 'databases/p5-Class-DBI-Plugin')
-rw-r--r--databases/p5-Class-DBI-Plugin/DESCR15
-rw-r--r--databases/p5-Class-DBI-Plugin/Makefile20
-rw-r--r--databases/p5-Class-DBI-Plugin/distinfo5
3 files changed, 40 insertions, 0 deletions
diff --git a/databases/p5-Class-DBI-Plugin/DESCR b/databases/p5-Class-DBI-Plugin/DESCR
new file mode 100644
index 00000000000..9b1069bf7a0
--- /dev/null
+++ b/databases/p5-Class-DBI-Plugin/DESCR
@@ -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 --git a/databases/p5-Class-DBI-Plugin/Makefile b/databases/p5-Class-DBI-Plugin/Makefile
new file mode 100644
index 00000000000..ff440c038c2
--- /dev/null
+++ b/databases/p5-Class-DBI-Plugin/Makefile
@@ -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
+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 --git a/databases/p5-Class-DBI-Plugin/distinfo b/databases/p5-Class-DBI-Plugin/distinfo
new file mode 100644
index 00000000000..6ff8c5338ae
--- /dev/null
+++ b/databases/p5-Class-DBI-Plugin/distinfo
@@ -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