diff --git a/dev-ruby/net-scp/net-scp-4.0.0.ebuild b/dev-ruby/net-scp/net-scp-4.0.0.ebuild index abc476035535f..4472f255fba42 100644 --- a/dev-ruby/net-scp/net-scp-4.0.0.ebuild +++ b/dev-ruby/net-scp/net-scp-4.0.0.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31 ruby32" +USE_RUBY="ruby31 ruby32 ruby33" RUBY_FAKEGEM_EXTRADOC="CHANGES.txt README.rdoc" @@ -26,7 +26,8 @@ RESTRICT="!test? ( test )" ruby_add_bdepend " doc? ( dev-ruby/net-ssh:7 ) test? ( - dev-ruby/mocha:1.0 + dev-ruby/mocha:2 + dev-ruby/test-unit )" ruby_add_rdepend "dev-ruby/net-ssh:7" @@ -35,6 +36,9 @@ all_ruby_prepare() { sed -e "s:_relative ': './:" \ -e 's/git ls-files -z/find -print0/' \ -i ${RUBY_FAKEGEM_GEMSPEC} || die + + sed -e '/mocha/ s/setup/test_unit/' \ + -i test/common.rb || die } each_ruby_test() {