diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-07-29 02:23:57 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-07-29 02:23:57 +0000 |
commit | 76838a20645cf9fa35529bf2e4639fc619d3171a (patch) | |
tree | 54859e78186924b55efd9bab2b27b70a19e5ecda /dev-ruby/mocha | |
parent | Add patch to pass tests with Ruby 1.9.2 (directly from upstream). (diff) | |
download | historical-76838a20645cf9fa35529bf2e4639fc619d3171a.tar.gz historical-76838a20645cf9fa35529bf2e4639fc619d3171a.tar.bz2 historical-76838a20645cf9fa35529bf2e4639fc619d3171a.zip |
Move patch to dev.gentoo.org as it's quite big.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby/mocha')
-rw-r--r-- | dev-ruby/mocha/ChangeLog | 6 | ||||
-rw-r--r-- | dev-ruby/mocha/Manifest | 12 | ||||
-rw-r--r-- | dev-ruby/mocha/files/mocha-0.9.8+ruby-1.9.2.patch | 526 | ||||
-rw-r--r-- | dev-ruby/mocha/mocha-0.9.8-r2.ebuild | 7 |
4 files changed, 16 insertions, 535 deletions
diff --git a/dev-ruby/mocha/ChangeLog b/dev-ruby/mocha/ChangeLog index 260f5e44e53d..b38a201e6806 100644 --- a/dev-ruby/mocha/ChangeLog +++ b/dev-ruby/mocha/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-ruby/mocha # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mocha/ChangeLog,v 1.20 2010/07/29 02:15:32 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mocha/ChangeLog,v 1.21 2010/07/29 02:23:56 flameeyes Exp $ + + 29 Jul 2010; Diego E. Pettenò <flameeyes@gentoo.org> + mocha-0.9.8-r2.ebuild, -files/mocha-0.9.8+ruby-1.9.2.patch: + Move patch to dev.gentoo.org as it's quite big. 29 Jul 2010; Diego E. Pettenò <flameeyes@gentoo.org> mocha-0.9.8-r2.ebuild, +files/mocha-0.9.8+ruby-1.9.2.patch: diff --git a/dev-ruby/mocha/Manifest b/dev-ruby/mocha/Manifest index 0688130ab79f..3a05e37058dd 100644 --- a/dev-ruby/mocha/Manifest +++ b/dev-ruby/mocha/Manifest @@ -1,15 +1,15 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -AUX mocha-0.9.8+ruby-1.9.2.patch 21383 RMD160 033f3bff7b70f267f84ec163e570b08b69b14b6f SHA1 8acc91758748861aedf22a06f069e3fef1a28c1f SHA256 ff074c21fb73f4d4806b98b307220400c505ebeca66ec3823ab936b18cd654af +DIST mocha-0.9.8+ruby-1.9.2.patch.bz2 2333 RMD160 e4e15fb553402927c620e6c9a83792b42ef622f3 SHA1 d652bc34c2a1e3fa01b46b32aeb4a7c148425bbb SHA256 ef732c16dd1090a39462904b549e813ccc61b1ac83afdb56aae3c11c9f81bffb DIST mocha-0.9.8.gem 60930 RMD160 2d6cd5a48a4cb93e32ecf58d8d1354409f4246d7 SHA1 b922bbb39caca6beeb76b5af81378143c3025b80 SHA256 f177ebcfabd568fc93272dc2beee8b19b6fa036798bd4b6cf8d66f2915073e96 -EBUILD mocha-0.9.8-r2.ebuild 931 RMD160 558b203d918c853fc655255eba848bed1a3d536f SHA1 484bd4317ef514c5d76827729eb00084b377d783 SHA256 bf770a1db1e271afbd7f95f5962883d7d1d91454c5519cd926ad1b3779a4cb2d -MISC ChangeLog 2737 RMD160 f27ec695d355450a81cc0033695142f46274d0e6 SHA1 79a73c979a085c3eabe1c8074ab5f7d0dde7416b SHA256 22119cb66f4ab59b876df8a8e1472c7ee289a01882a43061129d5c70a2bbf52b +EBUILD mocha-0.9.8-r2.ebuild 1030 RMD160 1d8eeac184290c2b0dd2d584cc17afac834f38f9 SHA1 8c6fd2b11c6373807a2192a39eb991d21b7c38c8 SHA256 ed0931469f03136f9491c82ae607e1f12e344caff82d6702019de0cde2dac3d4 +MISC ChangeLog 2906 RMD160 d409547198b687372bb4a34a41ffa26327836be0 SHA1 964306582b1db01fe235f6c7f2d16f2a169d9c90 SHA256 477fd2f9010dcaf13cd923731b8bb24648822c113ba2c247740d4260ee572350 MISC metadata.xml 157 RMD160 5d9e2c7ecba96ffebd936d38acedf859cdea84e1 SHA1 8ce15dcc608eeb5616aeec610dc695cbe6f93e02 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) -iEYEARECAAYFAkxQ5FgACgkQAiZjviIA2Xje9gCgtXVbTmj+V1s4mLY18oZYst99 -hsgAn3ulaiTYmKBWxYZS0BFurrK6/kCf -=bgOe +iEYEARECAAYFAkxQ5k8ACgkQAiZjviIA2Xhw9gCfax2pAFHtuAqYkNHwHvZWm+ix +xbUAoK8syKilwrHwkVsHDwl3bSBEx+rV +=qiyX -----END PGP SIGNATURE----- diff --git a/dev-ruby/mocha/files/mocha-0.9.8+ruby-1.9.2.patch b/dev-ruby/mocha/files/mocha-0.9.8+ruby-1.9.2.patch deleted file mode 100644 index beb508a932d1..000000000000 --- a/dev-ruby/mocha/files/mocha-0.9.8+ruby-1.9.2.patch +++ /dev/null @@ -1,526 +0,0 @@ -commit b7ef80234de9a2242c11634618f24470a833b906 -Author: Eloy Duran <eloy.de.enige@gmail.com> -Date: Tue Oct 6 22:16:43 2009 +0200 - - Made the unit tests run on 1.9.2dev r25249. - -diff --git a/lib/mocha/mockery.rb b/lib/mocha/mockery.rb -index 6fd5e5a..3b847db 100644 ---- a/lib/mocha/mockery.rb -+++ b/lib/mocha/mockery.rb -@@ -1,5 +1,4 @@ - require 'mocha/central' --require 'mocha/mock' - require 'mocha/names' - require 'mocha/state_machine' - require 'mocha/logger' -diff --git a/lib/mocha/module_method.rb b/lib/mocha/module_method.rb -index 0c3b180..7169e61 100644 ---- a/lib/mocha/module_method.rb -+++ b/lib/mocha/module_method.rb -@@ -1,4 +1,4 @@ --require 'mocha/module_method' -+require 'mocha/class_method' - - module Mocha - -diff --git a/test/acceptance/acceptance_test_helper.rb b/test/acceptance/acceptance_test_helper.rb -index 2341338..8a3d0aa 100644 ---- a/test/acceptance/acceptance_test_helper.rb -+++ b/test/acceptance/acceptance_test_helper.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'test_runner' - require 'mocha/configuration' - -diff --git a/test/acceptance/mocha_example_test.rb b/test/acceptance/mocha_example_test.rb -index 34009c4..d2a476f 100644 ---- a/test/acceptance/mocha_example_test.rb -+++ b/test/acceptance/mocha_example_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'mocha' - - class MochaExampleTest < Test::Unit::TestCase -diff --git a/test/acceptance/stubba_example_test.rb b/test/acceptance/stubba_example_test.rb -index bd5a84d..092ce1f 100644 ---- a/test/acceptance/stubba_example_test.rb -+++ b/test/acceptance/stubba_example_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'mocha' - - class Widget -diff --git a/test/acceptance/stubba_test.rb b/test/acceptance/stubba_test.rb -index 1155ac5..6c7f386 100644 ---- a/test/acceptance/stubba_test.rb -+++ b/test/acceptance/stubba_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'deprecation_disabler' - - class StubbaTest < Test::Unit::TestCase -diff --git a/test/unit/any_instance_method_test.rb b/test/unit/any_instance_method_test.rb -index 1bf4d2a..5b892f9 100644 ---- a/test/unit/any_instance_method_test.rb -+++ b/test/unit/any_instance_method_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'method_definer' - require 'mocha/mock' - require 'mocha/any_instance_method' -diff --git a/test/unit/array_inspect_test.rb b/test/unit/array_inspect_test.rb -index 8e555cd..0f6e349 100644 ---- a/test/unit/array_inspect_test.rb -+++ b/test/unit/array_inspect_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'mocha/inspect' - - class ArrayInspectTest < Test::Unit::TestCase -diff --git a/test/unit/backtrace_filter_test.rb b/test/unit/backtrace_filter_test.rb -index 6d9379f..e744b70 100644 ---- a/test/unit/backtrace_filter_test.rb -+++ b/test/unit/backtrace_filter_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'mocha/backtrace_filter' - - class BacktraceFilterTest < Test::Unit::TestCase -diff --git a/test/unit/cardinality_test.rb b/test/unit/cardinality_test.rb -index 2a5ef9b..782e3a4 100644 ---- a/test/unit/cardinality_test.rb -+++ b/test/unit/cardinality_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'mocha/cardinality' - - class CardinalityTest < Test::Unit::TestCase -diff --git a/test/unit/central_test.rb b/test/unit/central_test.rb -index 03bff91..0aa999d 100644 ---- a/test/unit/central_test.rb -+++ b/test/unit/central_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - - require 'mocha/central' - require 'mocha/mock' -diff --git a/test/unit/change_state_side_effect_test.rb b/test/unit/change_state_side_effect_test.rb -index b48beaa..be49434 100644 ---- a/test/unit/change_state_side_effect_test.rb -+++ b/test/unit/change_state_side_effect_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - - require 'mocha/change_state_side_effect' - -diff --git a/test/unit/class_method_test.rb b/test/unit/class_method_test.rb -index 47c5999..a0f8c1c 100644 ---- a/test/unit/class_method_test.rb -+++ b/test/unit/class_method_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'method_definer' - require 'mocha/mock' - -diff --git a/test/unit/configuration_test.rb b/test/unit/configuration_test.rb -index a6f8958..62922e5 100644 ---- a/test/unit/configuration_test.rb -+++ b/test/unit/configuration_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require "mocha/configuration" - - class ConfigurationTest < Test::Unit::TestCase -diff --git a/test/unit/date_time_inspect_test.rb b/test/unit/date_time_inspect_test.rb -index 8557365..f03c544 100644 ---- a/test/unit/date_time_inspect_test.rb -+++ b/test/unit/date_time_inspect_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'mocha/inspect' - - class DateTimeInspectTest < Test::Unit::TestCase -diff --git a/test/unit/exception_raiser_test.rb b/test/unit/exception_raiser_test.rb -index 942300a..79cbeab 100644 ---- a/test/unit/exception_raiser_test.rb -+++ b/test/unit/exception_raiser_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - - require 'mocha/exception_raiser' - require 'timeout' -diff --git a/test/unit/expectation_list_test.rb b/test/unit/expectation_list_test.rb -index bc641c5..b53e073 100644 ---- a/test/unit/expectation_list_test.rb -+++ b/test/unit/expectation_list_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'mocha/expectation_list' - require 'mocha/expectation' - require 'set' -diff --git a/test/unit/expectation_test.rb b/test/unit/expectation_test.rb -index 3a37e54..c1af92b 100644 ---- a/test/unit/expectation_test.rb -+++ b/test/unit/expectation_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'method_definer' - require 'mocha/expectation' - require 'mocha/sequence' -diff --git a/test/unit/hash_inspect_test.rb b/test/unit/hash_inspect_test.rb -index 15ad415..388b0c1 100644 ---- a/test/unit/hash_inspect_test.rb -+++ b/test/unit/hash_inspect_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'mocha/inspect' - - class HashInspectTest < Test::Unit::TestCase -diff --git a/test/unit/in_state_ordering_constraint_test.rb b/test/unit/in_state_ordering_constraint_test.rb -index 96e20c5..25f4ea2 100644 ---- a/test/unit/in_state_ordering_constraint_test.rb -+++ b/test/unit/in_state_ordering_constraint_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - - require 'mocha/in_state_ordering_constraint' - -diff --git a/test/unit/metaclass_test.rb b/test/unit/metaclass_test.rb -index 956bcb4..6056142 100644 ---- a/test/unit/metaclass_test.rb -+++ b/test/unit/metaclass_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'mocha/metaclass' - - class MetaclassTest < Test::Unit::TestCase -diff --git a/test/unit/method_matcher_test.rb b/test/unit/method_matcher_test.rb -index 0167433..8230b48 100644 ---- a/test/unit/method_matcher_test.rb -+++ b/test/unit/method_matcher_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'mocha/method_matcher' - - class MethodMatcherTest < Test::Unit::TestCase -diff --git a/test/unit/mock_test.rb b/test/unit/mock_test.rb -index e04d7ec..f7f4aa1 100644 ---- a/test/unit/mock_test.rb -+++ b/test/unit/mock_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'mocha/mock' - require 'mocha/expectation_error' - require 'set' -diff --git a/test/unit/mockery_test.rb b/test/unit/mockery_test.rb -index db05ec2..cab0097 100644 ---- a/test/unit/mockery_test.rb -+++ b/test/unit/mockery_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'mocha/mockery' - require 'mocha/state_machine' - -diff --git a/test/unit/multiple_yields_test.rb b/test/unit/multiple_yields_test.rb -index 65724a8..e8bf62c 100644 ---- a/test/unit/multiple_yields_test.rb -+++ b/test/unit/multiple_yields_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - - require 'mocha/multiple_yields' - -diff --git a/test/unit/no_yields_test.rb b/test/unit/no_yields_test.rb -index 544d1ef..ee7c59b 100644 ---- a/test/unit/no_yields_test.rb -+++ b/test/unit/no_yields_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - - require 'mocha/no_yields' - -diff --git a/test/unit/object_inspect_test.rb b/test/unit/object_inspect_test.rb -index 56d84a9..38e7428 100644 ---- a/test/unit/object_inspect_test.rb -+++ b/test/unit/object_inspect_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'mocha/inspect' - require 'method_definer' - -diff --git a/test/unit/object_test.rb b/test/unit/object_test.rb -index 57262e4..5602e06 100644 ---- a/test/unit/object_test.rb -+++ b/test/unit/object_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'mocha/object' - require 'mocha/mockery' - require 'mocha/mock' -diff --git a/test/unit/parameter_matchers/all_of_test.rb b/test/unit/parameter_matchers/all_of_test.rb -index 14028f5..cb4aefa 100644 ---- a/test/unit/parameter_matchers/all_of_test.rb -+++ b/test/unit/parameter_matchers/all_of_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "..", "test_helper") -+require File.expand_path('../../../test_helper', __FILE__) - - require 'mocha/parameter_matchers/all_of' - require 'mocha/inspect' -diff --git a/test/unit/parameter_matchers/any_of_test.rb b/test/unit/parameter_matchers/any_of_test.rb -index 503d6dc..04af9ef 100644 ---- a/test/unit/parameter_matchers/any_of_test.rb -+++ b/test/unit/parameter_matchers/any_of_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "..", "test_helper") -+require File.expand_path('../../../test_helper', __FILE__) - - require 'mocha/parameter_matchers/any_of' - require 'mocha/inspect' -diff --git a/test/unit/parameter_matchers/anything_test.rb b/test/unit/parameter_matchers/anything_test.rb -index 42a88a1..f517e0d 100644 ---- a/test/unit/parameter_matchers/anything_test.rb -+++ b/test/unit/parameter_matchers/anything_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "..", "test_helper") -+require File.expand_path('../../../test_helper', __FILE__) - - require 'mocha/parameter_matchers/anything' - require 'mocha/inspect' -diff --git a/test/unit/parameter_matchers/equals_test.rb b/test/unit/parameter_matchers/equals_test.rb -index df1eb6e..e18df2c 100644 ---- a/test/unit/parameter_matchers/equals_test.rb -+++ b/test/unit/parameter_matchers/equals_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "..", "test_helper") -+require File.expand_path('../../../test_helper', __FILE__) - - require 'mocha/parameter_matchers/equals' - require 'mocha/inspect' -diff --git a/test/unit/parameter_matchers/has_entries_test.rb b/test/unit/parameter_matchers/has_entries_test.rb -index 181c9b2..df673c0 100644 ---- a/test/unit/parameter_matchers/has_entries_test.rb -+++ b/test/unit/parameter_matchers/has_entries_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "..", "test_helper") -+require File.expand_path('../../../test_helper', __FILE__) - - require 'mocha/parameter_matchers/has_entries' - require 'mocha/parameter_matchers/object' -diff --git a/test/unit/parameter_matchers/has_entry_test.rb b/test/unit/parameter_matchers/has_entry_test.rb -index 5d30ee1..2735c3d 100644 ---- a/test/unit/parameter_matchers/has_entry_test.rb -+++ b/test/unit/parameter_matchers/has_entry_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "..", "test_helper") -+require File.expand_path('../../../test_helper', __FILE__) - - require 'mocha/parameter_matchers/has_entry' - require 'mocha/parameter_matchers/object' -diff --git a/test/unit/parameter_matchers/has_key_test.rb b/test/unit/parameter_matchers/has_key_test.rb -index 76f4d05..90a452a 100644 ---- a/test/unit/parameter_matchers/has_key_test.rb -+++ b/test/unit/parameter_matchers/has_key_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "..", "test_helper") -+require File.expand_path('../../../test_helper', __FILE__) - - require 'mocha/parameter_matchers/has_key' - require 'mocha/parameter_matchers/object' -diff --git a/test/unit/parameter_matchers/has_value_test.rb b/test/unit/parameter_matchers/has_value_test.rb -index be5fec2..d7a9024 100644 ---- a/test/unit/parameter_matchers/has_value_test.rb -+++ b/test/unit/parameter_matchers/has_value_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "..", "test_helper") -+require File.expand_path('../../../test_helper', __FILE__) - - require 'mocha/parameter_matchers/has_value' - require 'mocha/parameter_matchers/object' -diff --git a/test/unit/parameter_matchers/includes_test.rb b/test/unit/parameter_matchers/includes_test.rb -index 6f4d1fa..2bca34c 100644 ---- a/test/unit/parameter_matchers/includes_test.rb -+++ b/test/unit/parameter_matchers/includes_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "..", "test_helper") -+require File.expand_path('../../../test_helper', __FILE__) - - require 'mocha/parameter_matchers/includes' - require 'mocha/inspect' -diff --git a/test/unit/parameter_matchers/instance_of_test.rb b/test/unit/parameter_matchers/instance_of_test.rb -index 415b79a..861cb85 100644 ---- a/test/unit/parameter_matchers/instance_of_test.rb -+++ b/test/unit/parameter_matchers/instance_of_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "..", "test_helper") -+require File.expand_path('../../../test_helper', __FILE__) - - require 'mocha/parameter_matchers/instance_of' - require 'mocha/inspect' -diff --git a/test/unit/parameter_matchers/is_a_test.rb b/test/unit/parameter_matchers/is_a_test.rb -index c9ef919..7904137 100644 ---- a/test/unit/parameter_matchers/is_a_test.rb -+++ b/test/unit/parameter_matchers/is_a_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "..", "test_helper") -+require File.expand_path('../../../test_helper', __FILE__) - - require 'mocha/parameter_matchers/is_a' - require 'mocha/inspect' -diff --git a/test/unit/parameter_matchers/kind_of_test.rb b/test/unit/parameter_matchers/kind_of_test.rb -index 1167e5c..1404fa8 100644 ---- a/test/unit/parameter_matchers/kind_of_test.rb -+++ b/test/unit/parameter_matchers/kind_of_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "..", "test_helper") -+require File.expand_path('../../../test_helper', __FILE__) - - require 'mocha/parameter_matchers/kind_of' - require 'mocha/inspect' -diff --git a/test/unit/parameter_matchers/not_test.rb b/test/unit/parameter_matchers/not_test.rb -index 4cb6790..21f50e2 100644 ---- a/test/unit/parameter_matchers/not_test.rb -+++ b/test/unit/parameter_matchers/not_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "..", "test_helper") -+require File.expand_path('../../../test_helper', __FILE__) - - require 'mocha/parameter_matchers/not' - require 'mocha/inspect' -diff --git a/test/unit/parameter_matchers/regexp_matches_test.rb b/test/unit/parameter_matchers/regexp_matches_test.rb -index 06022d9..f33e97d 100644 ---- a/test/unit/parameter_matchers/regexp_matches_test.rb -+++ b/test/unit/parameter_matchers/regexp_matches_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "..", "test_helper") -+require File.expand_path('../../../test_helper', __FILE__) - - require 'mocha/parameter_matchers/regexp_matches' - require 'mocha/inspect' -diff --git a/test/unit/parameter_matchers/responds_with_test.rb b/test/unit/parameter_matchers/responds_with_test.rb -index f32bf8b..7f5bf4e 100644 ---- a/test/unit/parameter_matchers/responds_with_test.rb -+++ b/test/unit/parameter_matchers/responds_with_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "..", "test_helper") -+require File.expand_path('../../../test_helper', __FILE__) - - require 'mocha/parameter_matchers/responds_with' - require 'mocha/inspect' -diff --git a/test/unit/parameter_matchers/yaml_equivalent_test.rb b/test/unit/parameter_matchers/yaml_equivalent_test.rb -index b163f30..8bc66e4 100644 ---- a/test/unit/parameter_matchers/yaml_equivalent_test.rb -+++ b/test/unit/parameter_matchers/yaml_equivalent_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "..", "test_helper") -+require File.expand_path('../../../test_helper', __FILE__) - - require 'mocha/parameter_matchers/yaml_equivalent' - require 'mocha/inspect' -diff --git a/test/unit/parameters_matcher_test.rb b/test/unit/parameters_matcher_test.rb -index 612805e..3048d30 100644 ---- a/test/unit/parameters_matcher_test.rb -+++ b/test/unit/parameters_matcher_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'mocha/parameters_matcher' - - class ParametersMatcherTest < Test::Unit::TestCase -diff --git a/test/unit/return_values_test.rb b/test/unit/return_values_test.rb -index 01ddfbc..dc61ca8 100644 ---- a/test/unit/return_values_test.rb -+++ b/test/unit/return_values_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - - require 'mocha/return_values' - -diff --git a/test/unit/sequence_test.rb b/test/unit/sequence_test.rb -index 544b3fe..8637b64 100644 ---- a/test/unit/sequence_test.rb -+++ b/test/unit/sequence_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'mocha/sequence' - require 'mocha/expectation' - -diff --git a/test/unit/single_return_value_test.rb b/test/unit/single_return_value_test.rb -index 9a94e09..7b4ff1b 100644 ---- a/test/unit/single_return_value_test.rb -+++ b/test/unit/single_return_value_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - - require 'mocha/single_return_value' - -diff --git a/test/unit/single_yield_test.rb b/test/unit/single_yield_test.rb -index 12bd0a2..deb08a4 100644 ---- a/test/unit/single_yield_test.rb -+++ b/test/unit/single_yield_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - - require 'mocha/single_yield' - -diff --git a/test/unit/state_machine_test.rb b/test/unit/state_machine_test.rb -index 4ccb229..c770921 100644 ---- a/test/unit/state_machine_test.rb -+++ b/test/unit/state_machine_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - - require 'mocha/state_machine' - -diff --git a/test/unit/string_inspect_test.rb b/test/unit/string_inspect_test.rb -index 43b9c4e..6562015 100644 ---- a/test/unit/string_inspect_test.rb -+++ b/test/unit/string_inspect_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - require 'mocha/inspect' - - class StringInspectTest < Test::Unit::TestCase -diff --git a/test/unit/yield_parameters_test.rb b/test/unit/yield_parameters_test.rb -index 4e93f13..a148058 100644 ---- a/test/unit/yield_parameters_test.rb -+++ b/test/unit/yield_parameters_test.rb -@@ -1,4 +1,4 @@ --require File.join(File.dirname(__FILE__), "..", "test_helper") -+require File.expand_path('../../test_helper', __FILE__) - - require 'mocha/yield_parameters' - require 'mocha/no_yields' diff --git a/dev-ruby/mocha/mocha-0.9.8-r2.ebuild b/dev-ruby/mocha/mocha-0.9.8-r2.ebuild index f97214843797..c52fa6cc906e 100644 --- a/dev-ruby/mocha/mocha-0.9.8-r2.ebuild +++ b/dev-ruby/mocha/mocha-0.9.8-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mocha/mocha-0.9.8-r2.ebuild,v 1.7 2010/07/29 02:15:32 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mocha/mocha-0.9.8-r2.ebuild,v 1.8 2010/07/29 02:23:56 flameeyes Exp $ EAPI=2 USE_RUBY="ruby18 ree18 ruby19 jruby" @@ -15,6 +15,9 @@ inherit ruby-fakegem DESCRIPTION="A Ruby library for mocking and stubbing using a syntax like that of JMock, and SchMock" HOMEPAGE="http://mocha.rubyforge.org/" +SRC_URI="${SRC_URI} + http://dev.gentoo.org/~flameeyes/patches/${PN}/${P}+ruby-1.9.2.patch.bz2" + LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" @@ -24,7 +27,7 @@ ruby_add_bdepend " test? ( virtual/ruby-test-unit ) doc? ( dev-ruby/coderay )" -RUBY_PATCHES=( "${FILESDIR}"/${P}+ruby-1.9.2.patch ) +RUBY_PATCHES=( "${DISTDIR}"/${P}+ruby-1.9.2.patch.bz2 ) all_ruby_compile() { all_fakegem_compile |