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
This commit is contained in:
Hans de Graaff
2016-01-10 08:44:33 +01:00
parent 02fee8744b
commit b65cd3e6b2

View File

@@ -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.