diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-12-26 10:32:37 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-12-26 20:16:53 +0100 |
commit | 57ad572bf20246ae2b7609e9b48c923ed54340f4 (patch) | |
tree | 1902959517d5d452a984df918f57275967c3d7b7 /dev-ruby/minitest/minitest-4.7.5-r2.ebuild | |
parent | dev-ruby/did_you_mean: add 1.1.0 for ruby 2.4 (diff) | |
download | gentoo-57ad572bf20246ae2b7609e9b48c923ed54340f4.tar.gz gentoo-57ad572bf20246ae2b7609e9b48c923ed54340f4.tar.bz2 gentoo-57ad572bf20246ae2b7609e9b48c923ed54340f4.zip |
dev-ruby/minitest: add ruby24
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-ruby/minitest/minitest-4.7.5-r2.ebuild')
-rw-r--r-- | dev-ruby/minitest/minitest-4.7.5-r2.ebuild | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/dev-ruby/minitest/minitest-4.7.5-r2.ebuild b/dev-ruby/minitest/minitest-4.7.5-r2.ebuild index 1a6d448001dc..a1f2ece7d860 100644 --- a/dev-ruby/minitest/minitest-4.7.5-r2.ebuild +++ b/dev-ruby/minitest/minitest-4.7.5-r2.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=5 -USE_RUBY="ruby20 ruby21 ruby22 ruby23" +USE_RUBY="ruby20 ruby21 ruby22 ruby23 ruby24" RUBY_FAKEGEM_RECIPE_DOC="rdoc" @@ -20,6 +20,14 @@ SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE="doc test" +each_ruby_prepare() { + case ${RUBY} in + *ruby24) + sed -i -e 's/Fixnum/Integer/' test/minitest/test_minitest_spec.rb || die + ;; + esac +} + each_ruby_test() { ${RUBY} -Ilib:bin:test:. -e 'Dir["test/**/test_*.rb"].each{|f| require f}' || die } |