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.
This commit is contained in:
parent
d622584c65
commit
4a5a645b1f
3 changed files with 40 additions and 0 deletions
15
databases/p5-Class-DBI-Plugin/DESCR
Normal file
15
databases/p5-Class-DBI-Plugin/DESCR
Normal file
|
@ -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.
|
20
databases/p5-Class-DBI-Plugin/Makefile
Normal file
20
databases/p5-Class-DBI-Plugin/Makefile
Normal file
|
@ -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"
|
5
databases/p5-Class-DBI-Plugin/distinfo
Normal file
5
databases/p5-Class-DBI-Plugin/distinfo
Normal file
|
@ -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
|
Loading…
Reference in a new issue