commit:     c8e74a7dfe477dea008548553141f083c5d03782
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 28 16:24:20 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 28 16:24:20 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8e74a7d

autotools.eclass: fix EAPI 8 conditional; simplify

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/autotools.eclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index c275c83d55c2..e6658e361318 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -393,8 +393,8 @@ eautoconf() {
 
 
        if [[ ${WANT_AUTOCONF} != "2.1" && -e configure.in ]] ; then
-               case ${EAPI:-0} in
-                       0|1|2|3|4|5|6|7)
+               case ${EAPI} in
+                       5|6|7)
                                eqawarn "This package has a configure.in file 
which has long been deprecated.  Please"
                                eqawarn "update it to use configure.ac instead 
as newer versions of autotools will die"
                                eqawarn "when it finds this file.  See 
https://bugs.gentoo.org/426262 for details."
@@ -519,7 +519,7 @@ autotools_env_setup() {
                                5|6)
                                        hv_args="--host-root"
                                        ;;
-                               7)
+                               *)
                                        hv_args="-b"
                                        ;;
                        esac

Reply via email to