1 |
Signed-off-by: Ulrich Müller <ulm@g.o> |
2 |
--- |
3 |
eclass/check-reqs.eclass | 15 ++++++--------- |
4 |
1 file changed, 6 insertions(+), 9 deletions(-) |
5 |
|
6 |
diff --git a/eclass/check-reqs.eclass b/eclass/check-reqs.eclass |
7 |
index 95f73a3012eb..242abde4e279 100644 |
8 |
--- a/eclass/check-reqs.eclass |
9 |
+++ b/eclass/check-reqs.eclass |
10 |
@@ -7,7 +7,7 @@ |
11 |
# @AUTHOR: |
12 |
# Bo Ørsted Andresen <zlin@g.o> |
13 |
# Original Author: Ciaran McCreesh <ciaranm@g.o> |
14 |
-# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7 |
15 |
+# @SUPPORTED_EAPIS: 4 5 6 7 |
16 |
# @BLURB: Provides a uniform way of handling ebuild which have very high build requirements |
17 |
# @DESCRIPTION: |
18 |
# This eclass provides a uniform way of handling ebuilds which have very high |
19 |
@@ -60,13 +60,13 @@ if [[ ! ${_CHECK_REQS_ECLASS_} ]]; then |
20 |
# @DESCRIPTION: |
21 |
# How much space is needed in /var? Eg.: CHECKREQS_DISK_VAR=3000M |
22 |
|
23 |
-EXPORT_FUNCTIONS pkg_setup |
24 |
-case "${EAPI:-0}" in |
25 |
- 0|1|2|3) ;; |
26 |
- 4|5|6|7) EXPORT_FUNCTIONS pkg_pretend ;; |
27 |
- *) die "EAPI=${EAPI} is not supported" ;; |
28 |
+case ${EAPI:-0} in |
29 |
+ 4|5|6|7) ;; |
30 |
+ *) die "${ECLASS}: EAPI=${EAPI:-0} is not supported" ;; |
31 |
esac |
32 |
|
33 |
+EXPORT_FUNCTIONS pkg_pretend pkg_setup |
34 |
+ |
35 |
# Obsolete function executing all the checks and printing out results |
36 |
check_reqs() { |
37 |
eerror "Package calling old ${FUNCNAME} function." |
38 |
@@ -123,9 +123,6 @@ check-reqs_run() { |
39 |
# some people are *censored* |
40 |
unset CHECKREQS_FAILED |
41 |
|
42 |
- [[ ${EAPI:-0} == [0123] ]] && local MERGE_TYPE="" |
43 |
- |
44 |
- # use != in test, because MERGE_TYPE only exists in EAPI 4 and later |
45 |
if [[ ${MERGE_TYPE} != binary ]]; then |
46 |
[[ -n ${CHECKREQS_MEMORY} ]] && \ |
47 |
check-reqs_memory \ |
48 |
-- |
49 |
2.22.1 |