eclass/ada.eclass: Better fix for empty unsupported

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Tupone Alfredo
2019-09-05 09:09:49 +02:00
parent a65b125b85
commit fce1d2bda0
+5 -1
View File
@@ -258,10 +258,14 @@ _ada_single_set_globals() {
local unflags=( "${_ADA_UNSUPPORTED_IMPLS[@]/#/-ada_target_}" )
local allflags=( ${flags[@]} ${unflags[@]} )
local optflags=${allflags[@]/%/(-)?}
local optflags=${flags[@]/%/(-)?}
IUSE="${allflags[*]}"
if [[ ${#_ADA_UNSUPPORTED_IMPLS[@]} -gt 0 ]]; then
optflags+=,${unflags[@]/%/(-)}
fi
local deps requse usedep
if [[ ${#_ADA_SUPPORTED_IMPLS[@]} -eq 1 ]]; then
# There is only one supported implementation; set IUSE and other