pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/ruby-odbc Initial import of ruby18-odbc-0.99...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/40ec0a14a40a
branches:  trunk
changeset: 540462:40ec0a14a40a
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Apr 04 15:15:50 2008 +0000

description:
Initial import of ruby18-odbc-0.9995 as databases/ruby-odbc.

This package contains a Ruby extension for accessing ODBC data sources.

diffstat:

 databases/ruby-odbc/DESCR         |   1 +
 databases/ruby-odbc/Makefile      |  27 +++++++++++++++++++++++++++
 databases/ruby-odbc/PLIST         |  33 +++++++++++++++++++++++++++++++++
 databases/ruby-odbc/distinfo      |   5 +++++
 databases/ruby-odbc/files/gemspec |  24 ++++++++++++++++++++++++
 databases/ruby-odbc/options.mk    |  24 ++++++++++++++++++++++++
 6 files changed, 114 insertions(+), 0 deletions(-)

diffs (138 lines):

diff -r 2a9ec241fb42 -r 40ec0a14a40a databases/ruby-odbc/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-odbc/DESCR Fri Apr 04 15:15:50 2008 +0000
@@ -0,0 +1,1 @@
+This package contains a Ruby extension for accessing ODBC data sources.
diff -r 2a9ec241fb42 -r 40ec0a14a40a databases/ruby-odbc/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-odbc/Makefile      Fri Apr 04 15:15:50 2008 +0000
@@ -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@localhost
+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 -r 2a9ec241fb42 -r 40ec0a14a40a databases/ruby-odbc/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-odbc/PLIST Fri Apr 04 15:15:50 2008 +0000
@@ -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 -r 2a9ec241fb42 -r 40ec0a14a40a databases/ruby-odbc/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-odbc/distinfo      Fri Apr 04 15:15:50 2008 +0000
@@ -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 -r 2a9ec241fb42 -r 40ec0a14a40a databases/ruby-odbc/files/gemspec
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-odbc/files/gemspec Fri Apr 04 15:15:50 2008 +0000
@@ -0,0 +1,24 @@
+require "rubygems"
+
+NAME     = "odbc"
+VERSION  = "0.9995"
+AUTHOR   = "Christian Werner"
+EMAIL    = "chw%ch-werner.de@localhost"
+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 -r 2a9ec241fb42 -r 40ec0a14a40a databases/ruby-odbc/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-odbc/options.mk    Fri Apr 04 15:15:50 2008 +0000
@@ -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



Home | Main Index | Thread Index | Old Index