summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkonsolebox <konsolebox@gmail.com>2023-07-14 09:33:44 +0100
committerSam James <sam@gentoo.org>2023-07-17 22:18:04 +0100
commit4ba2e70baded5cbcabbfd03d7440d677cd955f23 (patch)
treef2a8adae6eaa26bbf019501cc32d3542251f37b0 /eclass/ruby-utils.eclass
parentnet-fs/samba: Stabilize 4.18.4 amd64, #910452 (diff)
downloadgentoo-4ba2e70baded5cbcabbfd03d7440d677cd955f23.tar.gz
gentoo-4ba2e70baded5cbcabbfd03d7440d677cd955f23.tar.bz2
gentoo-4ba2e70baded5cbcabbfd03d7440d677cd955f23.zip
ruby-utils.eclass: Simplify _ruby_implementation_depend
Closes: https://bugs.gentoo.org/909529 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/ruby-utils.eclass')
-rw-r--r--eclass/ruby-utils.eclass52
1 files changed, 2 insertions, 50 deletions
diff --git a/eclass/ruby-utils.eclass b/eclass/ruby-utils.eclass
index c4b6f1502f8a..8a2b7720c951 100644
--- a/eclass/ruby-utils.eclass
+++ b/eclass/ruby-utils.eclass
@@ -44,57 +44,9 @@ _ruby_implementation_depend() {
local rubyslot=
case $1 in
- ruby18)
+ ruby1[89]|ruby2[0-7]|ruby3[0-2])
rubypn="dev-lang/ruby"
- rubyslot=":1.8"
- ;;
- ruby19)
- rubypn="dev-lang/ruby"
- rubyslot=":1.9"
- ;;
- ruby20)
- rubypn="dev-lang/ruby"
- rubyslot=":2.0"
- ;;
- ruby21)
- rubypn="dev-lang/ruby"
- rubyslot=":2.1"
- ;;
- ruby22)
- rubypn="dev-lang/ruby"
- rubyslot=":2.2"
- ;;
- ruby23)
- rubypn="dev-lang/ruby"
- rubyslot=":2.3"
- ;;
- ruby24)
- rubypn="dev-lang/ruby"
- rubyslot=":2.4"
- ;;
- ruby25)
- rubypn="dev-lang/ruby"
- rubyslot=":2.5"
- ;;
- ruby26)
- rubypn="dev-lang/ruby"
- rubyslot=":2.6"
- ;;
- ruby27)
- rubypn="dev-lang/ruby"
- rubyslot=":2.7"
- ;;
- ruby30)
- rubypn="dev-lang/ruby"
- rubyslot=":3.0"
- ;;
- ruby31)
- rubypn="dev-lang/ruby"
- rubyslot=":3.1"
- ;;
- ruby32)
- rubypn="dev-lang/ruby"
- rubyslot=":3.2"
+ rubyslot=":${1:4:1}.${1:5}"
;;
ree18)
rubypn="dev-lang/ruby-enterprise"