Skip to content

Commit

Permalink
dev-ruby/nokogiri: add ruby23
Browse files Browse the repository at this point in the history
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
  • Loading branch information
graaff committed Jan 10, 2016
1 parent 02fee87 commit b65cd3e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dev-ruby/nokogiri/nokogiri-1.6.7.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit b65cd3e

Please sign in to comment.