mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
java-pkg-opt-2.eclass: Drop redundant EAPI conditional
Use standard EAPI guard. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user