transition to ruby30

This commit is contained in:
Rick Farina (Zero_Chaos) 2023-03-17 14:33:56 -04:00
parent 444f38634a
commit 9ef5524a8c
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 6 additions and 0 deletions

View file

@ -43,6 +43,8 @@ PORTAGE_IO_NICENESS="ionice -c 3 -p \${PID}"
#tslib causes circular deps with libsdl2
USE="${INPUT_USE} X abi_x86_32 adns blake2 caps -consolekit curl elogind fbcon gles2 gps lm-sensors lm_sensors lto lua lvm lz4 lzip lzma lzo networkmanager oss pentoo-full perl pgo pulseaudio python ruby samba sqlite subversion verify-sig vdpau vaapi vulkan wayland xattr xinerama x265 zstd"
#remove ruby 2.7 a little early
USE="${USE} -ruby_targets_ruby27"
#ease python upgrade
#USE="${USE} -python_targets_python2_7 python_targets_python3_10 python_targets_python3_11"

View file

@ -108,6 +108,10 @@ set_java() {
}
set_ruby() {
if portageq has_version / dev-lang/ruby:3.0; then
eselect ruby set ruby30
return 0
fi
if portageq has_version / dev-lang/ruby:2.7; then
eselect ruby set ruby27
return 0