From 4a5a645b1fa51d635412da62408895604fbf43d1 Mon Sep 17 00:00:00 2001 From: abs Date: Sun, 12 Apr 2009 19:25:25 +0000 Subject: [PATCH] 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. --- 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(+) create mode 100644 databases/p5-Class-DBI-Plugin/DESCR create mode 100644 databases/p5-Class-DBI-Plugin/Makefile create mode 100644 databases/p5-Class-DBI-Plugin/distinfo diff --git a/databases/p5-Class-DBI-Plugin/DESCR b/databases/p5-Class-DBI-Plugin/DESCR new file mode 100644 index 000000000000..9b1069bf7a04 --- /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 000000000000..ff440c038c29 --- /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 000000000000..6ff8c5338aeb --- /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