Gentoo Archives: gentoo-dev

From: David Seifert <soap@g.o>
To: gentoo-dev@l.g.o
Cc: David Seifert <soap@g.o>
Subject: [gentoo-dev] [PATCH 16/41] mozcoreconf-v6.eclass: drop EAPI 6, 7 support
Date: Sun, 25 Dec 2022 22:20:06
Message-Id: 20221225221552.8023-16-soap@gentoo.org
In Reply to: [gentoo-dev] [PATCH 01/41] ada.eclass: drop EAPI 6 support by David Seifert
1 Signed-off-by: David Seifert <soap@g.o>
2 ---
3 eclass/mozcoreconf-v6.eclass | 25 +++++++++----------------
4 1 file changed, 9 insertions(+), 16 deletions(-)
5
6 diff --git a/eclass/mozcoreconf-v6.eclass b/eclass/mozcoreconf-v6.eclass
7 index 45069777340..ecf1c1f6720 100644
8 --- a/eclass/mozcoreconf-v6.eclass
9 +++ b/eclass/mozcoreconf-v6.eclass
10 @@ -1,10 +1,10 @@
11 # Copyright 1999-2022 Gentoo Authors
12 # Distributed under the terms of the GNU General Public License v2
13 -#
14 +
15 # @ECLASS: mozcoreconf-v6.eclass
16 # @MAINTAINER:
17 # Mozilla team <mozilla@g.o>
18 -# @SUPPORTED_EAPIS: 6 7 8
19 +# @SUPPORTED_EAPIS: 8
20 # @BLURB: core options and configuration functions for mozilla
21 # @DESCRIPTION:
22 #
23 @@ -15,7 +15,13 @@
24 # This is an eclass-generated variable that defines the rpath that the mozilla
25 # product will be installed in. Read-only
26
27 -if [[ ! ${_MOZCORECONF} ]]; then
28 +case ${EAPI} in
29 + 8) ;;
30 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
31 +esac
32 +
33 +if [[ ! ${_MOZCORECONF_V6_ECLASS} ]]; then
34 +_MOZCORECONF_V6_ECLASS=1
35
36 inherit toolchain-funcs flag-o-matic python-any-r1
37
38 @@ -23,18 +29,6 @@ BDEPEND="virtual/pkgconfig
39 dev-lang/python:2.7[ncurses,sqlite,ssl,threads(+)]
40 ${PYTHON_DEPS}"
41
42 -case "${EAPI:-0}" in
43 - 6)
44 - inherit multilib versionator
45 - DEPEND+=" ${BDEPEND}"
46 - ;;
47 - 7|8)
48 - ;;
49 - *)
50 - die "EAPI ${EAPI} is not supported, contact eclass maintainers"
51 - ;;
52 -esac
53 -
54 IUSE="${IUSE} custom-cflags custom-optimization"
55
56 # @FUNCTION: mozconfig_annotate
57 @@ -275,5 +269,4 @@ mozconfig_final() {
58 echo
59 }
60
61 -_MOZCORECONF=1
62 fi
63 --
64 2.39.0