commit:     b65cd3e6b216d48568cb9804fb232cd5acbaf8d5
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 10 07:44:33 2016 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Jan 10 07:44:33 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b65cd3e6

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

 dev-ruby/nokogiri/nokogiri-1.6.7.1.ebuild | 9 +++++----
 1 file 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 b31f32e..ad87548 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.

Reply via email to