aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2004-10-12 19:18:19 +0800
committermat <mat@FreeBSD.org>2004-10-12 19:18:19 +0800
commitfa437df5c30c980d35e249522c64e196b4f3d200 (patch)
treeca68fe3a32962472d064f648878d07185d1594b9 /databases
parent3725b28aeffbee0e87380f1f7e10d056a54380d3 (diff)
downloadfreebsd-ports-graphics-fa437df5c30c980d35e249522c64e196b4f3d200.tar.gz
freebsd-ports-graphics-fa437df5c30c980d35e249522c64e196b4f3d200.tar.zst
freebsd-ports-graphics-fa437df5c30c980d35e249522c64e196b4f3d200.zip
Add p5-Class-DBI-AutoLoader 0.12, generates Class::DBI subclasses
dynamically. PR: ports/72021 Submitted by: ijliao
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/p5-Class-DBI-AutoLoader/Makefile36
-rw-r--r--databases/p5-Class-DBI-AutoLoader/distinfo2
-rw-r--r--databases/p5-Class-DBI-AutoLoader/pkg-descr5
-rw-r--r--databases/p5-Class-DBI-AutoLoader/pkg-plist7
5 files changed, 51 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index e6b6ce4c55c..1a72a37916e 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -122,6 +122,7 @@
SUBDIR += p5-Class-DBI
SUBDIR += p5-Class-DBI-AbstractSearch
SUBDIR += p5-Class-DBI-AsForm
+ SUBDIR += p5-Class-DBI-AutoLoader
SUBDIR += p5-Class-DBI-BaseDSN
SUBDIR += p5-Class-DBI-FromCGI
SUBDIR += p5-Class-DBI-Loader
diff --git a/databases/p5-Class-DBI-AutoLoader/Makefile b/databases/p5-Class-DBI-AutoLoader/Makefile
new file mode 100644
index 00000000000..68aadbe29d8
--- /dev/null
+++ b/databases/p5-Class-DBI-AutoLoader/Makefile
@@ -0,0 +1,36 @@
+# ex:ts=8
+# Ports collection makefile for: Class::DBI::AutoLoader
+# Date created: Sep 23, 2004
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= Class-DBI-AutoLoader
+PORTVERSION= 0.12
+CATEGORIES= databases perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Class
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= perl@FreeBSD.org
+COMMENT= Generates Class::DBI subclasses dynamically
+
+BUILD_DEPENDS= ${SITE_PERL}/Class/DBI.pm:${PORTSDIR}/databases/p5-Class-DBI \
+ ${SITE_PERL}/Class/DBI/BaseDSN.pm:${PORTSDIR}/databases/p5-Class-DBI-BaseDSN
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= Class::DBI::AutoLoader.3
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+post-patch:
+ @${PERL} -pi -e '$$_ = "" if /use warnings/;' \
+ -e 's/^our (\S+)/use vars qw($$1); $$1/;' \
+ ${WRKSRC}/AutoLoader.pm
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/p5-Class-DBI-AutoLoader/distinfo b/databases/p5-Class-DBI-AutoLoader/distinfo
new file mode 100644
index 00000000000..c9344e317a3
--- /dev/null
+++ b/databases/p5-Class-DBI-AutoLoader/distinfo
@@ -0,0 +1,2 @@
+MD5 (Class-DBI-AutoLoader-0.12.tar.gz) = 5ab15935a73837c1803162fa2793540f
+SIZE (Class-DBI-AutoLoader-0.12.tar.gz) = 4120
diff --git a/databases/p5-Class-DBI-AutoLoader/pkg-descr b/databases/p5-Class-DBI-AutoLoader/pkg-descr
new file mode 100644
index 00000000000..95f2b038163
--- /dev/null
+++ b/databases/p5-Class-DBI-AutoLoader/pkg-descr
@@ -0,0 +1,5 @@
+Class::DBI::AutoLoader scans the tables in a given database, and auto-generates
+the Class::DBI classes. These are loaded into your package when you import
+Class::DBI::AutoLoader.
+
+WWW: http://search.cpan.org/dist/Class-DBI-AutoLoader/
diff --git a/databases/p5-Class-DBI-AutoLoader/pkg-plist b/databases/p5-Class-DBI-AutoLoader/pkg-plist
new file mode 100644
index 00000000000..a08839305b9
--- /dev/null
+++ b/databases/p5-Class-DBI-AutoLoader/pkg-plist
@@ -0,0 +1,7 @@
+%%SITE_PERL%%/Class/DBI/AutoLoader.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/DBI/AutoLoader/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/DBI/AutoLoader
+@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 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Class 2>/dev/null || true