diff options
author | ijliao <ijliao@FreeBSD.org> | 2001-12-13 22:07:38 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2001-12-13 22:07:38 +0800 |
commit | 98dce7cb99330fbc1db4811255a6a919b959268f (patch) | |
tree | a0a8ee0a6cd140215f0e1823c2d2c62738abd76a /databases | |
parent | ac4c26e3ec3e1e29eafc0bdf392305cff5e4d2c3 (diff) | |
download | freebsd-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')
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/ruby-interbase/Makefile | 41 | ||||
-rw-r--r-- | databases/ruby-interbase/distinfo | 1 | ||||
-rw-r--r-- | databases/ruby-interbase/files/patch-extconf.rb | 24 | ||||
-rw-r--r-- | databases/ruby-interbase/pkg-comment | 1 | ||||
-rw-r--r-- | databases/ruby-interbase/pkg-descr | 3 | ||||
-rw-r--r-- | databases/ruby-interbase/pkg-plist | 5 |
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 |