summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2019-09-05 09:08:06 +0200
committerTupone Alfredo <tupone@gentoo.org>2019-09-05 09:09:49 +0200
commitfce1d2bda04ffbe69e1834c6bcf74417f2bb72e3 (patch)
tree885f2aed91415f19ee64ee177063f836703d84fd /eclass/ada.eclass
parentnet-print/cups-filters: Fixed build against app-text/qpdf-9.0.0 (diff)
downloadgentoo-fce1d2bda04ffbe69e1834c6bcf74417f2bb72e3.tar.gz
gentoo-fce1d2bda04ffbe69e1834c6bcf74417f2bb72e3.tar.bz2
gentoo-fce1d2bda04ffbe69e1834c6bcf74417f2bb72e3.zip
eclass/ada.eclass: Better fix for empty unsupported
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'eclass/ada.eclass')
-rw-r--r--eclass/ada.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/ada.eclass b/eclass/ada.eclass
index 35ad080761db..338b73bab86b 100644
--- a/eclass/ada.eclass
+++ b/eclass/ada.eclass
@@ -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