commit:     52cc2a46f4baf95b8fb4a17ac80a5ac976229cbe
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 17 15:29:44 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Jan 25 14:35:30 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52cc2a46

java-pkg-opt-2.eclass: Support EAPI 9

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

 eclass/java-pkg-opt-2.eclass | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/eclass/java-pkg-opt-2.eclass b/eclass/java-pkg-opt-2.eclass
index 47594c3b7024..add3b232fa9c 100644
--- a/eclass/java-pkg-opt-2.eclass
+++ b/eclass/java-pkg-opt-2.eclass
@@ -6,21 +6,21 @@
 # [email protected]
 # @AUTHOR:
 # Thomas Matthijs <[email protected]>
-# @SUPPORTED_EAPIS: 8
+# @SUPPORTED_EAPIS: 8 9
 # @PROVIDES: java-utils-2
 # @BLURB: Eclass for package with optional Java support
 # @DESCRIPTION:
 # Inherit this eclass instead of java-pkg-2 if you only need optional Java
 # support.
 
+if [[ -z ${_JAVA_PKG_OPT_2_ECLASS} ]] ; then
+_JAVA_PKG_OPT_2_ECLASS=1
+
 case ${EAPI} in
-       8) ;;
+       8|9) ;;
        *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
-if [[ -z ${_JAVA_PKG_OPT_2_ECLASS} ]] ; then
-_JAVA_PKG_OPT_2_ECLASS=1
-
 inherit java-utils-2
 
 # @ECLASS_VARIABLE: JAVA_PKG_OPT_USE

Reply via email to