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

It's from Gentoo commit af69bc3ed32a185a3d3485018b2d4b11a571fed7.
This commit is contained in:
Flatcar Buildbot 2024-01-01 07:12:55 +00:00 committed by Krzesimir Nowak
parent 95974b868a
commit dbd7b9a194

View File

@ -13,8 +13,8 @@
# Inherit this eclass instead of java-pkg-2 if you only need optional Java
# support.
case ${EAPI:-0} in
[78]) ;;
case ${EAPI} in
7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
@ -49,9 +49,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
[78]) use ${JAVA_PKG_OPT_USE} || eapply_user ;;
esac
use ${JAVA_PKG_OPT_USE} || eapply_user
}