1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Add p5-Class-DBI-Loader 0.01

Dynamic definition of Class::DBI sub classes.

PR:		54719
Submitted by:	me
Approved by:	demon (mentor)
This commit is contained in:
Mathieu Arnold 2003-08-20 08:47:10 +00:00
parent ab17f82ad5
commit 072cd9b8fb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=87352
5 changed files with 60 additions and 0 deletions

View File

@ -84,6 +84,7 @@
SUBDIR += p5-Class-DBI-AbstractSearch
SUBDIR += p5-Class-DBI-BaseDSN
SUBDIR += p5-Class-DBI-FromCGI
SUBDIR += p5-Class-DBI-Loader
SUBDIR += p5-Class-DBI-Oracle
SUBDIR += p5-Class-DBI-Pager
SUBDIR += p5-Class-DBI-Pg

View File

@ -0,0 +1,31 @@
# New ports collection makefile for: p5-Class-DBI-Loader
# Date created: 21 july 2003
# Whom: mat
#
# $FreeBSD$
#
PORTNAME= Class-DBI-Loader
PORTVERSION= 0.01
CATEGORIES= databases perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Class
PKGNAMEPREFIX= p5-
MAINTAINER= mat@FreeBSD.org
COMMENT= Dynamic definition of Class::DBI sub classes
BUILD_DEPENDS= ${RUN_DEPENDS} \
${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
RUN_DEPENDS= ${SITE_PERL}/Class/DBI.pm:${PORTSDIR}/databases/p5-Class-DBI \
${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
PERL_CONFIGURE= yes
MAN3= Class::DBI::Loader.3 \
Class::DBI::Loader::Generic.3 \
Class::DBI::Loader::Pg.3 \
Class::DBI::Loader::SQLite.3 \
Class::DBI::Loader::mysql.3
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (Class-DBI-Loader-0.01.tar.gz) = e6f1baeffc21bc33f0dd0180efe90e77

View File

@ -0,0 +1,15 @@
Class::DBI::Loader automate the definition of Class::DBI sub-classes. scan
table schemas and setup columns, primary key.
class names are defined by table names and namespace option.
+-----------+-----------+-----------+
| table | namespace | class |
+-----------+-----------+-----------+
| foo | Data | Data::Foo |
| foo_bar | | FooBar |
+-----------+-----------+-----------+
Class::DBI::Loader supports MySQL, Postgres and SQLite.
WWW: http://search.cpan.org/dist/Class-DBI-Loader/

View File

@ -0,0 +1,12 @@
%%SITE_PERL%%/Class/DBI/Loader.pm
%%SITE_PERL%%/Class/DBI/Loader/Generic.pm
%%SITE_PERL%%/Class/DBI/Loader/Pg.pm
%%SITE_PERL%%/Class/DBI/Loader/SQLite.pm
%%SITE_PERL%%/Class/DBI/Loader/mysql.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/DBI/Loader/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/DBI/Loader
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/DBI 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class 2>/dev/null || true
@dirrm %%SITE_PERL%%/Class/DBI/Loader
@unexec rmdir %D/%%SITE_PERL%%/Class/DBI 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/Class 2>/dev/null || true