commit:     6936ca62a41e0eed1bcde62bde12d669170be35c
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 12 07:13:29 2022 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Mar 12 07:21:19 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6936ca62

eclass/ruby-utils.eclass: add ruby31

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 eclass/ruby-utils.eclass | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/eclass/ruby-utils.eclass b/eclass/ruby-utils.eclass
index 2506aee25541..d871ee74b411 100644
--- a/eclass/ruby-utils.eclass
+++ b/eclass/ruby-utils.eclass
@@ -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"

Reply via email to