summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-12-09 09:29:20 +0100
committerUlrich Müller <ulm@gentoo.org>2023-12-09 11:01:29 +0100
commitaf69bc3ed32a185a3d3485018b2d4b11a571fed7 (patch)
tree8a3b69dbe8deb460e0cb79cb98f339dd87ad4815 /eclass/java-pkg-opt-2.eclass
parentjava-pkg-2.eclass: Use standard EAPI guard (diff)
downloadgentoo-af69bc3ed32a185a3d3485018b2d4b11a571fed7.tar.gz
gentoo-af69bc3ed32a185a3d3485018b2d4b11a571fed7.tar.bz2
gentoo-af69bc3ed32a185a3d3485018b2d4b11a571fed7.zip
java-pkg-opt-2.eclass: Drop redundant EAPI conditional
Use standard EAPI guard. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/java-pkg-opt-2.eclass')
-rw-r--r--eclass/java-pkg-opt-2.eclass8
1 files changed, 3 insertions, 5 deletions
diff --git a/eclass/java-pkg-opt-2.eclass b/eclass/java-pkg-opt-2.eclass
index 0caba1d40e07..7b3e79749fb6 100644
--- a/eclass/java-pkg-opt-2.eclass
+++ b/eclass/java-pkg-opt-2.eclass
@@ -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
}