dev-ruby/dbi: added basic ruby19 support (caution: fails some tests)
authorSergei Trofimovich <slyfox@gentoo.org>
Mon, 15 Oct 2012 12:02:42 +0000 (15 15:02 +0300)
committerSergei Trofimovich <slyfox@gentoo.org>
Mon, 15 Oct 2012 12:02:42 +0000 (15 15:02 +0300)
See http://bugs.gentoo.org/386513 for a list of failures

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
13 files changed:
dev-ruby/dbi/CVS/Entries [new file with mode: 0644]
dev-ruby/dbi/CVS/Repository [new file with mode: 0644]
dev-ruby/dbi/CVS/Root [new file with mode: 0644]
dev-ruby/dbi/ChangeLog [new file with mode: 0644]
dev-ruby/dbi/Manifest [new file with mode: 0644]
dev-ruby/dbi/dbi-0.4.3.ebuild [new file with mode: 0644]
dev-ruby/dbi/dbi-0.4.5-r1.ebuild [new file with mode: 0644]
dev-ruby/dbi/dbi-0.4.5.ebuild [new file with mode: 0644]
dev-ruby/dbi/files/CVS/Entries [new file with mode: 0644]
dev-ruby/dbi/files/CVS/Repository [new file with mode: 0644]
dev-ruby/dbi/files/CVS/Root [new file with mode: 0644]
dev-ruby/dbi/files/dbi-0.4.5-gentoo.patch [new file with mode: 0644]
dev-ruby/dbi/metadata.xml [new file with mode: 0644]

