Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 02 Jan 2023 22:02:23
Message-Id: 1672696895.d5ad5c1f37db9f97bbc19df22edf84da6d311653.soap@gentoo
1 commit: d5ad5c1f37db9f97bbc19df22edf84da6d311653
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 2 22:01:35 2023 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 22:01:35 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5ad5c1f
7
8 vala.eclass: drop EAPI 6 support
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 eclass/vala.eclass | 18 +++++++-----------
13 1 file changed, 7 insertions(+), 11 deletions(-)
14
15 diff --git a/eclass/vala.eclass b/eclass/vala.eclass
16 index acdf958191eb..224071970422 100644
17 --- a/eclass/vala.eclass
18 +++ b/eclass/vala.eclass
19 @@ -1,4 +1,4 @@
20 -# Copyright 1999-2022 Gentoo Authors
21 +# Copyright 1999-2023 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 # @ECLASS: vala.eclass
25 @@ -6,7 +6,7 @@
26 # gnome@g.o
27 # @AUTHOR:
28 # Alexandre Rostovtsev <tetromino@g.o>
29 -# @SUPPORTED_EAPIS: 6 7 8
30 +# @SUPPORTED_EAPIS: 7 8
31 # @BLURB: Sets up the environment for using a specific version of vala.
32 # @DESCRIPTION:
33 # This eclass sets up commonly used environment variables for using a specific
34 @@ -15,7 +15,7 @@
35 # executables, pkgconfig files, etc., which Gentoo does not provide.
36
37 case ${EAPI} in
38 - 6|7) inherit eutils multilib ;;
39 + 7) inherit eutils multilib ;;
40 8) ;;
41 *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
42 esac
43 @@ -99,13 +99,11 @@ vala_depend() {
44 # VALA_MAX_API_VERSION, VALA_MIN_API_VERSION, and VALA_USE_DEPEND.
45 vala_best_api_version() {
46 local u v
47 - local hv_opt="-b"
48 - [[ ${EAPI} == 6 ]] && hv_opt=""
49
50 u=$(_vala_use_depend)
51
52 for v in $(vala_api_versions); do
53 - has_version ${hv_opt} "dev-lang/vala:${v}${u}" && echo "${v}" && return
54 + has_version -b "dev-lang/vala:${v}${u}" && echo "${v}" && return
55 done
56 }
57
58 @@ -121,8 +119,6 @@ vala_best_api_version() {
59 # version is not available.
60 vala_setup() {
61 local p d valafoo version ignore_use
62 - local hv_opt="-b"
63 - [[ ${EAPI} == 6 ]] && hv_opt=""
64
65 while [[ $1 ]]; do
66 case $1 in
67 @@ -141,7 +137,7 @@ vala_setup() {
68 fi
69
70 if [[ ${version} ]]; then
71 - has_version ${hv_opt} "dev-lang/vala:${version}" || die "No installed vala:${version}"
72 + has_version -b "dev-lang/vala:${version}" || die "No installed vala:${version}"
73 else
74 version=$(vala_best_api_version)
75 [[ ${version} ]] || die "No installed vala in $(vala_depend)"
76 @@ -178,8 +174,8 @@ vala_setup() {
77
78 # @FUNCTION: vala_src_prepare
79 # @DESCRIPTION:
80 -# For backwards compatibility in EAPIs 6 and 7. Calls vala_setup.
81 -if [[ ${EAPI} == [67] ]]; then
82 +# For backwards compatibility in EAPI 7. Calls vala_setup.
83 +if [[ ${EAPI} == 7 ]]; then
84 vala_src_prepare() { vala_setup "$@"; }
85 fi