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>
This commit is contained in:
Sam James
2023-06-14 22:38:12 +01:00
parent 8478835a7f
commit 5f7ad4a0e3

View File

@@ -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}"
}