diff --git a/dev-ruby/dbi/CVS/Entries b/dev-ruby/dbi/CVS/Entries
new file mode 100644 (file)
index 0000000..5ad2daf
--- /dev/null
@@ -0,0 +1,6 @@
+/dbi-0.4.5.ebuild/1.1/Sun Sep  2 13:28:06 2012//
+/metadata.xml/1.1/Sun Sep  2 08:25:56 2012//
+D/files////
+/ChangeLog/1.4/Wed Sep 12 14:31:21 2012//
+/Manifest/1.4/Wed Sep 12 14:31:21 2012//
+/dbi-0.4.3.ebuild/1.3/Wed Sep 12 14:31:21 2012//
diff --git a/dev-ruby/dbi/CVS/Repository b/dev-ruby/dbi/CVS/Repository
new file mode 100644 (file)
index 0000000..d897af1
--- /dev/null
@@ -0,0 +1 @@
+gentoo-x86/dev-ruby/dbi
diff --git a/dev-ruby/dbi/CVS/Root b/dev-ruby/dbi/CVS/Root
new file mode 100644 (file)
index 0000000..1bab21b
--- /dev/null
@@ -0,0 +1 @@
+slyfox@cvs.gentoo.org:/var/cvsroot
diff --git a/dev-ruby/dbi/ChangeLog b/dev-ruby/dbi/ChangeLog
new file mode 100644 (file)
index 0000000..ad6d51d
--- /dev/null
@@ -0,0 +1,238 @@
+# ChangeLog for dev-ruby/dbi
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/dbi/ChangeLog,v 1.4 2012/09/09 08:23:03 graaff Exp $
+
+  09 Sep 2012; Hans de Graaff <graaff@gentoo.org> dbi-0.4.3.ebuild,
+  -files/ruby-dbi-0.4.3-drivers-test.patch:
+  Use sed instead of patch broken on whitespace, fixing bug 434188. Make sure
+  the right version of deprecated is used.
+
+  02 Sep 2012; Diego E. Pettenò <flameeyes@gentoo.org> dbi-0.4.3.ebuild:
+  Fix typo.
+
+*dbi-0.4.5 (02 Sep 2012)
+
+  02 Sep 2012; Diego E. Pettenò <flameeyes@gentoo.org> +dbi-0.4.5.ebuild,
+  +files/dbi-0.4.5-gentoo.patch:
+  Version bump: move to EAPI=4, fakegem and testrb-2.
+
+  02 Sep 2012; Diego E. Pettenò <flameeyes@gentoo.org>
+  -files/ruby-dbi-0.1.1-destdir-gentoo.diff,
+  -files/ruby-dbi-destdir-gentoo.diff:
+  Remove unused patches.
+
+  01 May 2012; Raúl Porcel <armin76@gentoo.org> ruby-dbi-0.4.3.ebuild:
+  Drop ia64/sparc keywords
+
+  30 Apr 2012; Hans de Graaff <graaff@gentoo.org> -ruby-dbi-0.2.0-r1.ebuild:
+  Remove old version.
+
+  23 Jul 2011; Kacper Kowalik <xarthisius@gentoo.org> ruby-dbi-0.4.3.ebuild:
+  ppc stable wrt #333087
+
+  19 Jun 2011; Hans de Graaff <graaff@gentoo.org> ruby-dbi-0.4.3.ebuild:
+  Depend on a compatible dev-ruby/deprecated slot, fixes bug 332985.
+
+  05 Sep 2010; Raúl Porcel <armin76@gentoo.org> ruby-dbi-0.4.3.ebuild:
+  ia64 stable wrt #333087
+
+  23 Aug 2010; Markos Chandras <hwoarang@gentoo.org> ruby-dbi-0.4.3.ebuild:
+  Stable on amd64 wrt bug #333087
+
+  20 Aug 2010; Christian Faulhammer <fauli@gentoo.org>
+  ruby-dbi-0.4.3.ebuild:
+  stable x86, bug 333087
+
+  16 Aug 2010; Diego E. Pettenò <flameeyes@gentoo.org>
+  -ruby-dbi-0.4.2.ebuild, ruby-dbi-0.4.3.ebuild:
+  Remove old version using ruby.eclass. Use $FILESDIR for patch name.
+
+*ruby-dbi-0.4.3 (15 Jun 2010)
+
+  15 Jun 2010; Hans de Graaff <graaff@gentoo.org> +ruby-dbi-0.4.3.ebuild,
+  +files/ruby-dbi-0.4.3-drivers-test.patch:
+  Version bump. Convert to ruby-ng. Make sure tests run.
+
+  22 May 2010; Diego E. Pettenò <flameeyes@gentoo.org>
+  ruby-dbi-0.4.2.ebuild:
+  Various cleanups.
+
+  21 Dec 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+  ruby-dbi-0.4.2.ebuild:
+  Quickly fix dependency over test-unit.
+
+  20 Dec 2009; Hans de Graaff <graaff@gentoo.org> ruby-dbi-0.2.0-r1.ebuild,
+  ruby-dbi-0.4.2.ebuild:
+  Remove obsolete virtual/ruby dependency.
+
+  31 Oct 2009; Mounir Lamouri <volkmar@gentoo.org> ruby-dbi-0.4.2.ebuild:
+  Re-Keywording for ppc, bug 283229
+
+  24 Sep 2009; Raúl Porcel <armin76@gentoo.org> ruby-dbi-0.4.2.ebuild:
+  Add ~ia64/~sparc wrt #283229
+
+  30 Aug 2009; Alex Legler <a3li@gentoo.org> ruby-dbi-0.4.2.ebuild:
+  Fix testing.
+
+  26 Aug 2009; Alex Legler <a3li@gentoo.org> ruby-dbi-0.4.2.ebuild:
+  Giving die a meaningful message, ignoring not installed ruby versions when
+  testing.
+
+*ruby-dbi-0.4.2 (26 Aug 2009)
+
+  26 Aug 2009; Alex Legler <a3li@gentoo.org> +ruby-dbi-0.4.2.ebuild:
+  Version bump. Now with modular database drivers. Dropped keywords due to
+  the introduction of dev-ruby/deprecated as a new dependency.
+
+  09 Aug 2009; Hans de Graaff <graaff@gentoo.org> -ruby-dbi-0.1.1.ebuild:
+  Remove old version.
+
+  09 Aug 2009; nixnut <nixnut@gentoo.org> ruby-dbi-0.2.0-r1.ebuild:
+  ppc stable #273962
+
+  17 Jul 2009; Hans de Graaff <graaff@gentoo.org>
+  -ruby-dbi-0.0.21-r2.ebuild, -ruby-dbi-0.2.0.ebuild:
+  Remove old versions.
+
+  02 Jul 2009; Markus Meier <maekke@gentoo.org> ruby-dbi-0.2.0-r1.ebuild:
+  amd64 stable, bug #273962
+
+  24 Jun 2009; Raúl Porcel <armin76@gentoo.org> ruby-dbi-0.2.0-r1.ebuild:
+  ia64 stable wrt #273962
+
+  16 Jun 2009; Christian Faulhammer <fauli@gentoo.org>
+  ruby-dbi-0.2.0-r1.ebuild:
+  stable x86, bug 273962
+
+  20 Mar 2009; Joseph Jezak <josejx@gentoo.org> ruby-dbi-0.2.0-r1.ebuild:
+  Marked ~ppc for bug #250319.
+
+  29 Dec 2008; Hans de Graaff <graaff@gentoo.org> ruby-dbi-0.2.0-r1.ebuild:
+  Use a bash array for the patches now that the ruby.eclass supports it.
+
+  16 Dec 2008; Raúl Porcel <armin76@gentoo.org> ruby-dbi-0.2.0-r1.ebuild:
+  Re-add ~ia64 wrt #250319
+
+*ruby-dbi-0.2.0-r1 (08 Dec 2008)
+
+  08 Dec 2008; Hans de Graaff <graaff@gentoo.org> +ruby-dbi-0.2.0-r1.ebuild:
+  Add oracle support. Patch and testing by Erwin Paternotte in #249921.
+  Dropped ia64 and ppc keywords due to new ruby-oci8 dependency, and filed i
+  #250319 about it.
+
+*ruby-dbi-0.2.0 (16 Mar 2008)
+
+  16 Mar 2008; Richard Brown <rbrown@gentoo.org> +ruby-dbi-0.2.0.ebuild:
+  Version bump.
+
+  02 Jan 2008; Raúl Porcel <armin76@gentoo.org> ruby-dbi-0.1.1.ebuild:
+  Re-add ~ia64
+
+  21 Oct 2007; Steve Dibb <beandog@gentoo.org> ruby-dbi-0.0.21-r2.ebuild,
+  ruby-dbi-0.1.1.ebuild:
+  amd64 stable
+
+  09 Sep 2007; René Nussbaumer <killerfox@gentoo.org>
+  ruby-dbi-0.1.1.ebuild:
+  Stable on ppc. See bug #190304.
+
+  27 Aug 2007; Jurek Bartuszek <jurek@gentoo.org> ruby-dbi-0.1.1.ebuild:
+  x86 stable (bug #190304)
+
+  21 Jan 2007; Nguyễn Thái Ngọc Duy <pclouds@gentoo.org>
+  ruby-dbi-0.0.21-r2.ebuild, ruby-dbi-0.1.1.ebuild:
+  Added examples use flag to ebuild, #145222
+
+  20 Oct 2006; Aron Griffis <agriffis@gentoo.org> ruby-dbi-0.0.21-r2.ebuild:
+  Mark 0.0.21-r2 stable on ia64
+
+  14 Oct 2006; Jason Wever <weeve@gentoo.org> ruby-dbi-0.1.1.ebuild:
+  Added ~sparc keyword wrt bug #150234.
+
+  06 Oct 2006; <nixnut@gentoo.org> ruby-dbi-0.1.1.ebuild:
+  Added ~ppc wrt bug 150234
+
+*ruby-dbi-0.1.1 (06 Oct 2006)
+
+  06 Oct 2006; Nguyễn Thái Ngọc Duy <pclouds@gentoo.org>
+  +files/ruby-dbi-0.1.1-destdir-gentoo.diff, -ruby-dbi-0.0.21.ebuild,
+  -ruby-dbi-0.0.21-r1.ebuild, +ruby-dbi-0.1.1.ebuild:
+  Version bump by Richard Brown <mynamewasgone@gmail.com>, #150146. Removed
+  old ebuilds
+
+  08 Aug 2006; Luis Medinas <metalgod@gentoo.org> ruby-dbi-0.0.21-r2.ebuild:
+  Added ~amd64 keyword.
+
+  30 Mar 2006; Aron Griffis <agriffis@gentoo.org> ruby-dbi-0.0.21-r2.ebuild:
+  Mark 0.0.21-r2 ~ia64
+
+*ruby-dbi-0.0.21-r2 (12 Jan 2006)
+
+  12 Jan 2006; Caleb Tennis <caleb@gentoo.org> +ruby-dbi-0.0.21-r2.ebuild:
+  Deps should be on ruby packages and not directly on the databases. Also,
+  mark x86 stable and remove ruby16
+
+  30 Apr 2005; Ferris McCormick <fmccor@gentoo.org>
+  ruby-dbi-0.0.21-r1.ebuild:
+  Add ~sparc keyword --- works fine on sparc.
+
+  05 Aug 2004; Anders Rune Jensen <arj@gentoo.org> ruby-dbi-0.0.21-r1.ebuild:
+  Depend on version 2 of sqlite.
+
+*ruby-dbi-0.0.21-r1 (23 May 2004)
+
+  23 May 2004; Mamoru KOMACHI <usata@gentoo.org> ruby-dbi-0.0.16-r1.ebuild,
+  ruby-dbi-0.0.18-r1.ebuild, ruby-dbi-0.0.21-r1.ebuild, ruby-dbi-0.0.21.ebuild:
+  Added sqlite IUSE flag. Thanks to Andreas Schwarz <gentoo@andreas-s.net>,
+  closing bug #47494. Removed old ebuilds.
+
+  17 Apr 2004; David Holm <dholm@gentoo.org> ruby-dbi-0.0.21.ebuild:
+  Added to ~ppc.
+
+  10 Apr 2004; Mamoru KOMACHI <usata@gentoo.org> ruby-dbi-0.0.16-r1.ebuild,
+  ruby-dbi-0.0.18-r1.ebuild, ruby-dbi-0.0.21.ebuild:
+  virtual/ruby fix
+
+*ruby-dbi-0.0.21 (01 Apr 2004)
+*ruby-dbi-0.0.18-r1 (01 Apr 2004)
+*ruby-dbi-0.0.16-r1 (01 Apr 2004)
+
+  01 Apr 2004; Mamoru KOMACHI <usata@gentoo.org> ruby-dbi-0.0.16-r1.ebuild,
+  ruby-dbi-0.0.16.ebuild, ruby-dbi-0.0.18-r1.ebuild, ruby-dbi-0.0.18.ebuild,
+  ruby-dbi-0.0.21.ebuild, files/ruby-dbi-destdir-gentoo.diff:
+  Version bumped. Fixed hardcoded rubydir, closing bug #46237
+
+*ruby-dbi-0.0.18 (27 Jul 2002)
+
+  27 Oct 2002; Ryan Phillips <rphillips@gentoo.org> ruby-dbi-0.0.17.ebuild :
+
+  New version
+
+*ruby-dbi-0.0.16 (10 Jul 2002)
+
+  10 Jul 2002; Ryan Phillips <rphillips@gentoo.org> ruby-dbi-0.0.16.ebuild :
+
+  New version
+
+*ruby-dbi-0.0.15 (21 Jun 2002)
+
+  21 Jun 2002; Ryan Phillips <rphillips@gentoo.org> ruby-dbi-0.0.15.ebuild :
+
+  New version
+
+  07 Jul 2002; Aron Griffis <agriffis@gentoo.org> ruby-dbi-0.0.15.ebuild:
+
+  Added LICENSE, KEYWORDS, SLOT.
+
+*ruby-dbi-0.0.13 (24 Apr 2002)
+
+  24 Apr 2002; Karl Trygve Kalleberg <karltk@gentoo.org> ruby-dbi-0.0.13.ebuild files/digest-ruby-dbi-0.0.13 :
+  
+  Ruby/DBI - a database independent interface for accessing databases - 
+  similar to Perl's DBI.
+
+  Ebuild submitted by Geert Bevin <gbevin@uwyn.com>.
+
+  07 Jul 2002; Aron Griffis <agriffis@gentoo.org> ruby-dbi-0.0.13.ebuild:
+
+  Added LICENSE, KEYWORDS, SLOT.
diff --git a/dev-ruby/dbi/Manifest b/dev-ruby/dbi/Manifest
new file mode 100644 (file)
index 0000000..fc96eff
--- /dev/null
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX dbi-0.4.5-gentoo.patch 901 SHA256 f8a1bba9afe51fd088d195664bcaa7af957a9aa1d26027c2e6005f2b24da6c4c SHA512 8ea18efc66518ffac457908cc597cf9ea5dd3c9b4aae1d068c0b82872a2108a4336c18a69310382e4a2b1b5fca30bd38f65911d377097ef5a45a1b12550ba821 WHIRLPOOL d7fd57f1b4778000e6e47996ace0a97d212bc4779ae216d25236c6bb50e54c101312a34b298b84a0b502656fc91c00721ddf1106b641ff22cd6636cbe15a5365
+DIST dbi-0.4.3.tar.gz 81851 SHA256 5f4d0c92c43ccfc4d0075dfe17e3315a2d2d8aaeaee207a81985dd7be75f45fa SHA512 4f45eccb93e1826232f6f9260dbe81420c6239c64e24f55cd1777404a5869d27a1f4c9b8dd5b8382b0c08904565a8f3cdba60ad60198087111cdcff7635389c0 WHIRLPOOL 52e64b4dbf04e1824bda938fe3dac870ff3c5b01a2e70f25032b1e256c89268ad043ac2d92ff217ea8b535f6ecf59544874cee49fa445d18246fd5a42f9c48dd
+DIST dbi-0.4.5.gem 73728 SHA256 892b34709c872db130053b2b9238a43b28a71b8a5851193ef236a59541195916 SHA512 b7b6dfb22ab2430275868b8b4801b3a3c296c879b2a21394b161541734f4818ba51dc74a0c3906b9879fbbc1f4b4be4b43a98108cf855aae5dd7a5fdfe7632cd WHIRLPOOL 7a68dafd0242b4fcfeba8508f21d0848165c3188b96f61b20540b44a74e4ae4ce01e16c7951bc687b6977d442410f9fec9189791adb7e1ca74f83eda81066868
+EBUILD dbi-0.4.3.ebuild 1766 SHA256 0a261d7d7229f1a3e562ec73178fe02fd7f8f5b7eb59eebaceb42f27a1a7fab3 SHA512 765a48b1eeb5623b2c8cdc086b388659e747ff1216abd47add664b6b8f1ee7c3e67e270ea552b94b41e8ac818393ba86acbe0e3608beabd882ac4e703f1391fb WHIRLPOOL de33d2aaf67ed822acad349ed92bc68d790f0546f218f4a77b5ae35b447f35ba05627305828df78572bf8e55b703a52df239c5b184911fe2b9c01de0a723d4d1
+EBUILD dbi-0.4.5.ebuild 1299 SHA256 06c6957cc59feeb2655d38f8fc94fccdc9dbebd3da5df624b8876d898ac3fa29 SHA512 c42699b51f250ecfdaedebc254ddcdc5c2506150593c7ce176d61f391ea9baee08459be632e72db06db9beeaccfb3c358da84af6a0b29712d744cee089dd35d7 WHIRLPOOL 7ff8885884ab24e8cc325c27b5b7ec4af12f5c6f263f4351d6fa2aba034a3770d34a243494973f434157afacff00808d488d51bf75067e00f61e7e2314a83bbc
+MISC ChangeLog 8148 SHA256 83ed6673b7be457b28620cafb855e8f82f487262b3a2cc937fa2817db8b8baed SHA512 f38677e873b0b01331800ec8d86bace4eeb931c3f103e66cc19bf6ef8c3ab0ab64c5decd721c1704b78fa392517a3c013fe9903bc877447aaeb0441713869749 WHIRLPOOL 0b72bff819d73428587e30cbc291c12af3144f4a6e7773f9fdc25ee0f714835f974fba6649e2cffb2929a2fdc9772b665ca98746aeff828253db4249d34354c0
+MISC metadata.xml 234 SHA256 826011185c3a1a849ae7974c6c7ddc366fa72662e94daad39611d78763c83273 SHA512 66854b761f8c7a3d758159ebb722311825f027b45e6ab7828b9477347419258e4899365e0ee910c7827760b20b7edec5851e9efa92fd78502e87e423cf215298 WHIRLPOOL deead190c8c568a215e33a068c40100ae16f65ea89233c80b652c3b84f022dbef155bbd1bfc00720432cf6eed9a637bd3ffed90b4edbcaa5cf43956e4973d19a
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iF4EAREIAAYFAlBMUfMACgkQiIP6VqMIqNdn4AD+IEtSrYHqNdhG7ZsRvfbKRgGC
+gszeO5zAJPFcfFq1J14A/RWP4epbi/SL7MSggHANiAijYIrZvl0b8T16UPZL/XQt
+=7zD3
+-----END PGP SIGNATURE-----
diff --git a/dev-ruby/dbi/dbi-0.4.3.ebuild b/dev-ruby/dbi/dbi-0.4.3.ebuild
new file mode 100644 (file)
index 0000000..8e5a5cf
--- /dev/null
@@ -0,0 +1,64 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/dbi/dbi-0.4.3.ebuild,v 1.3 2012/09/09 08:23:03 graaff Exp $
+
+EAPI=4
+USE_RUBY="ruby18"
+
+inherit ruby-ng
+
+DESCRIPTION="Ruby/DBI - a database independent interface for accessing databases - similar to Perl's DBI"
+HOMEPAGE="http://ruby-dbi.rubyforge.org"
+SRC_URI="mirror://rubyforge/ruby-dbi/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="examples odbc postgres mysql sqlite sqlite3 test"
+
+ruby_add_bdepend "test? ( virtual/ruby-test-unit )"
+ruby_add_rdepend "dev-ruby/deprecated:2"
+
+PDEPEND="
+       mysql?    ( dev-ruby/dbd-mysql )
+       postgres? ( dev-ruby/dbd-pg )
+       odbc?     ( dev-ruby/dbd-odbc )
+       sqlite?   ( dev-ruby/dbd-sqlite )
+       sqlite3?  ( dev-ruby/dbd-sqlite3 )"
+
+S="${WORKDIR}/${MY_P}"
+
+all_ruby_prepare() {
+       sed -i -e '/test_available_drivers/,/^   end/ s:^:#:' test/dbi/tc_dbi.rb || die
+       sed -i -e "s/gem 'deprecated'/gem 'deprecated', '~>2.0'/" lib/dbi/columninfo.rb lib/dbi.rb || die
+}
+
+each_ruby_configure() {
+       ${RUBY} setup.rb config --prefix=/usr
+}
+
+each_ruby_test() {
+       ${RUBY} test/ts_dbi.rb || die "Tests failed."
+}
+
+each_ruby_install() {
+       ${RUBY} setup.rb install \
+               --prefix="${D}" || die "setup.rb install failed"
+}
+
+all_ruby_install() {
+       dodoc ChangeLog README
+
+       if use examples ; then
+               cp -pPR examples "${D}/usr/share/doc/${PF}" || die "cp examples failed"
+       fi
+}
+
+pkg_postinst() {
+       if ! (use mysql || use postgres || use odbc || use sqlite || use sqlite3)
+       then
+               elog "${P} now comes with external database drivers."
+               elog "Be sure to set the right USE flags for ${PN} or emerge the drivers manually:"
+               elog "They are called dev-ruby/dbd-{mysql,odbc,pg,sqlite,sqlite3}"
+       fi
+}
diff --git a/dev-ruby/dbi/dbi-0.4.5-r1.ebuild b/dev-ruby/dbi/dbi-0.4.5-r1.ebuild
new file mode 100644 (file)
index 0000000..f956664
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/dbi/dbi-0.4.5.ebuild,v 1.1 2012/09/02 13:28:06 flameeyes Exp $
+
+EAPI=4
+USE_RUBY="ruby18 ruby19"
+
+RUBY_FAKEGEM_RECIPE_TEST="none"
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+RUBY_FAKEGEM_EXTRADOC="README ChangeLog"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Database independent interface for accessing databases"
+HOMEPAGE="http://ruby-dbi.rubyforge.org/"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="odbc postgres mysql sqlite sqlite3 test"
+
+ruby_add_bdepend "test? ( >=dev-ruby/test-unit-2.5.1-r1 )"
+ruby_add_rdepend "dev-ruby/deprecated:2"
+
+PDEPEND="
+       mysql?    ( dev-ruby/dbd-mysql )
+       postgres? ( dev-ruby/dbd-pg )
+       odbc?     ( dev-ruby/dbd-odbc )
+       sqlite?   ( dev-ruby/dbd-sqlite )
+       sqlite3?  ( dev-ruby/dbd-sqlite3 )"
+
+RUBY_PATCHES=( ${P}-gentoo.patch )
+
+each_ruby_test() {
+       ruby-ng_testrb-2 -Ilib test/ts_dbi.rb
+}
+
+pkg_postinst() {
+       if ! (use mysql || use postgres || use odbc || use sqlite || use sqlite3)
+       then
+               elog "${P} now comes with external database drivers."
+               elog "Be sure to set the right USE flags for ${PN} or emerge the drivers manually:"
+               elog "They are called dev-ruby/dbd-{mysql,odbc,pg,sqlite,sqlite3}"
+       fi
+}
diff --git a/dev-ruby/dbi/dbi-0.4.5.ebuild b/dev-ruby/dbi/dbi-0.4.5.ebuild
new file mode 100644 (file)
index 0000000..051034d
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/dbi/dbi-0.4.5.ebuild,v 1.1 2012/09/02 13:28:06 flameeyes Exp $
+
+EAPI=4
+USE_RUBY="ruby18"
+
+RUBY_FAKEGEM_RECIPE_TEST="none"
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+RUBY_FAKEGEM_EXTRADOC="README ChangeLog"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Database independent interface for accessing databases"
+HOMEPAGE="http://ruby-dbi.rubyforge.org/"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="odbc postgres mysql sqlite sqlite3 test"
+
+ruby_add_bdepend "test? ( >=dev-ruby/test-unit-2.5.1-r1 )"
+ruby_add_rdepend "dev-ruby/deprecated:2"
+
+PDEPEND="
+       mysql?    ( dev-ruby/dbd-mysql )
+       postgres? ( dev-ruby/dbd-pg )
+       odbc?     ( dev-ruby/dbd-odbc )
+       sqlite?   ( dev-ruby/dbd-sqlite )
+       sqlite3?  ( dev-ruby/dbd-sqlite3 )"
+
+RUBY_PATCHES=( ${P}-gentoo.patch )
+
+each_ruby_test() {
+       ruby-ng_testrb-2 -Ilib test/ts_dbi.rb
+}
+
+pkg_postinst() {
+       if ! (use mysql || use postgres || use odbc || use sqlite || use sqlite3)
+       then
+               elog "${P} now comes with external database drivers."
+               elog "Be sure to set the right USE flags for ${PN} or emerge the drivers manually:"
+               elog "They are called dev-ruby/dbd-{mysql,odbc,pg,sqlite,sqlite3}"
+       fi
+}
diff --git a/dev-ruby/dbi/files/CVS/Entries b/dev-ruby/dbi/files/CVS/Entries
new file mode 100644 (file)
index 0000000..08863d4
--- /dev/null
@@ -0,0 +1,2 @@
+/dbi-0.4.5-gentoo.patch/1.1/Sun Sep  2 13:28:06 2012//
+D
diff --git a/dev-ruby/dbi/files/CVS/Repository b/dev-ruby/dbi/files/CVS/Repository
new file mode 100644 (file)
index 0000000..3b1bc38
--- /dev/null
@@ -0,0 +1 @@
+gentoo-x86/dev-ruby/dbi/files
diff --git a/dev-ruby/dbi/files/CVS/Root b/dev-ruby/dbi/files/CVS/Root
new file mode 100644 (file)
index 0000000..1bab21b
--- /dev/null
@@ -0,0 +1 @@
+slyfox@cvs.gentoo.org:/var/cvsroot
diff --git a/dev-ruby/dbi/files/dbi-0.4.5-gentoo.patch b/dev-ruby/dbi/files/dbi-0.4.5-gentoo.patch
new file mode 100644 (file)
index 0000000..f97cffe
--- /dev/null
@@ -0,0 +1,32 @@
+Index: dbi-0.4.5/lib/dbi/columninfo.rb
+===================================================================
+--- dbi-0.4.5.orig/lib/dbi/columninfo.rb
++++ dbi-0.4.5/lib/dbi/columninfo.rb
+@@ -2,7 +2,7 @@ require 'delegate'
+ begin
+     require 'rubygems'
+-    gem 'deprecated', "= 2.0.1"
++    gem 'deprecated', "~> 2.0.1"
+ rescue LoadError => e
+ end
+Index: dbi-0.4.5/test/dbi/tc_dbi.rb
+===================================================================
+--- dbi-0.4.5.orig/test/dbi/tc_dbi.rb
++++ dbi-0.4.5/test/dbi/tc_dbi.rb
+@@ -141,14 +141,6 @@ class TC_DBI < Test::Unit::TestCase
+    def test_available_drivers
+        assert_respond_to(DBI, :available_drivers)
+-       assert_equal(
+-       [
+-            "dbi:Mysql:",
+-            "dbi:ODBC:",
+-            "dbi:Pg:",
+-            "dbi:SQLite3:",
+-            "dbi:SQLite:"
+-       ], DBI.available_drivers.sort)
+    end
+    # PRIVATE METHODS
diff --git a/dev-ruby/dbi/metadata.xml b/dev-ruby/dbi/metadata.xml
new file mode 100644 (file)
index 0000000..e3d0073
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>ruby</herd>
+       <upstream>
+               <remote-id type="rubyforge">ruby-dbi</remote-id>
+       </upstream>
+</pkgmetadata>