commit: 6516c32a9ea7f7e064cce01b0c1f7de56bee0bcb Author: Sven Wegener <swegener <AT> gentoo <DOT> org> AuthorDate: Tue May 16 07:10:14 2023 +0000 Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> CommitDate: Tue May 16 07:20:34 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6516c32a
dev-ruby/racc: use ruby_get_use_implementations() This skips any unsupported implementation from USE_RUBY Signed-off-by: Sven Wegener <swegener <AT> gentoo.org> dev-ruby/racc/racc-1.6.2.ebuild | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/dev-ruby/racc/racc-1.6.2.ebuild b/dev-ruby/racc/racc-1.6.2.ebuild index a568aa1d0569..8168b42f03b9 100644 --- a/dev-ruby/racc/racc-1.6.2.ebuild +++ b/dev-ruby/racc/racc-1.6.2.ebuild @@ -40,12 +40,10 @@ all_ruby_prepare() { sed -i -e '/ExtensionTask/,/^ end/ s:^:#:' Rakefile || die # ...which means we need to generate the parser file here - for ruby in ${USE_RUBY} ; do - if use ruby_targets_${ruby} ; then - if has_version -b "virtual/rubygems[ruby_targets_${ruby}(-)]" && has_version -b "dev-ruby/rake[ruby_targets_${ruby}(-)]" ; then - ${ruby} -S rake lib/racc/parser-text.rb || die - break - fi + for ruby in $(ruby_get_use_implementations) ; do + if has_version -b "virtual/rubygems[ruby_targets_${ruby}(-)]" && has_version -b "dev-ruby/rake[ruby_targets_${ruby}(-)]" ; then + ${ruby} -S rake lib/racc/parser-text.rb || die + break fi done