summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2004-04-04 20:44:12 +0000
committererwin <erwin@FreeBSD.org>2004-04-04 20:44:12 +0000
commit12904ad61be5175fcfc4222c537a16c5d57f6ab1 (patch)
tree197d357cd8cfe07ef73cbbbb9a637b2efaf87676
parent4d72a725ddde4f6a2f054f0e20d9b1c909872f3a (diff)
downloadFreeBSD-ports-12904ad61be5175fcfc4222c537a16c5d57f6ab1.zip
FreeBSD-ports-12904ad61be5175fcfc4222c537a16c5d57f6ab1.tar.gz
Add p5-Class-DBI-Plugin-Type 0.02, determine type information for
columns. This module allows Class::DBI-based classes to query their columns for data type information in a database-independent manner. WWW: http://search.cpan.org/dist/Class-DBI-Plugin-Type/ PR: ports/65147 Submitted by: Lars Thegler <lars@thegler.dk>
-rw-r--r--databases/Makefile1
-rw-r--r--databases/p5-Class-DBI-Plugin-Type/Makefile36
-rw-r--r--databases/p5-Class-DBI-Plugin-Type/distinfo2
-rw-r--r--databases/p5-Class-DBI-Plugin-Type/pkg-descr4
-rw-r--r--databases/p5-Class-DBI-Plugin-Type/pkg-plist9
5 files changed, 52 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index b9a5be7..634e9d2 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -119,6 +119,7 @@
SUBDIR += p5-Class-DBI-Pager
SUBDIR += p5-Class-DBI-Pg
SUBDIR += p5-Class-DBI-Plugin-RetrieveAll
+ SUBDIR += p5-Class-DBI-Plugin-Type
SUBDIR += p5-Class-DBI-Replication
SUBDIR += p5-Class-DBI-SAK
SUBDIR += p5-Class-DBI-SQLite
diff --git a/databases/p5-Class-DBI-Plugin-Type/Makefile b/databases/p5-Class-DBI-Plugin-Type/Makefile
new file mode 100644
index 0000000..4380b55
--- /dev/null
+++ b/databases/p5-Class-DBI-Plugin-Type/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: p5-Class-DBI-Plugin-Type
+# Date created: Apr 3 2004
+# Whom: Lars Thegler <lars@thegler.dk>
+#
+# $FreeBSD$
+
+PORTNAME= Class-DBI-Plugin-Type
+PORTVERSION= 0.02
+CATEGORIES= databases perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Class
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= lars@thegler.dk
+COMMENT= Determine type information for columns
+
+BUILD_DEPENDS= ${SITE_PERL}/Class/DBI.pm:${PORTSDIR}/databases/p5-Class-DBI
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= Class::DBI::Plugin::Type.3
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+post-patch:
+ ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \
+ -e '$$_="" if /use warnings/;' \
+ ${WRKSRC}/Type.pm
+
+post-configure:
+ ${PERL} -pi -e 's,/usr/local/,\$$(PREFIX)/,g' ${WRKSRC}/Makefile
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/p5-Class-DBI-Plugin-Type/distinfo b/databases/p5-Class-DBI-Plugin-Type/distinfo
new file mode 100644
index 0000000..c51c251
--- /dev/null
+++ b/databases/p5-Class-DBI-Plugin-Type/distinfo
@@ -0,0 +1,2 @@
+MD5 (Class-DBI-Plugin-Type-0.02.tar.gz) = 2f80426ccc67629543404ee9376a6d3e
+SIZE (Class-DBI-Plugin-Type-0.02.tar.gz) = 2811
diff --git a/databases/p5-Class-DBI-Plugin-Type/pkg-descr b/databases/p5-Class-DBI-Plugin-Type/pkg-descr
new file mode 100644
index 0000000..a35bd2d
--- /dev/null
+++ b/databases/p5-Class-DBI-Plugin-Type/pkg-descr
@@ -0,0 +1,4 @@
+This module allows Class::DBI-based classes to query their columns
+for data type information in a database-independent manner.
+
+WWW: http://search.cpan.org/dist/Class-DBI-Plugin-Type/
diff --git a/databases/p5-Class-DBI-Plugin-Type/pkg-plist b/databases/p5-Class-DBI-Plugin-Type/pkg-plist
new file mode 100644
index 0000000..e2fb6b3
--- /dev/null
+++ b/databases/p5-Class-DBI-Plugin-Type/pkg-plist
@@ -0,0 +1,9 @@
+%%SITE_PERL%%/Class/DBI/Plugin/Type.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/DBI/Plugin/Type/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/DBI/Plugin/Type
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/DBI/Plugin 2>/dev/null || true
+@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
+@unexec rmdir %D/%%SITE_PERL%%/Class/DBI/Plugin 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Class/DBI 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Class 2>/dev/null || true
OpenPOWER on IntegriCloud