Signed-off-by: David Seifert <
soap@gentoo.org>
---
eclass/bazel.eclass | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/eclass/bazel.eclass b/eclass/bazel.eclass
index 3a8992972d4..8897ea175a8 100644
--- a/eclass/bazel.eclass
+++ b/eclass/bazel.eclass
@@ -6,25 +6,20 @@
# Jason Zaman <
perfinion@gentoo.org>
# @AUTHOR:
# Jason Zaman <
perfinion@gentoo.org>
-# @SUPPORTED_EAPIS: 7 8
+# @SUPPORTED_EAPIS: 8
# @BLURB: Utility functions for packages using Bazel Build
# @DESCRIPTION:
# A utility eclass providing functions to run the Bazel Build system.
#
# This eclass does not export any phase functions.
-case "${EAPI:-0}" in
- 0|1|2|3|4|5|6)
- die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
- ;;
- 7|8)
- ;;
- *)
- die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
- ;;
+case ${EAPI} in
+ 8) ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ ! ${_BAZEL_ECLASS} ]]; then
+_BAZEL_ECLASS=1
inherit multiprocessing toolchain-funcs
@@ -222,5 +217