eclass/ada.eclass: Better fix for empty unsupported
authorTupone Alfredo <tupone@gentoo.org>
Thu, 5 Sep 2019 07:08:06 +0000 (09:08 +0200)
committerTupone Alfredo <tupone@gentoo.org>
Thu, 5 Sep 2019 07:09:49 +0000 (09:09 +0200)
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
eclass/ada.eclass

index 35ad080761dbe4cc2743c811123259fac6658cfb..338b73bab86bcbfdc38ef62e250b058783e98ff4 100644 (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