diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-08-05 10:04:32 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-08-05 10:16:31 +0200 |
commit | 8fd2f6b5a873f21ee882f2c060acb038b0475900 (patch) | |
tree | b71e2c13a316ce4b654c69c34dff651061c13c98 /dev-ruby/rdoc | |
parent | dev-ruby/hpricot: add explicit rdoc build dependency (diff) | |
download | gentoo-8fd2f6b5a873f21ee882f2c060acb038b0475900.tar.gz gentoo-8fd2f6b5a873f21ee882f2c060acb038b0475900.tar.bz2 gentoo-8fd2f6b5a873f21ee882f2c060acb038b0475900.zip |
dev-ruby/rdoc: fix tests with json 2.x installed
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby/rdoc')
-rw-r--r-- | dev-ruby/rdoc/rdoc-4.2.2.ebuild | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/dev-ruby/rdoc/rdoc-4.2.2.ebuild b/dev-ruby/rdoc/rdoc-4.2.2.ebuild index c93cada649a4..1b3a999dadc5 100644 --- a/dev-ruby/rdoc/rdoc-4.2.2.ebuild +++ b/dev-ruby/rdoc/rdoc-4.2.2.ebuild @@ -27,7 +27,7 @@ ruby_add_bdepend " >=dev-ruby/minitest-5.8:5 )" -ruby_add_rdepend "=dev-ruby/json-1* >=dev-ruby/json-1.4" +ruby_add_rdepend ">=dev-ruby/json-1.4:0" all_ruby_prepare() { # Other packages also have use for a nonexistent directory, bug 321059 @@ -47,9 +47,6 @@ all_ruby_prepare() { # Remove test depending on FEATURES=userpriv, bug 361959 sed -i -e '/def test_check_files/,/^ end/ s:^:#:' test/test_rdoc_options.rb || die - # Make sure we get the expected version of minitest. - #echo 'gem "minitest", "~> 5.8"' > test/test_0000.rb || die - # Remove tests for code that is not included and not listed in Manifest.txt rm -f test/test_rdoc_i18n_{locale,text}.rb \ test/test_rdoc_generator_pot* || die @@ -72,7 +69,7 @@ each_ruby_compile() { } each_ruby_test() { - ${RUBY} -Ilib:. -e 'Dir["test/test_*.rb"].each{|f| require f}' || die + ${RUBY} -Ilib:. -e 'gem "json", "~>1.4"; Dir["test/test_*.rb"].each{|f| require f}' || die } all_ruby_install() { |