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

It's from Gentoo commit 5be5420448da8d12d8033b76f0157a5a021b54eb.
This commit is contained in:
Flatcar Buildbot 2023-10-02 07:11:34 +00:00
parent 6399103c32
commit 5d3b2a8da6

View File

@ -6,7 +6,7 @@
# java@gentoo.org
# @AUTHOR:
# Thomas Matthijs <axxo@gentoo.org>
# @SUPPORTED_EAPIS: 6 7 8
# @SUPPORTED_EAPIS: 7 8
# @PROVIDES: java-utils-2
# @BLURB: Eclass for package with optional Java support
# @DESCRIPTION:
@ -14,7 +14,7 @@
# support.
case ${EAPI:-0} in
[678]) ;;
[78]) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
@ -50,7 +50,7 @@ java-pkg-opt-2_pkg_setup() {
java-pkg-opt-2_src_prepare() {
use ${JAVA_PKG_OPT_USE} && java-utils-2_src_prepare
case "${EAPI:-0}" in
[678]) use ${JAVA_PKG_OPT_USE} || eapply_user ;;
[78]) use ${JAVA_PKG_OPT_USE} || eapply_user ;;
esac
}