From 3c3e220fdbb8565ef3c8147457c94de34701104f Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Sat, 16 Oct 2010 07:03:34 +0000 Subject: [PATCH] DBIx::Connector provides a simple interface for fast and safe DBI connection and transaction management. Connecting to a database can be expensive; you don't want your application to re-connect every time you need to run a query. The efficient thing to do is to hang on to a database handle to maintain a connection to the database in order to minimize that overhead. DBIx::Connector lets you do that without having to worry about dropped or corrupted connections. WWW: http://search.cpan.org/dist/DBIx-Connector/ --- databases/Makefile | 1 + databases/p5-DBIx-Connector/Makefile | 31 +++++++++++++++++++++++++++ databases/p5-DBIx-Connector/distinfo | 3 +++ databases/p5-DBIx-Connector/pkg-descr | 9 ++++++++ databases/p5-DBIx-Connector/pkg-plist | 10 +++++++++ 5 files changed, 54 insertions(+) create mode 100644 databases/p5-DBIx-Connector/Makefile create mode 100644 databases/p5-DBIx-Connector/distinfo create mode 100644 databases/p5-DBIx-Connector/pkg-descr create mode 100644 databases/p5-DBIx-Connector/pkg-plist diff --git a/databases/Makefile b/databases/Makefile index b728f00d1423..ebd41ecb8362 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -350,6 +350,7 @@ SUBDIR += p5-DBIx-Class-UUIDColumns SUBDIR += p5-DBIx-Class-Validation SUBDIR += p5-DBIx-Class-WebForm + SUBDIR += p5-DBIx-Connector SUBDIR += p5-DBIx-ContextualFetch SUBDIR += p5-DBIx-Custom SUBDIR += p5-DBIx-DBSchema diff --git a/databases/p5-DBIx-Connector/Makefile b/databases/p5-DBIx-Connector/Makefile new file mode 100644 index 000000000000..38a52b29bfe7 --- /dev/null +++ b/databases/p5-DBIx-Connector/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: DBIx::Connector +# Date created: 16 Oct 2010 +# Whom: Jun Kuriyama +# +# $FreeBSD$ +# + +PORTNAME= DBIx-Connector +PORTVERSION= 0.40 +CATEGORIES= databases perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= kuriyama@FreeBSD.org +COMMENT= Perl extension for fast, safe DBI connection management + +RUN_DEPENDS= \ + p5-DBI>=1.605:${PORTSDIR}/databases/p5-DBI +BUILD_DEPENDS= ${RUN_DEPENDS} + +PERL_MODBUILD= yes + +MAN3= DBIx::Connector.3 \ + DBIx::Connector::Driver.3 \ + DBIx::Connector::Driver::MSSQL.3 \ + DBIx::Connector::Driver::Oracle.3 \ + DBIx::Connector::Driver::Pg.3 \ + DBIx::Connector::Driver::SQLite.3 \ + DBIx::Connector::Driver::mysql.3 + +.include diff --git a/databases/p5-DBIx-Connector/distinfo b/databases/p5-DBIx-Connector/distinfo new file mode 100644 index 000000000000..55b20052fcb0 --- /dev/null +++ b/databases/p5-DBIx-Connector/distinfo @@ -0,0 +1,3 @@ +MD5 (DBIx-Connector-0.40.tar.gz) = e405feae349e3edd0caee14cefd20478 +SHA256 (DBIx-Connector-0.40.tar.gz) = d3015ff381ea0ad3230e778b597add3062aa2ec1694407836dfe475e3257069e +SIZE (DBIx-Connector-0.40.tar.gz) = 32490 diff --git a/databases/p5-DBIx-Connector/pkg-descr b/databases/p5-DBIx-Connector/pkg-descr new file mode 100644 index 000000000000..c043a9ddca34 --- /dev/null +++ b/databases/p5-DBIx-Connector/pkg-descr @@ -0,0 +1,9 @@ +DBIx::Connector provides a simple interface for fast and safe DBI +connection and transaction management. Connecting to a database can +be expensive; you don't want your application to re-connect every time +you need to run a query. The efficient thing to do is to hang on to a +database handle to maintain a connection to the database in order to +minimize that overhead. DBIx::Connector lets you do that without +having to worry about dropped or corrupted connections. + +WWW: http://search.cpan.org/dist/DBIx-Connector/ diff --git a/databases/p5-DBIx-Connector/pkg-plist b/databases/p5-DBIx-Connector/pkg-plist new file mode 100644 index 000000000000..c7720cbd824a --- /dev/null +++ b/databases/p5-DBIx-Connector/pkg-plist @@ -0,0 +1,10 @@ +%%SITE_PERL%%/DBIx/Connector.pm +%%SITE_PERL%%/DBIx/Connector/Driver.pm +%%SITE_PERL%%/DBIx/Connector/Driver/MSSQL.pm +%%SITE_PERL%%/DBIx/Connector/Driver/Oracle.pm +%%SITE_PERL%%/DBIx/Connector/Driver/Pg.pm +%%SITE_PERL%%/DBIx/Connector/Driver/SQLite.pm +%%SITE_PERL%%/DBIx/Connector/Driver/mysql.pm +@dirrm %%SITE_PERL%%/DBIx/Connector/Driver +@dirrm %%SITE_PERL%%/DBIx/Connector +@dirrmtry %%SITE_PERL%%/DBIx