aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authortobez <tobez@FreeBSD.org>2006-12-04 19:45:17 +0800
committertobez <tobez@FreeBSD.org>2006-12-04 19:45:17 +0800
commitaa69f64b32eeb2a6e395664b5079928ce35c3ba3 (patch)
tree9364b5098b374fa118ee3424bf68132fe5d495e7 /databases
parent1944b60453e1e1e8b71f4baff994b83611b08738 (diff)
downloadfreebsd-ports-gnome-aa69f64b32eeb2a6e395664b5079928ce35c3ba3.tar.gz
freebsd-ports-gnome-aa69f64b32eeb2a6e395664b5079928ce35c3ba3.tar.zst
freebsd-ports-gnome-aa69f64b32eeb2a6e395664b5079928ce35c3ba3.zip
Add Template::DBI, a Template Toolkit interface to the DBI module.
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/p5-Template-DBI/Makefile37
-rw-r--r--databases/p5-Template-DBI/distinfo3
-rw-r--r--databases/p5-Template-DBI/pkg-descr7
-rw-r--r--databases/p5-Template-DBI/pkg-plist6
5 files changed, 54 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 426f1f55e24f..6038465eb467 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -300,6 +300,7 @@
SUBDIR += p5-Search-Xapian
SUBDIR += p5-T2
SUBDIR += p5-Tangram
+ SUBDIR += p5-Template-DBI
SUBDIR += p5-Test-DatabaseRow
SUBDIR += p5-Text-Query-SQL
SUBDIR += p5-Tie-DBI
diff --git a/databases/p5-Template-DBI/Makefile b/databases/p5-Template-DBI/Makefile
new file mode 100644
index 000000000000..4c9295648bda
--- /dev/null
+++ b/databases/p5-Template-DBI/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: databases/p5-Template-DBI
+# Date created: 04 December 2006
+# Whom: Anton Berezin <tobez@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Template-DBI
+PORTVERSION= 2.64
+CATEGORIES= databases perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Template
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= tobez@FreeBSD.org
+COMMENT= Template::Plugin::DBI - Template interface to the DBI module
+
+BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Template.pm:${PORTSDIR}/www/p5-Template-Toolkit \
+ ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= Template::DBI.3 \
+ Template::Plugin::DBI.3
+
+post-patch:
+ ${PERL} -i -pe 's|TT_QUIET\s*=\s*0|TT_QUIET = 1|' ${WRKSRC}/Makefile.PL
+ ${PERL} -i -pe 's|TT_ACCEPT\s*=\s*0|TT_ACCEPT = 1|' ${WRKSRC}/Makefile.PL
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+IGNORE= requires perl 5.6.0 or later. Install lang/perl5.8 and try again
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/p5-Template-DBI/distinfo b/databases/p5-Template-DBI/distinfo
new file mode 100644
index 000000000000..ce137bddb246
--- /dev/null
+++ b/databases/p5-Template-DBI/distinfo
@@ -0,0 +1,3 @@
+MD5 (Template-DBI-2.64.tar.gz) = 424d2f17b8b2b3329e758044210920cb
+SHA256 (Template-DBI-2.64.tar.gz) = 67d07a68d28114a2db1fac599fab20b17974a4aabb60b3b2c2ba17c51d646735
+SIZE (Template-DBI-2.64.tar.gz) = 13645
diff --git a/databases/p5-Template-DBI/pkg-descr b/databases/p5-Template-DBI/pkg-descr
new file mode 100644
index 000000000000..771f8a0bd103
--- /dev/null
+++ b/databases/p5-Template-DBI/pkg-descr
@@ -0,0 +1,7 @@
+This Template Toolkit plugin module provides an interface to the Perl
+DBI/DBD modules, allowing you to integrate SQL queries into your
+template documents. It also provides an interface via the Tie::DBI
+module (if installed on your system) so that you can access database
+records without having to embed any SQL in your templates.
+
+WWW: http://search.cpan.org/dist/Template-DBI/
diff --git a/databases/p5-Template-DBI/pkg-plist b/databases/p5-Template-DBI/pkg-plist
new file mode 100644
index 000000000000..423d0de6a27c
--- /dev/null
+++ b/databases/p5-Template-DBI/pkg-plist
@@ -0,0 +1,6 @@
+%%SITE_PERL%%/Template/DBI.pod
+%%SITE_PERL%%/Template/Plugin/DBI.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Template-DBI/.packlist
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Template-DBI
+@dirrmtry %%SITE_PERL%%/Template/Plugin
+@dirrmtry %%SITE_PERL%%/Template