diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2012-09-02 13:28:06 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2012-09-02 13:28:06 +0000 |
commit | 7010d59d94562f71d435eb48fcb08d09e2c5a57f (patch) | |
tree | aea9fd208f4d11b1c05ff02a63e5c8191759f49a /dev-ruby | |
parent | Stable for HPPA (bug #421479). (diff) | |
download | gentoo-2-7010d59d94562f71d435eb48fcb08d09e2c5a57f.tar.gz gentoo-2-7010d59d94562f71d435eb48fcb08d09e2c5a57f.tar.bz2 gentoo-2-7010d59d94562f71d435eb48fcb08d09e2c5a57f.zip |
Version bump: move to EAPI=4, fakegem and testrb-2.
(Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/dbi/ChangeLog | 10 | ||||
-rw-r--r-- | dev-ruby/dbi/dbi-0.4.5.ebuild | 48 | ||||
-rw-r--r-- | dev-ruby/dbi/files/dbi-0.4.5-gentoo.patch | 32 |
3 files changed, 88 insertions, 2 deletions
diff --git a/dev-ruby/dbi/ChangeLog b/dev-ruby/dbi/ChangeLog index 9baf4cd38ea0..d3942586233c 100644 --- a/dev-ruby/dbi/ChangeLog +++ b/dev-ruby/dbi/ChangeLog @@ -1,6 +1,12 @@ -# ChangeLog for dev-ruby/ruby-dbi +# 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.1 2012/09/02 08:25:56 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/dbi/ChangeLog,v 1.2 2012/09/02 13:28:06 flameeyes Exp $ + +*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, diff --git a/dev-ruby/dbi/dbi-0.4.5.ebuild b/dev-ruby/dbi/dbi-0.4.5.ebuild new file mode 100644 index 000000000000..051034db55d6 --- /dev/null +++ b/dev-ruby/dbi/dbi-0.4.5.ebuild @@ -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/dbi-0.4.5-gentoo.patch b/dev-ruby/dbi/files/dbi-0.4.5-gentoo.patch new file mode 100644 index 000000000000..f97cffe65d3e --- /dev/null +++ b/dev-ruby/dbi/files/dbi-0.4.5-gentoo.patch @@ -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 |