• [gentoo-dev] [PATCH v2 2/8] vim-plugin.eclass: support EAPI 8

    From Anna Vyalkova@21:1/5 to All on Wed Apr 6 14:30:01 2022
    From: Thomas Bracht Laumann Jespersen <t@laumann.xyz>

    * Drop EAPI 0, 1, 2 workarounds
    * Move EXPORT_FUNCTIONS to end of file
    * Add required @USAGE on functions
    * Add _VIM_PLUGIN_ECLASS guard

    Bug: https://bugs.gentoo.org/830867
    Bug: https://bugs.gentoo.org/830866
    Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
    Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in>
    ---

    Added _VIM_PLUGIN_ECLASS.

    eclass/vim-plugin.eclass | 23 ++++++++++++++---------
    1 file changed, 14 insertions(+), 9 deletions(-)

    diff --git a/eclass/vim-plugin.eclass b/eclass/vim-plugin.eclass
    index 50e727e98f..eac7dea52d 100644
    --- a/eclass/vim-plugin.eclass
    +++ b/eclass/vim-plugin.eclass
    @@ -1,10 +1,10 @@
    -# Copyright 1999-2021 Gentoo Authors
    +# Copyright 1999-2022 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: vim-plugin.eclass
    # @MAINTAINER:
    # vim@gentoo.org
    -# @SUPPORTED_EAPIS: 6 7
    +# @SUPPORTED_EAPIS: 6 7 8
    # @BLURB: used for installing vim plugins
    # @DESCRIPTION:
    # This eclass simplifies installation of app-vim plugins into
    @@ -13,12 +13,12 @@
    # documentation, for which we make a special case via vim-doc.eclass.

    case ${EAPI} in
    - 6|7);;
    - *) die "EAPI ${EAPI:-0} unsupported (too old)";;
    + 6|7|8);;
    + *) die "${ECLASS}: EAPI ${EAPI:-0} unsupported (too old)";;
    esac

    +if [[ ! ${_VIM_PLUGIN_ECLASS} ]]; the