eclass/ruby-utils: Sync with Gentoo

It's from Gentoo commit 66ce0ab3bae70f64c89489ad2ccb05a560eff96f.
This commit is contained in:
Flatcar Buildbot 2025-01-13 07:08:31 +00:00 committed by Krzesimir Nowak
parent 4a8830360f
commit 4d814b9c5d

View File

@ -36,14 +36,14 @@ esac
RUBY_TARGETS_PREFERENCE="ruby32 ruby31 " RUBY_TARGETS_PREFERENCE="ruby32 ruby31 "
# All other active ruby targets # All other active ruby targets
RUBY_TARGETS_PREFERENCE+="ruby33" RUBY_TARGETS_PREFERENCE+="ruby33 ruby34"
_ruby_implementation_depend() { _ruby_implementation_depend() {
local rubypn= local rubypn=
local rubyslot= local rubyslot=
case $1 in case $1 in
ruby1[89]|ruby2[0-7]|ruby3[0-3]) ruby1[89]|ruby2[0-7]|ruby3[0-4])
rubypn="dev-lang/ruby" rubypn="dev-lang/ruby"
rubyslot=":${1:4:1}.${1:5}" rubyslot=":${1:4:1}.${1:5}"
;; ;;