diff options
author | Sven Wegener <swegener@gentoo.org> | 2023-05-16 09:10:14 +0200 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2023-05-16 09:20:34 +0200 |
commit | 6516c32a9ea7f7e064cce01b0c1f7de56bee0bcb (patch) | |
tree | 7038030717a87ceff3a14716486ca8d57de7585a /dev-ruby/racc | |
parent | sys-auth/elogind: fix musl+selinux build (diff) | |
download | gentoo-6516c32a9ea7f7e064cce01b0c1f7de56bee0bcb.tar.gz gentoo-6516c32a9ea7f7e064cce01b0c1f7de56bee0bcb.tar.bz2 gentoo-6516c32a9ea7f7e064cce01b0c1f7de56bee0bcb.zip |
dev-ruby/racc: use ruby_get_use_implementations()
This skips any unsupported implementation from USE_RUBY
Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'dev-ruby/racc')
-rw-r--r-- | dev-ruby/racc/racc-1.6.2.ebuild | 10 |
1 files 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 |