diff options
Diffstat (limited to 'databases/p5-Class-DBI-DATA-Schema/Makefile')
-rw-r--r-- | databases/p5-Class-DBI-DATA-Schema/Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
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> |