summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-06-14 22:38:12 +0100
committerSam James <sam@gentoo.org>2023-06-15 22:13:50 +0100
commit5f7ad4a0e3ddd944c094ebc9719fdd5982ea76f6 (patch)
tree7aa6ffe39806f3a89c2fe96959e68ddf3506e19a /eclass
parentruby-ng.eclass: use shopt directly, not via estack.eclass (diff)
downloadgentoo-5f7ad4a0e3ddd944c094ebc9719fdd5982ea76f6.tar.gz
gentoo-5f7ad4a0e3ddd944c094ebc9719fdd5982ea76f6.tar.bz2
gentoo-5f7ad4a0e3ddd944c094ebc9719fdd5982ea76f6.zip
ruby-ng.eclass: add _ruby_get_use_targets comment
I don't see us adding a non-ruby* target any time soon so this should be fine. Closes: https://github.com/gentoo/gentoo/pull/31428 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ruby-ng.eclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index 2f14c22ace37..5cea44101593 100644
--- a/eclass/ruby-ng.eclass
+++ b/eclass/ruby-ng.eclass
@@ -105,6 +105,8 @@ ruby_implementation_depend() {
_ruby_get_all_impls() {
_RUBY_GET_ALL_IMPLS=()
+ # XXX: Please update _ruby_get_use_targets if adding a non-'ruby*'
+ # target.
local i found_valid_impl
for i in ${USE_RUBY}; do
case ${i} in
@@ -350,6 +352,7 @@ _ruby_get_use_targets() {
_ruby_set_globals_invalidate_if_stale
local impls="${_RUBY_GET_ALL_IMPLS[@]}"
+ # XXX: This assumes all targets begin with 'ruby'.
_RUBY_GET_USE_TARGETS="${impls//ruby/ruby_targets_ruby}"
}