commit:     a5d15ea23f2a26ec474a01a56fda77cb4c7c3681
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 17 15:30:10 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Jan 26 13:33:45 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5d15ea2

scons-utils.eclass: Support EAPI 9

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 eclass/scons-utils.eclass | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/eclass/scons-utils.eclass b/eclass/scons-utils.eclass
index 4f5e6962f43e..6783d36cb9e8 100644
--- a/eclass/scons-utils.eclass
+++ b/eclass/scons-utils.eclass
@@ -1,10 +1,10 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: scons-utils.eclass
 # @MAINTAINER:
 # [email protected]
-# @SUPPORTED_EAPIS: 7 8
+# @SUPPORTED_EAPIS: 7 8 9
 # @BLURB: helper functions to deal with SCons buildsystem
 # @DESCRIPTION:
 # This eclass provides a set of function to help developers sanely call
@@ -82,11 +82,14 @@
 # Much like EXTRA_EMAKE, this is not supposed to be used in make.conf
 # and not in ebuilds!
 
+if [[ -z ${_SCONS_UTILS_ECLASS} ]]; then
+_SCONS_UTILS_ECLASS=1
+
 # -- EAPI support check --
 
-case ${EAPI:-0} in
-       7|8) ;;
-       *) die "EAPI ${EAPI} unsupported."
+case ${EAPI} in
+       7|8|9) ;;
+       *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
 inherit multiprocessing
@@ -158,3 +161,5 @@ escons() {
        echo "${@}" >&2
        "${@}" || die -n "escons failed."
 }
+
+fi

Reply via email to