Skip to content

Commit

Permalink
java-utils-2.eclass: drop support for EAPI 5
Browse files Browse the repository at this point in the history
Signed-off-by: Volkmar W. Pogatzki <[email protected]>
Closes: gentoo#29556
Signed-off-by: Miroslav Šulc <[email protected]>
  • Loading branch information
vaukai authored and fordfrog committed Feb 17, 2023
1 parent 3ac24e7 commit ca1a249
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions eclass/java-utils-2.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# [email protected]
# @AUTHOR:
# Thomas Matthijs <[email protected]>, Karl Trygve Kalleberg <[email protected]>
# @SUPPORTED_EAPIS: 5 6 7 8
# @SUPPORTED_EAPIS: 6 7 8
# @BLURB: Base eclass for Java packages
# @DESCRIPTION:
# This eclass provides functionality which is used by java-pkg-2.eclass,
Expand All @@ -18,7 +18,7 @@
# Ant-based packages.

case ${EAPI:-0} in
[5678]) ;;
[678]) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac

Expand All @@ -27,7 +27,7 @@ _JAVA_UTILS_2_ECLASS=1

# EAPI 7 has version functions built-in. Use eapi7-ver for all earlier eclasses.
# Keep versionator inheritance in case consumers are using it implicitly.
[[ ${EAPI} == [56] ]] && inherit eapi7-ver eutils multilib versionator
[[ ${EAPI} == 6 ]] && inherit eapi7-ver eutils multilib versionator

# Make sure we use java-config-2
export WANT_JAVA_CONFIG="2"
Expand Down Expand Up @@ -1933,14 +1933,7 @@ etestng() {
# src_prepare Searches for bundled jars
# Don't call directly, but via java-pkg-2_src_prepare!
java-utils-2_src_prepare() {
case ${EAPI:-0} in
5)
java-pkg_func-exists java_prepare && java_prepare ;;
*)
java-pkg_func-exists java_prepare &&
eqawarn "java_prepare is no longer called, define src_prepare instead."
eapply_user ;;
esac
eapply_user

# Check for files in JAVA_RM_FILES array.
if [[ ${JAVA_RM_FILES[@]} ]]; then
Expand Down

0 comments on commit ca1a249

Please sign in to comment.