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 13/41] libretro-core.eclass: drop EAPI 6 support
Date: Sun, 25 Dec 2022 22:19:20
Message-Id: 20221225221552.8023-13-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/libretro-core.eclass | 19 +++++++++----------
4 1 file changed, 9 insertions(+), 10 deletions(-)
5
6 diff --git a/eclass/libretro-core.eclass b/eclass/libretro-core.eclass
7 index e4f7221a540..55d7e9f1151 100644
8 --- a/eclass/libretro-core.eclass
9 +++ b/eclass/libretro-core.eclass
10 @@ -1,4 +1,4 @@
11 -# Copyright 2018-2021 Gentoo Authors
12 +# Copyright 2018-2022 Gentoo Authors
13 # Distributed under the terms of the GNU General Public License v2
14
15 # @ECLASS: libretro-core.eclass
16 @@ -7,7 +7,7 @@
17 # @AUTHOR:
18 # Cecil Curry <leycec@×××××.com>
19 # Craig Andrews <candrews@g.o>
20 -# @SUPPORTED_EAPIS: 6 7
21 +# @SUPPORTED_EAPIS: 7
22 # @BLURB: Simplify libretro core ebuilds
23 # @DESCRIPTION:
24 # The libretro eclass is designed to streamline the construction of
25 @@ -34,6 +34,11 @@
26 # SLOT="0"
27 # @CODE
28
29 +case ${EAPI} in
30 + 7) ;;
31 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
32 +esac
33 +
34 if [[ -z ${_LIBRETRO_CORE_ECLASS} ]]; then
35 _LIBRETRO_CORE_ECLASS=1
36
37 @@ -78,14 +83,6 @@ else
38 fi
39 inherit flag-o-matic toolchain-funcs
40
41 -case "${EAPI:-0}" in
42 - 6|7)
43 - EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install
44 - ;;
45 - *)
46 - die "EAPI=${EAPI} is not supported" ;;
47 -esac
48 -
49 # @FUNCTION: libretro-core_src_unpack
50 # @DESCRIPTION:
51 # The libretro-core src_unpack function which is exported.
52 @@ -210,3 +207,5 @@ libretro-core_src_install() {
53 }
54
55 fi # end _LIBRETRO_CORE_ECLASS guard
56 +
57 +EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install
58 --
59 2.39.0