summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2004-04-04 18:00:58 +0000
committererwin <erwin@FreeBSD.org>2004-04-04 18:00:58 +0000
commitbc10b88256c5967b123de71482eee83cf0313cd9 (patch)
treeedac321baf644e9919f13b20af41b3bccc4e1afc
parent906b4a83d5f92d8764e95f99f32cf846b5b3dbf4 (diff)
downloadFreeBSD-ports-bc10b88256c5967b123de71482eee83cf0313cd9.zip
FreeBSD-ports-bc10b88256c5967b123de71482eee83cf0313cd9.tar.gz
Add p5-Class-DBI-Plugin-RetrieveAll 1, more complex retrieve_all() for
Class::DBI. This is a simple plugin to a Class::DBI subclass which provides a 'retrieve_all_sorted_by' method. WWW: http://search.cpan.org/dist/Class-DBI-Plugin-RetrieveAll/ PR: ports/65146 Submitted by: Lars Thegler <lars@thegler.dk>
-rw-r--r--databases/Makefile1
-rw-r--r--databases/p5-Class-DBI-Plugin-RetrieveAll/Makefile36
-rw-r--r--databases/p5-Class-DBI-Plugin-RetrieveAll/distinfo2
-rw-r--r--databases/p5-Class-DBI-Plugin-RetrieveAll/pkg-descr4
-rw-r--r--databases/p5-Class-DBI-Plugin-RetrieveAll/pkg-plist9
5 files changed, 52 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index a89fa1d..b9a5be7 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -118,6 +118,7 @@
SUBDIR += p5-Class-DBI-Oracle
SUBDIR += p5-Class-DBI-Pager
SUBDIR += p5-Class-DBI-Pg
+ SUBDIR += p5-Class-DBI-Plugin-RetrieveAll
SUBDIR += p5-Class-DBI-Replication
SUBDIR += p5-Class-DBI-SAK
SUBDIR += p5-Class-DBI-SQLite
diff --git a/databases/p5-Class-DBI-Plugin-RetrieveAll/Makefile b/databases/p5-Class-DBI-Plugin-RetrieveAll/Makefile
new file mode 100644
index 0000000..025e9aa
--- /dev/null
+++ b/databases/p5-Class-DBI-Plugin-RetrieveAll/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: p5-Class-DBI-Plugin-RetrieveAll
+# Date created: Apr 2 2004
+# Whom: Lars Thegler <lars@thegler.dk>
+#
+# $FreeBSD$
+
+PORTNAME= Class-DBI-Plugin-RetrieveAll
+PORTVERSION= 1
+CATEGORIES= databases perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Class
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= lars@thegler.dk
+COMMENT= More complex retrieve_all() for Class::DBI
+
+BUILD_DEPENDS= ${SITE_PERL}/Class/DBI.pm:${PORTSDIR}/databases/p5-Class-DBI
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= Class::DBI::Plugin::RetrieveAll.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}/lib/Class/DBI/Plugin/RetrieveAll.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-RetrieveAll/distinfo b/databases/p5-Class-DBI-Plugin-RetrieveAll/distinfo
new file mode 100644
index 0000000..346f4f3
--- /dev/null
+++ b/databases/p5-Class-DBI-Plugin-RetrieveAll/distinfo
@@ -0,0 +1,2 @@
+MD5 (Class-DBI-Plugin-RetrieveAll-1.tar.gz) = 90683c19c505813a4640f549d33bd5e4
+SIZE (Class-DBI-Plugin-RetrieveAll-1.tar.gz) = 7984
diff --git a/databases/p5-Class-DBI-Plugin-RetrieveAll/pkg-descr b/databases/p5-Class-DBI-Plugin-RetrieveAll/pkg-descr
new file mode 100644
index 0000000..d293c9e
--- /dev/null
+++ b/databases/p5-Class-DBI-Plugin-RetrieveAll/pkg-descr
@@ -0,0 +1,4 @@
+This is a simple plugin to a Class::DBI subclass which provides a
+'retrieve_all_sorted_by' method.
+
+WWW: http://search.cpan.org/dist/Class-DBI-Plugin-RetrieveAll/
diff --git a/databases/p5-Class-DBI-Plugin-RetrieveAll/pkg-plist b/databases/p5-Class-DBI-Plugin-RetrieveAll/pkg-plist
new file mode 100644
index 0000000..7737f04
--- /dev/null
+++ b/databases/p5-Class-DBI-Plugin-RetrieveAll/pkg-plist
@@ -0,0 +1,9 @@
+%%SITE_PERL%%/Class/DBI/Plugin/RetrieveAll.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/DBI/Plugin/RetrieveAll/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/DBI/Plugin/RetrieveAll
+@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