Signed-off-by: Sam James <s...@gentoo.org> --- eclass/java-utils-2.eclass | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass index 647f25e2c9870..6bf6b7788aa59 100644 --- a/eclass/java-utils-2.eclass +++ b/eclass/java-utils-2.eclass @@ -17,14 +17,18 @@ # that have optional Java support. In addition you can inherit java-ant-2 for # Ant-based packages. +if [[ -z ${_JAVA_UTILS_2_ECLASS} ]] ; then +_JAVA_UTILS_2_ECLASS=1 + case ${EAPI} in - 6|7|8) ;; + 6) + ewarn "${CATEGORY}/${PF}: ebuild uses ${ECLASS} with deprecated EAPI ${EAPI}!" + ewarn "${CATEGORY}/${PF}: Support will be removed on 2024-10-08. Please port to newer EAPI." + ;; + 7|8) ;; *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac -if [[ -z ${_JAVA_UTILS_2_ECLASS} ]] ; then -_JAVA_UTILS_2_ECLASS=1 - # EAPI 7 has version functions built-in. Use eapi7-ver for all earlier EAPIs. # Keep versionator inheritance in case consumers are using it implicitly. [[ ${EAPI} == 6 ]] && inherit eapi7-ver eqawarn multilib versionator -- 2.46.0