commit:     7d1708a45b0471753da0a59442e5a1413c335ba0
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Wed Feb 15 17:47:28 2023 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Fri Feb 17 08:03:33 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d1708a4

java-utils-2.eclass: default to java-pkg_clean for future EAPI

Bug: https://bugs.gentoo.org/797733
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 eclass/java-utils-2.eclass | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index 7641f9f40290..07dfbd45bdf6 100644
--- a/eclass/java-utils-2.eclass
+++ b/eclass/java-utils-2.eclass
@@ -1955,6 +1955,12 @@ java-utils-2_src_prepare() {
                find "${WORKDIR}" -name "*.class"
                echo "Search done."
        fi
+
+       # Delete bundled .class and .jar files.
+       case ${EAPI:-0} in
+               [678]) ;;
+               *) java-pkg_clean ;;
+       esac
 }
 
 # @FUNCTION: java-utils-2_pkg_preinst

Reply via email to