mirror of
https://github.com/flatcar/scripts.git
synced 2026-02-08 17:21:39 +01:00
eclass/ruby-utils: Sync with Gentoo
It's from Gentoo commit 28010e9c48394e664cd1087b797ee86ae1fb857c. Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
parent
ad9f74a542
commit
f98e69ae7a
@ -33,17 +33,17 @@ esac
|
||||
# provide for a better first installation experience.
|
||||
|
||||
# All stable RUBY_TARGETS
|
||||
RUBY_TARGETS_PREFERENCE="ruby32 "
|
||||
RUBY_TARGETS_PREFERENCE="ruby32 ruby33 "
|
||||
|
||||
# All other active ruby targets
|
||||
RUBY_TARGETS_PREFERENCE+="ruby33 ruby34"
|
||||
RUBY_TARGETS_PREFERENCE+="ruby34 ruby40"
|
||||
|
||||
_ruby_implementation_depend() {
|
||||
local rubypn=
|
||||
local rubyslot=
|
||||
|
||||
case $1 in
|
||||
ruby1[89]|ruby2[0-7]|ruby3[0-4])
|
||||
ruby1[89]|ruby2[0-7]|ruby3[0-4]|ruby40)
|
||||
rubypn="dev-lang/ruby"
|
||||
rubyslot=":${1:4:1}.${1:5}"
|
||||
;;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user