diff options
author | jlam <jlam@pkgsrc.org> | 2008-04-04 15:15:50 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-04-04 15:15:50 +0000 |
commit | 665854e7c5e78065c1a14a56682d621b5fd0aa27 (patch) | |
tree | c9200eeb2d43ffe7d9fb63c4127ee98f1db1809d /databases/ruby-odbc | |
parent | 11fd08f74990d16ae0669438ab86e7eb357af1a7 (diff) | |
download | pkgsrc-665854e7c5e78065c1a14a56682d621b5fd0aa27.tar.gz |
Initial import of ruby18-odbc-0.9995 as databases/ruby-odbc.
This package contains a Ruby extension for accessing ODBC data sources.
Diffstat (limited to 'databases/ruby-odbc')
-rw-r--r-- | databases/ruby-odbc/DESCR | 1 | ||||
-rw-r--r-- | databases/ruby-odbc/Makefile | 27 | ||||
-rw-r--r-- | databases/ruby-odbc/PLIST | 33 | ||||
-rw-r--r-- | databases/ruby-odbc/distinfo | 5 | ||||
-rw-r--r-- | databases/ruby-odbc/files/gemspec | 24 | ||||
-rw-r--r-- | databases/ruby-odbc/options.mk | 24 |
6 files changed, 114 insertions, 0 deletions
diff --git a/databases/ruby-odbc/DESCR b/databases/ruby-odbc/DESCR new file mode 100644 index 00000000000..c4c3a7782c9 --- /dev/null +++ b/databases/ruby-odbc/DESCR @@ -0,0 +1 @@ +This package contains a Ruby extension for accessing ODBC data sources. diff --git a/databases/ruby-odbc/Makefile b/databases/ruby-odbc/Makefile new file mode 100644 index 00000000000..306cecf373e --- /dev/null +++ b/databases/ruby-odbc/Makefile @@ -0,0 +1,27 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/04/04 15:15:50 jlam Exp $ + +DISTNAME= ruby-odbc-0.9995 +PKGNAME= ${RUBY_PKGPREFIX}-${GEM_NAME} +CATEGORIES= databases +MASTER_SITES= http://www.ch-werner.de/rubyodbc/ +EXTRACT_SUFX= .tar.gz + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.ch-werner.de/rubyodbc/ +COMMENT= ODBC binding for Ruby + +PKG_DESTDIR_SUPPORT= user-destdir + +.include "options.mk" + +GEM_NAME= ${DISTNAME:S/ruby-//} +GEM_BUILD= gemspec +GEM_CLEANBUILD= Makefile mkmf.log *.o odbc.${RUBY_DLEXT} utf8/* + +CONFIGURE_ARGS= --disable-dlopen + +post-extract: + cp ${FILESDIR}/gemspec ${GEM_SPECFILE} + +.include "../../misc/rubygems/rubygem.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/databases/ruby-odbc/PLIST b/databases/ruby-odbc/PLIST new file mode 100644 index 00000000000..7cd2d3e7049 --- /dev/null +++ b/databases/ruby-odbc/PLIST @@ -0,0 +1,33 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/04/04 15:15:50 jlam Exp $ +${GEM_HOME}/cache/odbc-${PKGVERSION}.gem +${GEM_LIBDIR}/COPYING +${GEM_LIBDIR}/ChangeLog +${GEM_LIBDIR}/GPL +${GEM_LIBDIR}/MANIFEST +${GEM_LIBDIR}/README +${GEM_LIBDIR}/cqgen.rb +${GEM_LIBDIR}/doc/odbc.html +${GEM_LIBDIR}/extconf.rb +${GEM_LIBDIR}/init.c +${GEM_LIBDIR}/lib/odbc.${RUBY_DLEXT} +${GEM_LIBDIR}/lib/odbc_utf8.${RUBY_DLEXT} +${GEM_LIBDIR}/odbc.c +${GEM_LIBDIR}/test.rb +${GEM_LIBDIR}/test/00connect.rb +${GEM_LIBDIR}/test/10create_table.rb +${GEM_LIBDIR}/test/20insert.rb +${GEM_LIBDIR}/test/30select.rb +${GEM_LIBDIR}/test/40update.rb +${GEM_LIBDIR}/test/50drop_table.rb +${GEM_LIBDIR}/test/70close.rb +${GEM_LIBDIR}/utf8/extconf.rb +${GEM_LIBDIR}/utf8/init.c +${GEM_LIBDIR}/utf8/odbc.c +${GEM_LIBDIR}/utf8/test.rb +${GEM_HOME}/specifications/odbc-${PKGVERSION}.gemspec +@dirrm ${GEM_LIBDIR}/utf8 +@dirrm ${GEM_LIBDIR}/test +@dirrm ${GEM_LIBDIR}/lib +@dirrm ${GEM_LIBDIR}/doc +@dirrm ${GEM_LIBDIR} +@exec ${MKDIR} %D/${GEM_DOCDIR} diff --git a/databases/ruby-odbc/distinfo b/databases/ruby-odbc/distinfo new file mode 100644 index 00000000000..6423b68013d --- /dev/null +++ b/databases/ruby-odbc/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/04/04 15:15:50 jlam Exp $ + +SHA1 (ruby-odbc-0.9995.tar.gz) = d20e3b039d010a104eddb5d413f9140caa01a241 +RMD160 (ruby-odbc-0.9995.tar.gz) = 964081dc315f657a956ff097da64bf3ad84130e6 +Size (ruby-odbc-0.9995.tar.gz) = 69459 bytes diff --git a/databases/ruby-odbc/files/gemspec b/databases/ruby-odbc/files/gemspec new file mode 100644 index 00000000000..106f7914106 --- /dev/null +++ b/databases/ruby-odbc/files/gemspec @@ -0,0 +1,24 @@ +require "rubygems" + +NAME = "odbc" +VERSION = "0.9995" +AUTHOR = "Christian Werner" +EMAIL = "chw@ch-werner.de" +HOMEPAGE = "http://www.ch-werner.de/rubyodbc" +SUMMARY = "ODBC binding for Ruby" + +spec = Gem::Specification.new do |s| + s.name = NAME + s.email = EMAIL + s.author = AUTHOR + s.version = VERSION + s.summary = SUMMARY + s.platform = Gem::Platform::RUBY + s.has_rdoc = false + s.homepage = HOMEPAGE + s.description = SUMMARY + s.require_paths = ["lib"] + s.extra_rdoc_files = ["README", "doc/odbc.html"] + s.files = Dir.glob("./**/*") + s.extensions = ["extconf.rb", "utf8/extconf.rb"] +end diff --git a/databases/ruby-odbc/options.mk b/databases/ruby-odbc/options.mk new file mode 100644 index 00000000000..da6e6d2948f --- /dev/null +++ b/databases/ruby-odbc/options.mk @@ -0,0 +1,24 @@ +# $NetBSD: options.mk,v 1.1.1.1 2008/04/04 15:15:50 jlam Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.ruby-odbc +PKG_OPTIONS_REQUIRED_GROUPS= odbc +PKG_OPTIONS_GROUP.odbc= iodbc unixodbc +PKG_SUGGESTED_OPTIONS= iodbc + +.include "../../mk/bsd.options.mk" + +### +### iODBC +### +.if !empty(PKG_OPTIONS:Miodbc) +. include "../../databases/iodbc/buildlink3.mk" +CONFIGURE_ARGS+= --with-odbc-dir=${BUILDLINK_PREFIX.iodbc} +.endif + +### +### unixODBC +### +.if !empty(PKG_OPTIONS:Munixodbc) +. include "../../databases/unixodbc/buildlink3.mk" +CONFIGURE_ARGS+= --with-odbc-dir=${BUILDLINK_PREFIX.unixodbc} +.endif |