aboutsummaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/ruby-interbase/Makefile41
-rw-r--r--databases/ruby-interbase/distinfo1
-rw-r--r--databases/ruby-interbase/files/patch-extconf.rb24
-rw-r--r--databases/ruby-interbase/pkg-comment1
-rw-r--r--databases/ruby-interbase/pkg-descr3
-rw-r--r--databases/ruby-interbase/pkg-plist5
7 files changed, 76 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 377488de8cfb..4e6c57a2bf46 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -108,6 +108,7 @@
SUBDIR += ruby-dbd_sybase
SUBDIR += ruby-dbi
SUBDIR += ruby-gdbm
+ SUBDIR += ruby-interbase
SUBDIR += ruby-msql
SUBDIR += ruby-mysql
SUBDIR += ruby-o_dbm
diff --git a/databases/ruby-interbase/Makefile b/databases/ruby-interbase/Makefile
new file mode 100644
index 000000000000..0a02e8d88dd5
--- /dev/null
+++ b/databases/ruby-interbase/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: ruby-interbase
+# Date created: 8 Nov 2001
+# Whom: Sergey Skvortsov <skv@protey.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= interbase
+PORTVERSION= 0.03
+CATEGORIES= databases ruby
+MASTER_SITES= ftp://ftp.netlab.co.jp/pub/lang/ruby/contrib/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+
+MAINTAINER= skv@protey.ru
+
+LIB_DEPENDS= gds:${PORTSDIR}/databases/firebird
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+
+CONFIGURE_ARGS= --with-interbase-include-dir="${LOCALBASE}/firebird/include" \
+ --with-interbase-lib-dir="${LOCALBASE}/firebird/lib"
+INSTALL_TARGET= site-install
+
+DOCS_EN= README
+DOCS_JA= README.ja
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
+.for f in ${DOCS_EN}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
+.endfor
+.for f in ${DOCS_JA}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/databases/ruby-interbase/distinfo b/databases/ruby-interbase/distinfo
new file mode 100644
index 000000000000..71f03be359bc
--- /dev/null
+++ b/databases/ruby-interbase/distinfo
@@ -0,0 +1 @@
+MD5 (interbase-0.03.tar.gz) = 864bd594cb78aa8c1dcd61e309b1cddd
diff --git a/databases/ruby-interbase/files/patch-extconf.rb b/databases/ruby-interbase/files/patch-extconf.rb
new file mode 100644
index 000000000000..e6771c0e9026
--- /dev/null
+++ b/databases/ruby-interbase/files/patch-extconf.rb
@@ -0,0 +1,24 @@
+--- extconf.rb.orig Wed May 12 19:19:36 1999
++++ extconf.rb Fri Nov 9 10:14:03 2001
+@@ -1,5 +1,19 @@
+ require 'mkmf'
++INTERBASEDIR = "/usr/interbase"
+
+-have_library("gdslib", "isc_attach_database") or
+- have_library("gds", "isc_attach_database")
++incdir = with_config("interbase-include-dir")
++if incdir then
++ $CFLAGS += "-I#{incdir}"
++else
++ $CFLAGS = "-I#{INTERBASEDIR}/include"
++end
++
++libdir = with_config("interbase-lib-dir")
++if libdir then
++ $LDFLAGS += "-L#{libdir}"
++else
++ $LDFLAGS = "-L#{INTERBASEDIR}/lib"
++end
++
++$libs = "-lgds"
+ create_makefile("interbase")
diff --git a/databases/ruby-interbase/pkg-comment b/databases/ruby-interbase/pkg-comment
new file mode 100644
index 000000000000..93cfd41d1b44
--- /dev/null
+++ b/databases/ruby-interbase/pkg-comment
@@ -0,0 +1 @@
+Ruby interface to Interbase library
diff --git a/databases/ruby-interbase/pkg-descr b/databases/ruby-interbase/pkg-descr
new file mode 100644
index 000000000000..61b1f7d9afbb
--- /dev/null
+++ b/databases/ruby-interbase/pkg-descr
@@ -0,0 +1,3 @@
+This is an extention module to access Interbase database from Ruby.
+
+WWW: http://www.ruby-lang.org/en/raa-list.rhtml?name=interbase
diff --git a/databases/ruby-interbase/pkg-plist b/databases/ruby-interbase/pkg-plist
new file mode 100644
index 000000000000..515a82cebef9
--- /dev/null
+++ b/databases/ruby-interbase/pkg-plist
@@ -0,0 +1,5 @@
+%%RUBY_SITEARCHLIBDIR%%/interbase.so
+%%PORTDOCS%%%%RUBY_DOCDIR%%/interbase/README
+%%PORTDOCS%%%%RUBY_DOCDIR%%/interbase/ja/README.ja
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/interbase/ja
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/interbase