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 |