summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-11-15 13:18:52 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-11-15 13:18:52 +0000
commitc24a1a839bfeff576c8e4e79985c88db2eb7a33f (patch)
tree298de1fd1cb4f1a11cbbfc7da9063a88c1f3006a /databases
parentUpdate dbi and dbd modules to 0.0.11. (diff)
Add ruby-dbd_sqlite, the SQLite driver for DBI-for-Ruby.
Notes
Notes: svn path=/head/; revision=50068
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/ruby-dbd_sqlite/Makefile33
-rw-r--r--databases/ruby-dbd_sqlite/pkg-comment1
-rw-r--r--databases/ruby-dbd_sqlite/pkg-descr4
-rw-r--r--databases/ruby-dbd_sqlite/pkg-plist2
5 files changed, 41 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 94305ab48979..1cc37f4667e5 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -98,6 +98,7 @@
SUBDIR += ruby-dbd_odbc
SUBDIR += ruby-dbd_pg
SUBDIR += ruby-dbd_proxy
+ SUBDIR += ruby-dbd_sqlite
SUBDIR += ruby-dbd_sybase
SUBDIR += ruby-dbi
SUBDIR += ruby-gdbm
diff --git a/databases/ruby-dbd_sqlite/Makefile b/databases/ruby-dbd_sqlite/Makefile
new file mode 100644
index 000000000000..adb09d1bfecd
--- /dev/null
+++ b/databases/ruby-dbd_sqlite/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: dbd_sqlite for DBD-for-Ruby
+# Date created: 15 November 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= dbd_sqlite
+PORTVERSION= ${RUBY_DBI_PORTVERSION}
+CATEGORIES= databases ruby
+MASTER_SITES= ${RUBY_DBI_MASTER_SITES}
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ${RUBY_DBI_DISTNAME}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+LIB_DEPENDS= sqlite.1:${.CURDIR}/../sqlite
+RUN_DEPENDS= ${RUBY_SITELIBDIR}/dbi.rb:${RUBY_DBI_PORTDIR}
+
+USE_RUBY= yes
+USE_RUBY_SETUP= yes
+
+WRKSRC= ${RUBY_DBI_WRKSRC}
+CONFIGURE_ARGS= --with=ext/${PORTNAME}
+
+post-patch:
+ ${RUBY} -i- -pe 'gsub "/usr/local", "${LOCALBASE}"' \
+ ${WRKSRC}/ext/dbd_sqlite/extconf.rb
+
+.include "${.CURDIR}/../ruby-dbi/Makefile.common"
+
+.include <bsd.port.mk>
diff --git a/databases/ruby-dbd_sqlite/pkg-comment b/databases/ruby-dbd_sqlite/pkg-comment
new file mode 100644
index 000000000000..139532e1be9d
--- /dev/null
+++ b/databases/ruby-dbd_sqlite/pkg-comment
@@ -0,0 +1 @@
+SQLite driver for DBI-for-Ruby
diff --git a/databases/ruby-dbd_sqlite/pkg-descr b/databases/ruby-dbd_sqlite/pkg-descr
new file mode 100644
index 000000000000..3a0b4e469992
--- /dev/null
+++ b/databases/ruby-dbd_sqlite/pkg-descr
@@ -0,0 +1,4 @@
+This is the SQLite driver for DBI-for-Ruby.
+
+Author: Rainer Perl <rainer.perl@sprytech.com>
+WWW: http://www.ruby-projects.org/dbi/
diff --git a/databases/ruby-dbd_sqlite/pkg-plist b/databases/ruby-dbd_sqlite/pkg-plist
new file mode 100644
index 000000000000..e32e88f69229
--- /dev/null
+++ b/databases/ruby-dbd_sqlite/pkg-plist
@@ -0,0 +1,2 @@
+%%RUBY_SITEARCHLIBDIR%%/DBD/SQLite/SQLite.so
+@dirrm %%RUBY_SITEARCHLIBDIR%%/DBD/SQLite