Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sun, 30 Jan 2022 07:27:40
Message-Id: 1643527622.b63f695110c4a405b334eea0ecd50d072d783c9f.perfinion@gentoo
1 commit: b63f695110c4a405b334eea0ecd50d072d783c9f
2 Author: Jason Zaman <perfinion <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 29 18:23:43 2022 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 30 07:27:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b63f6951
7
8 bazel.eclass: Add EAPI8 support
9
10 Also don't BDEP on bazel from the bazel package itself
11
12 Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
13
14 eclass/bazel.eclass | 8 +++++---
15 1 file changed, 5 insertions(+), 3 deletions(-)
16
17 diff --git a/eclass/bazel.eclass b/eclass/bazel.eclass
18 index 9e09255fd66f..8ae405c6941c 100644
19 --- a/eclass/bazel.eclass
20 +++ b/eclass/bazel.eclass
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2021 Gentoo Authors
23 +# Copyright 1999-2022 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 # @ECLASS: bazel.eclass
27 @@ -17,7 +17,7 @@ case "${EAPI:-0}" in
28 0|1|2|3|4|5|6)
29 die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
30 ;;
31 - 7)
32 + 7|8)
33 ;;
34 *)
35 die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
36 @@ -28,7 +28,9 @@ if [[ ! ${_BAZEL_ECLASS} ]]; then
37
38 inherit multiprocessing toolchain-funcs
39
40 -BDEPEND=">=dev-util/bazel-0.20"
41 +if [[ ${CATEGORY}/${PN} != "dev-util/bazel" ]]; then
42 + BDEPEND=">=dev-util/bazel-0.20"
43 +fi
44
45 # @FUNCTION: bazel_get_flags
46 # @DESCRIPTION: