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 05/41] aspell-dict-r1.eclass: drop EAPI 7 support
Date: Sun, 25 Dec 2022 22:17:16
Message-Id: 20221225221552.8023-5-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/aspell-dict-r1.eclass | 21 +++++++++------------
4 1 file changed, 9 insertions(+), 12 deletions(-)
5
6 diff --git a/eclass/aspell-dict-r1.eclass b/eclass/aspell-dict-r1.eclass
7 index 4d2df961993..170edb4cacd 100644
8 --- a/eclass/aspell-dict-r1.eclass
9 +++ b/eclass/aspell-dict-r1.eclass
10 @@ -1,4 +1,4 @@
11 -# Copyright 1999-2021 Gentoo Authors
12 +# Copyright 1999-2022 Gentoo Authors
13 # Distributed under the terms of the GNU General Public License v2
14
15 # @ECLASS: aspell-dict-r1.eclass
16 @@ -7,7 +7,7 @@
17 # @AUTHOR:
18 # Seemant Kulleen <seemant@g.o> (original author)
19 # David Seifert <soap@g.o> (-r1 author)
20 -# @SUPPORTED_EAPIS: 7 8
21 +# @SUPPORTED_EAPIS: 8
22 # @BLURB: An eclass to streamline the construction of ebuilds for new Aspell dictionaries.
23 # @DESCRIPTION:
24 # The aspell-dict-r1 eclass is designed to streamline the construction of ebuilds for
25 @@ -36,18 +36,13 @@ readonly ASPELL_SPELLANG=${PN/aspell-/}
26 # This value is used to construct SRC_URI strings.
27 # If the value needs to be overridden, it needs to be overridden before inheriting the eclass.
28
29 -case ${EAPI:-0} in
30 - [7-8])
31 - ;;
32 - *)
33 - die "${ECLASS}: EAPI ${EAPI:-0} not supported"
34 - ;;
35 +case ${EAPI} in
36 + 8) ;;
37 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
38 esac
39
40 -EXPORT_FUNCTIONS src_configure src_install
41 -
42 -if [[ ! ${_ASPELL_DICT_R1} ]]; then
43 -_ASPELL_DICT_R1=1
44 +if [[ ! ${_ASPELL_DICT_R1_ECLASS} ]]; then
45 +_ASPELL_DICT_R1_ECLASS=1
46
47 # Most of those aspell packages have an idiosyncratic versioning scheme,
48 # where the last separating version separator is replaced by a '-'.
49 @@ -86,3 +81,5 @@ aspell-dict-r1_src_install() {
50 }
51
52 fi
53 +
54 +EXPORT_FUNCTIONS src_configure src_install
55 --
56 2.39.0