diff options
Diffstat (limited to 'dev-ruby/mysql-ruby')
-rw-r--r-- | dev-ruby/mysql-ruby/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/mysql-ruby/files/mysql-ruby-2.8-test.patch | 59 | ||||
-rw-r--r-- | dev-ruby/mysql-ruby/mysql-ruby-2.8.ebuild | 54 |
3 files changed, 120 insertions, 1 deletions
diff --git a/dev-ruby/mysql-ruby/ChangeLog b/dev-ruby/mysql-ruby/ChangeLog index bb6001298aea..b69e49cd0944 100644 --- a/dev-ruby/mysql-ruby/ChangeLog +++ b/dev-ruby/mysql-ruby/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/mysql-ruby # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mysql-ruby/ChangeLog,v 1.62 2008/09/18 20:08:09 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mysql-ruby/ChangeLog,v 1.63 2008/12/30 11:54:04 graaff Exp $ + +*mysql-ruby-2.8 (30 Dec 2008) + + 30 Dec 2008; Hans de Graaff <graaff@gentoo.org> + +files/mysql-ruby-2.8-test.patch, +mysql-ruby-2.8.ebuild: + Version bump wrt bug #253038 by Alex Legler. 18 Sep 2008; Markus Meier <maekke@gentoo.org> mysql-ruby-2.7.5.ebuild: amd64 stable, bug #237545 diff --git a/dev-ruby/mysql-ruby/files/mysql-ruby-2.8-test.patch b/dev-ruby/mysql-ruby/files/mysql-ruby-2.8-test.patch new file mode 100644 index 000000000000..992917bc7c21 --- /dev/null +++ b/dev-ruby/mysql-ruby/files/mysql-ruby-2.8-test.patch @@ -0,0 +1,59 @@ +--- mysql-ruby-2.8/test.rb.0 2008-06-17 07:36:44.000000000 +0200 ++++ mysql-ruby-2.8/test.rb 2008-09-11 20:42:19.000000000 +0200 +@@ -1,12 +1,17 @@ +-#!/usr/local/bin/ruby ++#!/usr/bin/env ruby + # $Id: mysql-ruby-2.8-test.patch,v 1.1 2008/12/30 11:54:04 graaff Exp $ + + require "test/unit" +-require "./mysql.o" ++require "mysql" ++ ++ARGV.each do |a| ++ $argv ||= [] ++ $argv << a ++end + + class TC_Mysql < Test::Unit::TestCase + def setup() +- @host, @user, @pass, db, port, sock, flag = ARGV ++ @host, @user, @pass, db, port, sock, flag = $argv + @db = db || "test" + @port = port.to_i + @sock = sock.nil? || sock.empty? ? nil : sock +@@ -95,7 +100,7 @@ + + class TC_Mysql2 < Test::Unit::TestCase + def setup() +- @host, @user, @pass, db, port, sock, flag = ARGV ++ @host, @user, @pass, db, port, sock, flag = $argv + @db = db || "test" + @port = port.to_i + @sock = sock.nil? || sock.empty? ? nil : sock +@@ -211,7 +216,7 @@ + + class TC_MysqlRes < Test::Unit::TestCase + def setup() +- @host, @user, @pass, db, port, sock, flag = ARGV ++ @host, @user, @pass, db, port, sock, flag = $argv + @db = db || "test" + @port = port.to_i + @sock = sock.nil? || sock.empty? ? nil : sock +@@ -411,7 +416,7 @@ + + class TC_MysqlStmt < Test::Unit::TestCase + def setup() +- @host, @user, @pass, db, port, sock, flag = ARGV ++ @host, @user, @pass, db, port, sock, flag = $argv + @db = db || "test" + @port = port.to_i + @sock = sock.nil? || sock.empty? ? nil : sock +@@ -441,7 +446,7 @@ + + class TC_MysqlStmt2 < Test::Unit::TestCase + def setup() +- @host, @user, @pass, db, port, sock, flag = ARGV ++ @host, @user, @pass, db, port, sock, flag = $argv + @db = db || "test" + @port = port.to_i + @sock = sock.nil? || sock.empty? ? nil : sock diff --git a/dev-ruby/mysql-ruby/mysql-ruby-2.8.ebuild b/dev-ruby/mysql-ruby/mysql-ruby-2.8.ebuild new file mode 100644 index 000000000000..5845363ff6f0 --- /dev/null +++ b/dev-ruby/mysql-ruby/mysql-ruby-2.8.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mysql-ruby/mysql-ruby-2.8.ebuild,v 1.1 2008/12/30 11:54:04 graaff Exp $ + +inherit ruby + +DESCRIPTION="A Ruby extension library to use MySQL" +HOMEPAGE="http://www.tmtm.org/en/mysql/ruby/" +SRC_URI="mirror://rubyforge/mysql-ruby/${P}.tar.gz" + +LICENSE="Ruby" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +USE_RUBY="ruby18" +DEPEND="virtual/ruby + virtual/mysql" + +TEST_DIR="/usr/share/${PN}/test/" + +src_unpack() { + unpack ${A} + if use hppa; then + sed -e 's/LONG_LONG/long long/' -i "${S}"/mysql.c.in + fi + + epatch "${FILESDIR}/${P}-test.patch" +} + +src_compile() { + ruby extconf.rb || die + emake || die +} + +src_install() { + make DESTDIR="${D}" install || die + + dohtml * + + insinto $TEST_DIR + doins test.rb +} + +src_test() { + elog + elog "To test the library you need to start MySQL first." + elog "Then run:" + elog + elog " % ruby ${TEST_DIR}test.rb <hostname> <user> <password>" + elog + elog "See /usr/share/doc/${PF}/html/README.html for details." + elog +} |