diff options
author | Erwin Lansing <erwin@FreeBSD.org> | 2004-04-04 18:00:58 +0000 |
---|---|---|
committer | Erwin Lansing <erwin@FreeBSD.org> | 2004-04-04 18:00:58 +0000 |
commit | b5d0f2f386c993175ef61175b87636eb2e1c37c1 (patch) | |
tree | 16b2d8c3ac0bf5856d3d0432b4d5dc32379ebb3b /databases/p5-Class-DBI-Plugin-RetrieveAll | |
parent | 82a1a467eeb5d575bf58b8431083b649b302894c (diff) | |
download | ports-b5d0f2f386c993175ef61175b87636eb2e1c37c1.tar.gz ports-b5d0f2f386c993175ef61175b87636eb2e1c37c1.zip |
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>
Notes
Notes:
svn path=/head/; revision=106139
Diffstat (limited to 'databases/p5-Class-DBI-Plugin-RetrieveAll')
4 files changed, 51 insertions, 0 deletions
diff --git a/databases/p5-Class-DBI-Plugin-RetrieveAll/Makefile b/databases/p5-Class-DBI-Plugin-RetrieveAll/Makefile new file mode 100644 index 000000000000..025e9aa16417 --- /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 000000000000..346f4f39df2c --- /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 000000000000..d293c9e9960a --- /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 000000000000..7737f040bfd7 --- /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 |