diff options
author | Richard Brown <rbrown@gentoo.org> | 2007-04-17 23:39:50 +0000 |
---|---|---|
committer | Richard Brown <rbrown@gentoo.org> | 2007-04-17 23:39:50 +0000 |
commit | f209fb50d907415e23e06697f14f1bb0f1247b52 (patch) | |
tree | 9b6685ce7b62e1e36eb6d3612b3c53e423d46173 /dev-ruby/mysql-ruby | |
parent | Version bump (diff) | |
download | gentoo-2-f209fb50d907415e23e06697f14f1bb0f1247b52.tar.gz gentoo-2-f209fb50d907415e23e06697f14f1bb0f1247b52.tar.bz2 gentoo-2-f209fb50d907415e23e06697f14f1bb0f1247b52.zip |
Install test.rb
(Portage version: 2.1.2.2)
Diffstat (limited to 'dev-ruby/mysql-ruby')
-rw-r--r-- | dev-ruby/mysql-ruby/ChangeLog | 6 | ||||
-rw-r--r-- | dev-ruby/mysql-ruby/files/mysql-ruby-2.7.3-test.patch | 9 | ||||
-rw-r--r-- | dev-ruby/mysql-ruby/mysql-ruby-2.7.3.ebuild | 11 |
3 files changed, 18 insertions, 8 deletions
diff --git a/dev-ruby/mysql-ruby/ChangeLog b/dev-ruby/mysql-ruby/ChangeLog index 433f4d8c07de..ea1f9fa74cee 100644 --- a/dev-ruby/mysql-ruby/ChangeLog +++ b/dev-ruby/mysql-ruby/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-ruby/mysql-ruby # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mysql-ruby/ChangeLog,v 1.39 2007/04/17 14:34:23 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mysql-ruby/ChangeLog,v 1.40 2007/04/17 23:39:50 rbrown Exp $ + + 17 Apr 2007; Richard Brown <rbrown@gentoo.org> + files/mysql-ruby-2.7.3-test.patch, mysql-ruby-2.7.3.ebuild: + Install test.rb 17 Apr 2007; Christian Faulhammer <opfer@gentoo.org> mysql-ruby-2.7.3.ebuild: diff --git a/dev-ruby/mysql-ruby/files/mysql-ruby-2.7.3-test.patch b/dev-ruby/mysql-ruby/files/mysql-ruby-2.7.3-test.patch index fd8a7fa47098..2bd5b4766cba 100644 --- a/dev-ruby/mysql-ruby/files/mysql-ruby-2.7.3-test.patch +++ b/dev-ruby/mysql-ruby/files/mysql-ruby-2.7.3-test.patch @@ -1,19 +1,20 @@ diff -u mysql-ruby-2.7.3/test.rb mysql-ruby-2.7.3.new/test.rb --- mysql-ruby-2.7.3/test.rb 2006-12-20 05:31:52.000000000 +0000 -+++ mysql-ruby-2.7.3.new/test.rb 2007-04-13 20:55:40.000000000 +0100 ++++ mysql-ruby-2.7.3.new/test.rb 2007-04-16 11:34:43.000000000 +0100 @@ -1,16 +1,22 @@ -#!/usr/local/bin/ruby +#!/usr/bin/env ruby # $Id: test.rb,v 1.23 2006-12-20 05:31:52 tommy Exp $ require "test/unit" - require "./mysql.o" - +-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 diff --git a/dev-ruby/mysql-ruby/mysql-ruby-2.7.3.ebuild b/dev-ruby/mysql-ruby/mysql-ruby-2.7.3.ebuild index dfdcc082be1d..ce1ceb918510 100644 --- a/dev-ruby/mysql-ruby/mysql-ruby-2.7.3.ebuild +++ b/dev-ruby/mysql-ruby/mysql-ruby-2.7.3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 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.7.3.ebuild,v 1.7 2007/04/17 14:34:23 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mysql-ruby/mysql-ruby-2.7.3.ebuild,v 1.8 2007/04/17 23:39:50 rbrown Exp $ inherit ruby @@ -17,6 +17,8 @@ USE_RUBY="ruby18 ruby19" DEPEND="virtual/ruby virtual/mysql" +TEST_DIR="/usr/share/${PN}/test/" + src_unpack() { unpack ${A} if use hppa; then @@ -35,14 +37,17 @@ src_install() { make DESTDIR=${D} install || die dohtml * + + insinto $TEST_DIR + doins test.rb } src_test() { elog elog "To test the programme you need to start mysql first." - elog "Then extract the tarball and run" + elog "Then run:" elog - elog " % ruby test.rb hostname user password" + elog " % ruby ${TEST_DIR}test.rb hostname user password" elog elog "See /usr/share/doc/${PF}/html/README.html for detail." elog |