commit:     5f444bd239553812f73ce86e6b4dcfce0beb85ca
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 17 15:29:26 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Jan 26 11:33:23 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f444bd2

app-alternatives.eclass: Support EAPI 9

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

 eclass/app-alternatives.eclass | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/eclass/app-alternatives.eclass b/eclass/app-alternatives.eclass
index 32afedba1e68..2873aad45c95 100644
--- a/eclass/app-alternatives.eclass
+++ b/eclass/app-alternatives.eclass
@@ -1,4 +1,4 @@
-# Copyright 2022-2024 Gentoo Authors
+# Copyright 2022-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: app-alternatives.eclass
@@ -6,7 +6,7 @@
 # Michał Górny <[email protected]>
 # @AUTHOR:
 # Michał Górny <[email protected]>
-# @SUPPORTED_EAPIS: 8
+# @SUPPORTED_EAPIS: 8 9
 # @BLURB: Common logic for app-alternatives/*
 # @DESCRIPTION:
 # This eclass provides common logic shared by app-alternatives/*
@@ -16,14 +16,14 @@
 # A get_alternative() function is provided that determines the selected
 # alternative and prints its respective flag name.
 
+if [[ -z ${_APP_ALTERNATIVES_ECLASS} ]]; then
+_APP_ALTERNATIVES_ECLASS=1
+
 case ${EAPI} in
-       8) ;;
+       8|9) ;;
        *) die "${ECLASS}: EAPI ${EAPI:-0} unsupported."
 esac
 
-if [[ -z ${_APP_ALTERNATIVES_ECLASS} ]]; then
-_APP_ALTERNATIVES_ECLASS=1
-
 # @ECLASS_VARIABLE: ALTERNATIVES
 # @PRE_INHERIT
 # @REQUIRED

Reply via email to