We only need to use rake when we also run tests. This fixes
a circular dependency between rake and rubygems that can now be
avoided with FEATURES=-test.
Closes: https://bugs.gentoo.org/703868
Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
sed -i -e '/test_realworld_default_gem/askip "gentoo"' test/rubygems/test_require.rb || die
# Update manifest after changing files to avoid a test failure
- rake update_manifest || die
+ if use test; then
+ rake update_manifest || die
+ fi
}
each_ruby_compile() {