diff options
author | Sam James <sam@gentoo.org> | 2024-09-07 22:36:42 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-09-08 19:21:10 +0100 |
commit | 10031a0f65cfe41bc02ba714dc1efb291e965711 (patch) | |
tree | 9d268b8495f315bdfc4991da911a0208257c4151 /eclass | |
parent | java-utils-2.eclass: add global-scope ewarn for deprecated < EAPI 7 (diff) | |
download | gentoo-10031a0f65cfe41bc02ba714dc1efb291e965711.tar.gz gentoo-10031a0f65cfe41bc02ba714dc1efb291e965711.tar.bz2 gentoo-10031a0f65cfe41bc02ba714dc1efb291e965711.zip |
libtool.eclass: add global-scope ewarn for deprecated < EAPI 7
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/libtool.eclass | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass index bd6141e1ede9..b36b1fd365d3 100644 --- a/eclass/libtool.eclass +++ b/eclass/libtool.eclass @@ -18,6 +18,15 @@ if [[ -z ${_LIBTOOL_ECLASS} ]]; then _LIBTOOL_ECLASS=1 case ${EAPI} in + 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 + +case ${EAPI} in 6) DEPEND=">=app-portage/elt-patches-20240116" ;; 7|8) BDEPEND=">=app-portage/elt-patches-20240116" ;; *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |