eclass/ruby-utils.eclass: add ruby31

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2022-03-12 08:13:29 +01:00
parent ed3e472168
commit 6936ca62a4

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: ruby-utils.eclass
@@ -36,7 +36,7 @@ if [[ ! ${_RUBY_UTILS} ]]; then
RUBY_TARGETS_PREFERENCE="ruby26 "
# All other active ruby targets
RUBY_TARGETS_PREFERENCE+="ruby27 ruby30"
RUBY_TARGETS_PREFERENCE+="ruby27 ruby30 ruby31"
_ruby_implementation_depend() {
@@ -88,6 +88,10 @@ _ruby_implementation_depend() {
rubypn="dev-lang/ruby"
rubyslot=":3.0"
;;
ruby31)
rubypn="dev-lang/ruby"
rubyslot=":3.1"
;;
ree18)
rubypn="dev-lang/ruby-enterprise"
rubyslot=":1.8"