diff options
author | Sam James <sam@gentoo.org> | 2024-09-07 22:39:01 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-09-08 19:21:25 +0100 |
commit | 1177526dad936922685cd77c0bd05474a8407462 (patch) | |
tree | e7a464f3a37336541b9350120d15f82b07a29634 /eclass | |
parent | vim-plugin.eclass: add global-scope ewarn for deprecated < EAPI 7 (diff) | |
download | gentoo-1177526dad936922685cd77c0bd05474a8407462.tar.gz gentoo-1177526dad936922685cd77c0bd05474a8407462.tar.bz2 gentoo-1177526dad936922685cd77c0bd05474a8407462.zip |
vim-spell.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/vim-spell.eclass | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/eclass/vim-spell.eclass b/eclass/vim-spell.eclass index 607771ae8035..57bcb0dc8021 100644 --- a/eclass/vim-spell.eclass +++ b/eclass/vim-spell.eclass @@ -62,14 +62,18 @@ # spell files. It's best to let upstream know if you've generated spell files # for another language rather than keeping them Gentoo-specific. +if [[ -z ${_VIM_SPELL_ECLASS} ]] ; then +_VIM_SPELL_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 ${_VIM_SPELL_ECLASS} ]] ; then -_VIM_SPELL_ECLASS=1 - SRC_URI="mirror://gentoo/${P}.tar.bz2" SLOT="0" |