diff options
author | lth <lth@FreeBSD.org> | 2004-10-24 22:30:47 +0000 |
---|---|---|
committer | lth <lth@FreeBSD.org> | 2004-10-24 22:30:47 +0000 |
commit | 4cb8f592ffafa656d1e9490efb65050b90bac2ee (patch) | |
tree | ab31e8a467fbb67137b758c8e127732f9a5917dc /databases | |
parent | e6060602ebc9054873ea79963e7cd9e7c8ce8b56 (diff) | |
download | FreeBSD-ports-4cb8f592ffafa656d1e9490efb65050b90bac2ee.zip FreeBSD-ports-4cb8f592ffafa656d1e9490efb65050b90bac2ee.tar.gz |
Add p5-Class-DBI-DATA-Schema 0.04, execute Class::DBI SQL from DATA
sections.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/p5-Class-DBI-DATA-Schema/Makefile | 34 | ||||
-rw-r--r-- | databases/p5-Class-DBI-DATA-Schema/distinfo | 2 | ||||
-rw-r--r-- | databases/p5-Class-DBI-DATA-Schema/pkg-descr | 5 | ||||
-rw-r--r-- | databases/p5-Class-DBI-DATA-Schema/pkg-plist | 9 |
5 files changed, 51 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index 01259af..638debf 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -124,6 +124,7 @@ SUBDIR += p5-Class-DBI-AsForm SUBDIR += p5-Class-DBI-AutoLoader SUBDIR += p5-Class-DBI-BaseDSN + SUBDIR += p5-Class-DBI-DATA-Schema SUBDIR += p5-Class-DBI-FromCGI SUBDIR += p5-Class-DBI-Loader SUBDIR += p5-Class-DBI-Loader-Relationship diff --git a/databases/p5-Class-DBI-DATA-Schema/Makefile b/databases/p5-Class-DBI-DATA-Schema/Makefile new file mode 100644 index 0000000..fba54cf --- /dev/null +++ b/databases/p5-Class-DBI-DATA-Schema/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: databases/p5-Class-DBI-DATA-Schema +# Date created: 24 October 2004 +# Whom: Lars Thegler <lth@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= Class-DBI-DATA-Schema +PORTVERSION= 0.04 +CATEGORIES= databases perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Class +PKGNAMEPREFIX= p5- + +MAINTAINER= lth@FreeBSD.org +COMMENT= Execute Class::DBI SQL from DATA sections + +BUILD_DEPENDS= ${SITE_PERL}/Class/DBI.pm:${PORTSDIR}/databases/p5-Class-DBI +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3= Class::DBI::DATA::Schema.3 + +.include <bsd.port.pre.mk> +.if ${PERL_LEVEL} <= 500503 +post-patch: + ${PERL} -pi -e '$$_ = "" if /use warnings/;' \ + -e '$$_ = "" if /ABSTRACT_FROM/;' \ + -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' \ + ${WRKSRC}/Makefile.PL \ + ${WRKSRC}/lib/Class/DBI/DATA/Schema.pm +.endif +.include <bsd.port.post.mk> diff --git a/databases/p5-Class-DBI-DATA-Schema/distinfo b/databases/p5-Class-DBI-DATA-Schema/distinfo new file mode 100644 index 0000000..cd781b3 --- /dev/null +++ b/databases/p5-Class-DBI-DATA-Schema/distinfo @@ -0,0 +1,2 @@ +MD5 (Class-DBI-DATA-Schema-0.04.tar.gz) = 61717b2145d85e99115ccbae26a90d5d +SIZE (Class-DBI-DATA-Schema-0.04.tar.gz) = 3171 diff --git a/databases/p5-Class-DBI-DATA-Schema/pkg-descr b/databases/p5-Class-DBI-DATA-Schema/pkg-descr new file mode 100644 index 0000000..a5dd82d --- /dev/null +++ b/databases/p5-Class-DBI-DATA-Schema/pkg-descr @@ -0,0 +1,5 @@ +This is an extension to Class::DBI which injects a method into your +class to find and execute all SQL statements in the DATA section +of the package. + +WWW: http://search.cpan.org/dist/Class-DBI-DATA-Schema diff --git a/databases/p5-Class-DBI-DATA-Schema/pkg-plist b/databases/p5-Class-DBI-DATA-Schema/pkg-plist new file mode 100644 index 0000000..faf33e1 --- /dev/null +++ b/databases/p5-Class-DBI-DATA-Schema/pkg-plist @@ -0,0 +1,9 @@ +%%SITE_PERL%%/Class/DBI/DATA/Schema.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/DBI/DATA/Schema/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/DBI/DATA/Schema +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/DBI/DATA 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/DATA 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 |