summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-03-12 08:13:29 +0100
committerHans de Graaff <graaff@gentoo.org>2022-03-12 08:21:19 +0100
commit6936ca62a41e0eed1bcde62bde12d669170be35c (patch)
treedefd8a23f6a38a2711799af9f01d9997163acf4c
parenteclass/ruby-fakegem.eclass: drop obsolete psych blocker (diff)
downloadgentoo-6936ca62a41e0eed1bcde62bde12d669170be35c.tar.gz
gentoo-6936ca62a41e0eed1bcde62bde12d669170be35c.tar.bz2
gentoo-6936ca62a41e0eed1bcde62bde12d669170be35c.zip
eclass/ruby-utils.eclass: add ruby31
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r--eclass/ruby-utils.eclass8
1 files 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"