diff options
author | Hans de Graaff <graaff@gentoo.org> | 2019-02-04 20:54:41 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2019-02-04 21:02:23 +0100 |
commit | af6663f780b22e805945640e3103875b41020a7e (patch) | |
tree | f45f0546a41154aa8b87292538b46009d81c5616 /dev-ruby/bourne/bourne-1.6.0.ebuild | |
parent | app-emulation/diskimage-builder: 2.20.0 bup (diff) | |
download | gentoo-af6663f780b22e805945640e3103875b41020a7e.tar.gz gentoo-af6663f780b22e805945640e3103875b41020a7e.tar.bz2 gentoo-af6663f780b22e805945640e3103875b41020a7e.zip |
dev-ruby/bourne: add ruby25, ruby26
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-ruby/bourne/bourne-1.6.0.ebuild')
-rw-r--r-- | dev-ruby/bourne/bourne-1.6.0.ebuild | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/dev-ruby/bourne/bourne-1.6.0.ebuild b/dev-ruby/bourne/bourne-1.6.0.ebuild index 2e540174232c..51ad07639436 100644 --- a/dev-ruby/bourne/bourne-1.6.0.ebuild +++ b/dev-ruby/bourne/bourne-1.6.0.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=5 -USE_RUBY="ruby21 ruby22 ruby23 ruby24" +USE_RUBY="ruby23 ruby24 ruby25 ruby26" RUBY_FAKEGEM_TASK_DOC="" RUBY_FAKEGEM_EXTRADOC="README.md" @@ -21,11 +21,15 @@ SLOT="0" KEYWORDS="~amd64 ~arm ~x86" IUSE="" -ruby_add_rdepend ">=dev-ruby/mocha-1.1:1.0" +ruby_add_rdepend ">=dev-ruby/mocha-1.5.0:1.0" ruby_add_bdepend "test? ( dev-ruby/test-unit:2 )" all_ruby_prepare() { sed -i -e '/git ls-files/d' "${RUBY_FAKEGEM_GEMSPEC}" || die sed -i -e '/bundler/d' Rakefile || die + + # Fix tests to work with mocha 1.5.0 or newer where reset_instance is gone + sed -i -e '/reset_instance/ s:^:#:' test/unit/*received_test.rb || die + sed -i -e 's/Mockery.reset_instance/mocha_teardown/' test/unit/mockery_test.rb || die } |