summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-04-11 22:36:57 +0200
committerSam James <sam@gentoo.org>2021-04-11 21:00:02 +0000
commit12b96919c87fe9391c5ed4afb87838f6981c4d3d (patch)
tree77175e429f735f4f5e0705f6847eee937544c552 /eclass/flag-o-matic.eclass
parentautotools.eclass: more case-style changes for consistency (diff)
downloadgentoo-12b96919c87fe9391c5ed4afb87838f6981c4d3d.tar.gz
gentoo-12b96919c87fe9391c5ed4afb87838f6981c4d3d.tar.bz2
gentoo-12b96919c87fe9391c5ed4afb87838f6981c4d3d.zip
flag-o-matic.eclass: SUPPORTED_EAPIS: 5,6,7; drop eutils, multilib
- eutils was only used for eqawarn in old EAPI - multilib usage unknown, but is inherited by toolchain-funcs anyway Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass13
1 files changed, 11 insertions, 2 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 20ee39d98bad..b2510ec56009 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -1,18 +1,27 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: flag-o-matic.eclass
# @MAINTAINER:
# toolchain@gentoo.org
+# @SUPPORTED_EAPIS: 5 6 7
# @BLURB: common functions to manipulate and query toolchain flags
# @DESCRIPTION:
# This eclass contains a suite of functions to help developers sanely
# and safely manage toolchain flags in their builds.
+case ${EAPI:-0} in
+ 0|1|2|3|4) die "flag-o-matic.eclass: EAPI ${EAPI} is too old." ;;
+ 5|6|7) ;;
+ *) die "EAPI ${EAPI} is not supported by flag-o-matic.eclass." ;;
+esac
+
if [[ -z ${_FLAG_O_MATIC_ECLASS} ]]; then
_FLAG_O_MATIC_ECLASS=1
-inherit eutils toolchain-funcs multilib
+inherit toolchain-funcs
+
+[[ ${EAPI} == [567] ]] && inherit eutils
# Return all the flag variables that our high level funcs operate on.
all-flag-vars() {