Using 2-style USE dependencies on packages not having the flag
in question is forbidden by PMS.

Signed-off-by: Michał Górny <mgo...@gentoo.org>
---
 eclass/ruby-ng.eclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index db701d81f4fc..c2b9442ef489 100644
--- a/eclass/ruby-ng.eclass
+++ b/eclass/ruby-ng.eclass
@@ -137,7 +137,7 @@ ruby_samelib() {
        local res=
        for _ruby_implementation in $(_ruby_get_all_impls); do
                has -${_ruby_implementation} $@ || \
-                       res="${res}ruby_targets_${_ruby_implementation}?,"
+                       res="${res}ruby_targets_${_ruby_implementation}?(-),"
        done
 
        echo "[${res%,}]"
@@ -151,9 +151,9 @@ _ruby_atoms_samelib_generic() {
                        "||" | "(" | ")" | *"?")
                                echo "${token}" ;;
                        *])
-                               echo "${token%[*}[RUBYTARGET,${token/*[}" ;;
+                               echo "${token%[*}[RUBYTARGET(-),${token/*[}" ;;
                        *)
-                               echo "${token}[RUBYTARGET]" ;;
+                               echo "${token}[RUBYTARGET(-)]" ;;
                esac
        done
        echo ")"
-- 
2.24.1


Reply via email to