aboutsummaryrefslogtreecommitdiffstats
path: root/databases/ruby-interbase
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-12-13 22:07:38 +0800
committerijliao <ijliao@FreeBSD.org>2001-12-13 22:07:38 +0800
commit98dce7cb99330fbc1db4811255a6a919b959268f (patch)
treea0a8ee0a6cd140215f0e1823c2d2c62738abd76a /databases/ruby-interbase
parentac4c26e3ec3e1e29eafc0bdf392305cff5e4d2c3 (diff)
downloadfreebsd-ports-gnome-98dce7cb99330fbc1db4811255a6a919b959268f.tar.gz
freebsd-ports-gnome-98dce7cb99330fbc1db4811255a6a919b959268f.tar.zst
freebsd-ports-gnome-98dce7cb99330fbc1db4811255a6a919b959268f.zip
add ruby-interbase
Ruby interface to Interbase library PR: 31869 Submitted by: Sergey Skvortsov <skv@protey.ru>
Diffstat (limited to 'databases/ruby-interbase')
-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
6 files changed, 75 insertions, 0 deletions
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