diff options
author | Sam James <sam@gentoo.org> | 2024-09-07 22:38:56 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-09-08 19:21:24 +0100 |
commit | 0641762abe1deeec8ff4802ac726a1ce63d786aa (patch) | |
tree | f589b83776683c510a93e78857981fdde685c808 /eclass | |
parent | vcs-clean.eclass: add global-scope ewarn for deprecated < EAPI 7 (diff) | |
download | gentoo-0641762abe1deeec8ff4802ac726a1ce63d786aa.tar.gz gentoo-0641762abe1deeec8ff4802ac726a1ce63d786aa.tar.bz2 gentoo-0641762abe1deeec8ff4802ac726a1ce63d786aa.zip |
vim-doc.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-doc.eclass | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/eclass/vim-doc.eclass b/eclass/vim-doc.eclass index 119ce793071d..f20f7397cf65 100644 --- a/eclass/vim-doc.eclass +++ b/eclass/vim-doc.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: vim-doc.eclass @@ -16,13 +16,17 @@ # DEPEND in vim-plugin or by whatever version of vim is being # installed by the eclass. +if [[ ! ${_VIM_DOC_ECLASS} ]] ; then + 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 [[ ! ${_VIM_DOC_ECLASS} ]] ; then - # @FUNCTION: update_vim_helptags # @USAGE: # @DESCRIPTION: |