From 98dce7cb99330fbc1db4811255a6a919b959268f Mon Sep 17 00:00:00 2001 From: ijliao Date: Thu, 13 Dec 2001 14:07:38 +0000 Subject: add ruby-interbase Ruby interface to Interbase library PR: 31869 Submitted by: Sergey Skvortsov --- databases/Makefile | 1 + databases/ruby-interbase/Makefile | 41 +++++++++++++++++++++++++ databases/ruby-interbase/distinfo | 1 + databases/ruby-interbase/files/patch-extconf.rb | 24 +++++++++++++++ databases/ruby-interbase/pkg-comment | 1 + databases/ruby-interbase/pkg-descr | 3 ++ databases/ruby-interbase/pkg-plist | 5 +++ 7 files changed, 76 insertions(+) create mode 100644 databases/ruby-interbase/Makefile create mode 100644 databases/ruby-interbase/distinfo create mode 100644 databases/ruby-interbase/files/patch-extconf.rb create mode 100644 databases/ruby-interbase/pkg-comment create mode 100644 databases/ruby-interbase/pkg-descr create mode 100644 databases/ruby-interbase/pkg-plist (limited to 'databases') 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 +# +# $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 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 -- cgit