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 18/41] mozlinguas-v2.eclass: drop EAPI 6, 7 support
Date: Sun, 25 Dec 2022 22:20:38
Message-Id: 20221225221552.8023-18-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/mozlinguas-v2.eclass | 25 +++++++++++++------------
4 1 file changed, 13 insertions(+), 12 deletions(-)
5
6 diff --git a/eclass/mozlinguas-v2.eclass b/eclass/mozlinguas-v2.eclass
7 index 155b894edc5..063430e1cb7 100644
8 --- a/eclass/mozlinguas-v2.eclass
9 +++ b/eclass/mozlinguas-v2.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: mozlinguas-v2.eclass
16 @@ -7,25 +7,22 @@
17 # @AUTHOR:
18 # Nirbheek Chauhan <nirbheek@g.o>
19 # Ian Stakenvicius <axs@g.o>
20 -# @SUPPORTED_EAPIS: 6 7 8
21 +# @SUPPORTED_EAPIS: 8
22 # @BLURB: Handle language packs for mozilla products
23 # @DESCRIPTION:
24 # Sets IUSE according to MOZ_LANGS (language packs available). Also exports
25 # src_unpack, src_compile and src_install for use in ebuilds, and provides
26 # supporting functions for langpack generation and installation.
27
28 -inherit mozextension
29 -
30 -case "${EAPI:-0}" in
31 - 6)
32 - inherit eapi7-ver ;;
33 - 7|8)
34 - ;;
35 - *)
36 - die "EAPI ${EAPI} is not supported, contact eclass maintainers" ;;
37 +case ${EAPI} in
38 + 8) ;;
39 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
40 esac
41
42 -EXPORT_FUNCTIONS src_unpack src_compile src_install
43 +if [[ ! ${_MOZLINGUAS_V2_ECLASS} ]]; then
44 +_MOZLINGUAS_V2_ECLASS=1
45 +
46 +inherit mozextension
47
48 # @ECLASS_VARIABLE: MOZ_LANGS
49 # @DEFAULT_UNSET
50 @@ -402,3 +399,7 @@ mozlinguas_src_install() {
51 mozlinguas-v2_src_install() {
52 mozlinguas_src_install
53 }
54 +
55 +fi
56 +
57 +EXPORT_FUNCTIONS src_unpack src_compile src_install
58 --
59 2.39.0