From: Richard Brown Date: Tue, 17 Apr 2007 23:39:50 +0000 (+0000) Subject: Install test.rb X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b5fbda83a2ef2af310b724d991fe61e768fcfaf7;p=gentoo.git Install test.rb Package-Manager: portage-2.1.2.2 --- 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 + files/mysql-ruby-2.7.3-test.patch, mysql-ruby-2.7.3.ebuild: + Install test.rb 17 Apr 2007; Christian Faulhammer mysql-ruby-2.7.3.ebuild: diff --git a/dev-ruby/mysql-ruby/Manifest b/dev-ruby/mysql-ruby/Manifest index c73d8fdb3b78..db1c74a71d1e 100644 --- a/dev-ruby/mysql-ruby/Manifest +++ b/dev-ruby/mysql-ruby/Manifest @@ -1,10 +1,10 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -AUX mysql-ruby-2.7.3-test.patch 1880 RMD160 e9f1150a0b7e7ac9e54d906ef511a9c4cbb236fa SHA1 1364fa1e7b1d3c3193799a8448ceeb7d05e6bf87 SHA256 30332e1703dcb86069bfa3eb2f178bbfa324a0a2df2f2278b8dc49b4e363d0f3 -MD5 d93828189f3ef7d4b755d2a582fe4bfe files/mysql-ruby-2.7.3-test.patch 1880 -RMD160 e9f1150a0b7e7ac9e54d906ef511a9c4cbb236fa files/mysql-ruby-2.7.3-test.patch 1880 -SHA256 30332e1703dcb86069bfa3eb2f178bbfa324a0a2df2f2278b8dc49b4e363d0f3 files/mysql-ruby-2.7.3-test.patch 1880 +AUX mysql-ruby-2.7.3-test.patch 1897 RMD160 69120abb27c44b88ed6858637e0d86aa99dca42a SHA1 2b0135e6a67eab7ea31459be6a3ec9b443239aeb SHA256 f3ad9166160391e227000f0ced6f8e2875e7a79cba88dbc96881cb09bde0934e +MD5 4935d0cd14896226bbf8d6ab19053210 files/mysql-ruby-2.7.3-test.patch 1897 +RMD160 69120abb27c44b88ed6858637e0d86aa99dca42a files/mysql-ruby-2.7.3-test.patch 1897 +SHA256 f3ad9166160391e227000f0ced6f8e2875e7a79cba88dbc96881cb09bde0934e files/mysql-ruby-2.7.3-test.patch 1897 DIST mysql-ruby-2.4.5.tar.gz 16420 RMD160 7c86103027341fad43655b3e72ff715de22febda SHA1 30a4c4cd33531998cccfb26e336b15efdd7d87eb SHA256 d087ff50238f91da1df9e448e81f79b67702f5de72a7e6abfab051ed8aa53e89 DIST mysql-ruby-2.7.2.tar.gz 30298 RMD160 f985a150880df4a9bfb8450ca7bc299221ff5094 SHA1 5a642b504b799dec8edf7ca80ea3875e524b92a8 SHA256 2afde7f7ad2adcc287ae6184c2665e9bcff5504bfa10ca37a87dc4c9d9e895d6 DIST mysql-ruby-2.7.3.tar.gz 30383 RMD160 8b676f44a1cb14b643dcad6d57660ddbd236d9ea SHA1 ca083c5a1749899af45e9ca5fc4d71281ba6f9f7 SHA256 abf16d48a6ece40bd5f7a08eb72538e2dcc90ccabbba43a4b4e3ffc178886851 @@ -17,18 +17,18 @@ EBUILD mysql-ruby-2.7.2.ebuild 1037 RMD160 938e53e9e4c50f602958cf73b732d2e4b3863 MD5 5c3126c0e7e5d346a374e33e2b897c36 mysql-ruby-2.7.2.ebuild 1037 RMD160 938e53e9e4c50f602958cf73b732d2e4b3863584 mysql-ruby-2.7.2.ebuild 1037 SHA256 6d4e725c56f04e5e945af6deab80cfcf287418ff6d35f9914f9018c3a64420ea mysql-ruby-2.7.2.ebuild 1037 -EBUILD mysql-ruby-2.7.3.ebuild 1075 RMD160 2e5938ca59dda714e6b7f654d1db9f41a11a0c87 SHA1 c32532c8fb5f595afbcfb376a06d99caaada6031 SHA256 53f6c9a38dd8f634cf428cb14ccc68adaef7626fbc8e0af4af7b985a0f37f7ce -MD5 3d6bb8e12e3cc78b9c42c67f2cb65602 mysql-ruby-2.7.3.ebuild 1075 -RMD160 2e5938ca59dda714e6b7f654d1db9f41a11a0c87 mysql-ruby-2.7.3.ebuild 1075 -SHA256 53f6c9a38dd8f634cf428cb14ccc68adaef7626fbc8e0af4af7b985a0f37f7ce mysql-ruby-2.7.3.ebuild 1075 +EBUILD mysql-ruby-2.7.3.ebuild 1134 RMD160 fff632c08c15d8183a6da6991d19a00cc039cac8 SHA1 86c4a6853b9e100024a09b06f314756a46b5c414 SHA256 0980e233ef1ce00a9949308a989b1964fa53a221a6ac812f978e6bdaae10dba1 +MD5 076ce3b8056e3000e1aefcb60cb6957c mysql-ruby-2.7.3.ebuild 1134 +RMD160 fff632c08c15d8183a6da6991d19a00cc039cac8 mysql-ruby-2.7.3.ebuild 1134 +SHA256 0980e233ef1ce00a9949308a989b1964fa53a221a6ac812f978e6bdaae10dba1 mysql-ruby-2.7.3.ebuild 1134 EBUILD mysql-ruby-2.7.ebuild 930 RMD160 ac38c64c8eb3d537e26d2b75961f211a9096ccac SHA1 8fd7231aecd03d6c2e3a6f6f8d449e0cbd6ab9ce SHA256 2387885553eebba23197eef651a7dd702fb4e7de3bd58f2d71b20c9cf195672f MD5 bbbce693b5ad019059507d28683503ba mysql-ruby-2.7.ebuild 930 RMD160 ac38c64c8eb3d537e26d2b75961f211a9096ccac mysql-ruby-2.7.ebuild 930 SHA256 2387885553eebba23197eef651a7dd702fb4e7de3bd58f2d71b20c9cf195672f mysql-ruby-2.7.ebuild 930 -MISC ChangeLog 4369 RMD160 1fe3353c36f51aee3e6e7333020a3693a8327fbc SHA1 c1a13db30ce12cdbb784dc9eb605e5e1fe14fea8 SHA256 ce01ff5e1ec77a176ccaf6285ad13605707b30b8445608f0a8539a6a03e8cb74 -MD5 3de6c86822640d942f56c2806110427d ChangeLog 4369 -RMD160 1fe3353c36f51aee3e6e7333020a3693a8327fbc ChangeLog 4369 -SHA256 ce01ff5e1ec77a176ccaf6285ad13605707b30b8445608f0a8539a6a03e8cb74 ChangeLog 4369 +MISC ChangeLog 4500 RMD160 0553181754a20982a6e77b892bac61f23d2a6c5f SHA1 ee7e8c7e3bba1a1692b7fe8c7dd7b17423e37343 SHA256 1fece4a1afb1225108df504ddabc2b57c24fb9d90eaaca86df8bb723632a336b +MD5 bde4861cf4ebe59d3f95aeb2f8e8d9a6 ChangeLog 4500 +RMD160 0553181754a20982a6e77b892bac61f23d2a6c5f ChangeLog 4500 +SHA256 1fece4a1afb1225108df504ddabc2b57c24fb9d90eaaca86df8bb723632a336b ChangeLog 4500 MISC metadata.xml 157 RMD160 5d9e2c7ecba96ffebd936d38acedf859cdea84e1 SHA1 8ce15dcc608eeb5616aeec610dc695cbe6f93e02 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c MD5 3eec9f3fe48b51f49dbc1f171a3b026f metadata.xml 157 RMD160 5d9e2c7ecba96ffebd936d38acedf859cdea84e1 metadata.xml 157 @@ -48,7 +48,7 @@ SHA256 709e36ed73c757ba9fd1522cafc5df042d808cce4622a173ffa96ff146b10ee4 files/di -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) -iD8DBQFGJNr2NQqtfCuFneMRAk/tAJ9G+JJlHtUwCp8IOuEZq2uv9p01TwCdGx+o -iJB1SbONju6tAEJu9C8qG1M= -=Fo9r +iD8DBQFGJVrSuVcO4Ng+sIkRAoQCAKCwiiqHucyZFDiNy2w2iQyP0zPpbgCg8X/o +xsyM+djgobxahXOIHgvclDk= +=6isl -----END PGP SIGNATURE----- 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