summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-12-30 20:02:42 +0100
committerMichał Górny <mgorny@gentoo.org>2020-01-05 11:04:54 +0100
commit5f85ec1c9f3b5a5eaa84068d010282f4677c9606 (patch)
tree1a652b37bc75b595de1c27a0a475d945a4090b9d /eclass/ruby-ng.eclass
parentcmake.eclass: Fix fatal typo (diff)
downloadgentoo-5f85ec1c9f3b5a5eaa84068d010282f4677c9606.tar.gz
gentoo-5f85ec1c9f3b5a5eaa84068d010282f4677c9606.tar.bz2
gentoo-5f85ec1c9f3b5a5eaa84068d010282f4677c9606.zip
ruby-ng.eclass: Include (-) in RUBY_TARGETS USE-dependencies
Using 2-style USE dependencies on packages not having the flag in question is forbidden by PMS. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/ruby-ng.eclass')
-rw-r--r--eclass/ruby-ng.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index db701d81f4fc..f92547b49a9f 100644
--- a/eclass/ruby-ng.eclass
+++ b/eclass/ruby-ng.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @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 ")"