eclass/java-pkg-opt-2: Sync with Gentoo

It's from Gentoo commit 52cc2a46f4baf95b8fb4a17ac80a5ac976229cbe.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2026-03-02 07:26:25 +00:00 committed by Krzesimir Nowak
parent 3407acf4db
commit 0ae1a91a0c

View File

@ -6,21 +6,21 @@
# java@gentoo.org
# @AUTHOR:
# Thomas Matthijs <axxo@gentoo.org>
# @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.
case ${EAPI} in
8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ -z ${_JAVA_PKG_OPT_2_ECLASS} ]] ; then
_JAVA_PKG_OPT_2_ECLASS=1
case ${EAPI} in
8|9) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
inherit java-utils-2
# @ECLASS_VARIABLE: JAVA_PKG_OPT_USE