summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaohiro Aota <naota@gentoo.org>2023-11-29 12:05:38 +0900
committerNaohiro Aota <naota@gentoo.org>2023-11-29 14:06:29 +0900
commitc75fbe2daccad257c9beed1a98dc14a539c3f80f (patch)
tree8b459c2031995044d617226465a1dc261ab1d635 /net-misc/mikutter
parentdev-libs/libei: Stabilize 1.1.0 x86, #916441 (diff)
downloadgentoo-c75fbe2daccad257c9beed1a98dc14a539c3f80f.tar.gz
gentoo-c75fbe2daccad257c9beed1a98dc14a539c3f80f.tar.bz2
gentoo-c75fbe2daccad257c9beed1a98dc14a539c3f80f.zip
net-misc/mikutter: use RUBY_TARGETS_PREFERENCE to choose a ruby variant
USE_RUBY may contain already obsolete ruby variant. Instead, we can use RUBY_TARGETS_PREFERENCE to select existing supported one. Closes: https://bugs.gentoo.org/914717 Signed-off-by: Naohiro Aota <naota@gentoo.org>
Diffstat (limited to 'net-misc/mikutter')
-rw-r--r--net-misc/mikutter/mikutter-5.0.4.ebuild11
-rw-r--r--net-misc/mikutter/mikutter-9999.ebuild11
2 files changed, 10 insertions, 12 deletions
diff --git a/net-misc/mikutter/mikutter-5.0.4.ebuild b/net-misc/mikutter/mikutter-5.0.4.ebuild
index c09e571b2a2b..2744c003d1d1 100644
--- a/net-misc/mikutter/mikutter-5.0.4.ebuild
+++ b/net-misc/mikutter/mikutter-5.0.4.ebuild
@@ -68,12 +68,11 @@ all_ruby_unpack() {
}
all_ruby_install() {
- local rubyversion
- local r
+ local ruby
- for r in $USE_RUBY; do
- if use ruby_targets_${r}; then
- rubyversion=${r}
+ for ruby in ${RUBY_TARGETS_PREFERENCE}; do
+ if use ruby_targets_${ruby}; then
+ break
fi
done
@@ -81,7 +80,7 @@ all_ruby_install() {
doexe mikutter.rb
insinto /usr/share/mikutter
doins -r core plugin
- sed -e "s/ruby19/${rubyversion}/" "${FILESDIR}"/mikutter \
+ sed -e "s/ruby19/${ruby}/" "${FILESDIR}"/mikutter \
| newbin - mikutter
dodoc README
make_desktop_entry mikutter Mikutter \
diff --git a/net-misc/mikutter/mikutter-9999.ebuild b/net-misc/mikutter/mikutter-9999.ebuild
index c09e571b2a2b..2744c003d1d1 100644
--- a/net-misc/mikutter/mikutter-9999.ebuild
+++ b/net-misc/mikutter/mikutter-9999.ebuild
@@ -68,12 +68,11 @@ all_ruby_unpack() {
}
all_ruby_install() {
- local rubyversion
- local r
+ local ruby
- for r in $USE_RUBY; do
- if use ruby_targets_${r}; then
- rubyversion=${r}
+ for ruby in ${RUBY_TARGETS_PREFERENCE}; do
+ if use ruby_targets_${ruby}; then
+ break
fi
done
@@ -81,7 +80,7 @@ all_ruby_install() {
doexe mikutter.rb
insinto /usr/share/mikutter
doins -r core plugin
- sed -e "s/ruby19/${rubyversion}/" "${FILESDIR}"/mikutter \
+ sed -e "s/ruby19/${ruby}/" "${FILESDIR}"/mikutter \
| newbin - mikutter
dodoc README
make_desktop_entry mikutter Mikutter \