eclass/vim-plugin: Sync with Gentoo

It's from Gentoo commit 2ba4a06b94b1b3c679c964eb4fc8ee5cdd47adaf.
This commit is contained in:
Flatcar Buildbot 2024-09-16 07:14:32 +00:00 committed by Krzesimir Nowak
parent 1974832fc8
commit c8161e39e5

View File

@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors # Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# @ECLASS: vim-plugin.eclass # @ECLASS: vim-plugin.eclass
@ -12,14 +12,18 @@
# which is read automatically by vim. The only exception is # which is read automatically by vim. The only exception is
# documentation, for which we make a special case via vim-doc.eclass. # documentation, for which we make a special case via vim-doc.eclass.
case ${EAPI} in
6|7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ -z ${_VIM_PLUGIN_ECLASS} ]]; then if [[ -z ${_VIM_PLUGIN_ECLASS} ]]; then
_VIM_PLUGIN_ECLASS=1 _VIM_PLUGIN_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
inherit vim-doc inherit vim-doc
[[ ${EAPI} != [67] ]] && _DEFINE_VIM_PLUGIN_SRC_PREPARE=true [[ ${EAPI} != [67] ]] && _DEFINE_VIM_PLUGIN_SRC_PREPARE=true