1 |
Signed-off-by: David Seifert <soap@g.o> |
2 |
--- |
3 |
eclass/toolchain.eclass | 23 ++++++++++++++--------- |
4 |
1 file changed, 14 insertions(+), 9 deletions(-) |
5 |
|
6 |
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass |
7 |
index 741b6dfbbcc..495a305ed83 100644 |
8 |
--- a/eclass/toolchain.eclass |
9 |
+++ b/eclass/toolchain.eclass |
10 |
@@ -7,6 +7,15 @@ |
11 |
# @SUPPORTED_EAPIS: 7 8 |
12 |
# @BLURB: Common code for sys-devel/gcc ebuilds |
13 |
|
14 |
+case ${EAPI} in |
15 |
+ 7) inherit eutils ;; |
16 |
+ 8) ;; |
17 |
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
18 |
+esac |
19 |
+ |
20 |
+if [[ ! ${_TOOLCHAIN_ECLASS} ]]; then |
21 |
+_TOOLCHAIN_ECLASS=1 |
22 |
+ |
23 |
DESCRIPTION="The GNU Compiler Collection" |
24 |
HOMEPAGE="https://gcc.gnu.org/" |
25 |
|
26 |
@@ -30,15 +39,6 @@ fi |
27 |
|
28 |
FEATURES=${FEATURES/multilib-strict/} |
29 |
|
30 |
-case ${EAPI} in |
31 |
- 7) inherit eutils ;; |
32 |
- 8) ;; |
33 |
- *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
34 |
-esac |
35 |
- |
36 |
-EXPORT_FUNCTIONS pkg_pretend pkg_setup src_unpack src_prepare src_configure \ |
37 |
- src_compile src_test src_install pkg_postinst pkg_postrm |
38 |
- |
39 |
#---->> globals <<---- |
40 |
|
41 |
export CTARGET=${CTARGET:-${CHOST}} |
42 |
@@ -2322,6 +2322,11 @@ toolchain_death_notice() { |
43 |
fi |
44 |
} |
45 |
|
46 |
+fi |
47 |
+ |
48 |
+EXPORT_FUNCTIONS pkg_pretend pkg_setup src_unpack src_prepare src_configure \ |
49 |
+ src_compile src_test src_install pkg_postinst pkg_postrm |
50 |
+ |
51 |
# Note [implicitly enabled flags] |
52 |
# ------------------------------- |
53 |
# Usually configure-based packages handle explicit feature requests |
54 |
-- |
55 |
2.35.0 |