diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-01-10 08:44:33 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-01-10 08:44:33 +0100 |
commit | b65cd3e6b216d48568cb9804fb232cd5acbaf8d5 (patch) | |
tree | 7ac48151f984c53a92f90f82e9834fa82566d580 /dev-ruby | |
parent | 02fee8744b4ac45cb3fd1fce7232956b3670a7da (diff) | |
download | gentoo-b65cd3e6b216d48568cb9804fb232cd5acbaf8d5.tar.gz gentoo-b65cd3e6b216d48568cb9804fb232cd5acbaf8d5.tar.xz |
dev-ruby/nokogiri: add ruby23
Run tests directly so the dependency on dev-ruby/rake-compiler
can be avoided. This was leading to circular test dependencies.
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/nokogiri/nokogiri-1.6.7.1.ebuild | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dev-ruby/nokogiri/nokogiri-1.6.7.1.ebuild b/dev-ruby/nokogiri/nokogiri-1.6.7.1.ebuild index b31f32e7566..ad875488100 100644 --- a/dev-ruby/nokogiri/nokogiri-1.6.7.1.ebuild +++ b/dev-ruby/nokogiri/nokogiri-1.6.7.1.ebuild @@ -4,7 +4,7 @@ EAPI=5 -USE_RUBY="ruby20 ruby21 ruby22" +USE_RUBY="ruby20 ruby21 ruby22 ruby23" RUBY_FAKEGEM_RECIPE_DOC="rdoc" RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc CHANGELOG.ja.rdoc README.md ROADMAP.md STANDARD_RESPONSES.md" @@ -31,11 +31,8 @@ DEPEND="${DEPEND} dev-libs/libxslt virtual/libiconv" -# The tests require _minitest_, not the virtual; what is shipped with -# Ruby 1.9 is *not* enough, unfortunately ruby_add_bdepend " dev-ruby/hoe - dev-ruby/rake-compiler dev-ruby/rexical dev-ruby/rdoc dev-ruby/racc @@ -83,6 +80,10 @@ each_ruby_compile() { cp -l ext/${PN}/${PN}$(get_modname) lib/${PN}/ || die } +each_ruby_test() { + ${RUBY} -Ilib:.:test -e 'Dir["test/**/test_*.rb"].each {|f| require f}' || die +} + each_ruby_install() { # Clean up "ext" directory before installing it. nokogumbo expects # the header files and shared object to be in ext. |