• [gentoo-dev] [PATCH v5 1/9] vim-doc.eclass: support EAPI 8

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

    * Added "|| die" statements
    * Create links only if they don't exist yet
    * `readlink` -> `readlink -f`
    * Quoted variables

    Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
    Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in>
    ---
    eclass/vim-doc.eclass | 66 +++++++++++++++++++++++++------------------
    1 file changed, 39 insertions(+), 27 deletions(-)

    diff --git a/eclass/vim-doc.eclass b/eclass/vim-doc.eclass
    index ba9d00f4f5..f0c5c6edc6 100644
    --- a/eclass/vim-doc.eclass
    +++ b/eclass/vim-doc.eclass
    @@ -1,86 +1,98 @@
    -# Copyright 1999-2021 Gentoo Authors
    +# Copyright 1999-2022 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: vim-doc.eclass
    # @MAINTAINER:
    # vim@gentoo.org
    -# @SUPPORTED_EAPIS: 6 7
    +# @SUPPORTED_EAPIS: 6 7 8
    # @BLURB: Eclass for vim{,-plugin}.eclass to update documentation tags.
    # @DESCRIPTION:
    # This eclass is used by vim.eclass and vim-plugin.eclass to update
    # the documentation tags. This is necessary since vim doesn't look in
    # /usr/share/vim/vimfiles/doc for documentation; it only uses the
    # versioned directory, for example /usr/share/vim/vim62/doc
    #
    # We depend on vim being installed, which is satisfied by either the
    # DEPEND i