mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
eclass/java-pkg-opt-2: Sync with Gentoo
It's from Gentoo commit af69bc3ed32a185a3d3485018b2d4b11a571fed7.
This commit is contained in:
parent
95974b868a
commit
dbd7b9a194
@ -13,8 +13,8 @@
|
|||||||
# Inherit this eclass instead of java-pkg-2 if you only need optional Java
|
# Inherit this eclass instead of java-pkg-2 if you only need optional Java
|
||||||
# support.
|
# support.
|
||||||
|
|
||||||
case ${EAPI:-0} in
|
case ${EAPI} in
|
||||||
[78]) ;;
|
7|8) ;;
|
||||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -49,9 +49,7 @@ java-pkg-opt-2_pkg_setup() {
|
|||||||
|
|
||||||
java-pkg-opt-2_src_prepare() {
|
java-pkg-opt-2_src_prepare() {
|
||||||
use ${JAVA_PKG_OPT_USE} && java-utils-2_src_prepare
|
use ${JAVA_PKG_OPT_USE} && java-utils-2_src_prepare
|
||||||
case "${EAPI:-0}" in
|
use ${JAVA_PKG_OPT_USE} || eapply_user
|
||||||
[78]) use ${JAVA_PKG_OPT_USE} || eapply_user ;;
|
|
||||||
esac
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user