• [gentoo-dev] [PATCH v2 3/8] vim-plugin.eclass: EAPI 8: install allowed

    From Anna Vyalkova@21:1/5 to All on Wed Apr 6 14:40:01 2022
    Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in>
    ---

    Some ebuilds will need to override src_install as shown in example.

    eclass/vim-plugin.eclass | 38 +++++++++++++++++++++++++++++++-------
    1 file changed, 31 insertions(+), 7 deletions(-)

    diff --git a/eclass/vim-plugin.eclass b/eclass/vim-plugin.eclass
    index eac7dea52d..cbf4525354 100644
    --- a/eclass/vim-plugin.eclass
    +++ b/eclass/vim-plugin.eclass
    @@ -31,13 +31,29 @@ if [[ ${PV} != 9999* ]] ; then
    fi
    SLOT="0"

    -# @FUNCTION: vim-plugin_src_install
    +# @ECLASS_VARIABLE: _VIM_PLUGIN_ALLOWED_DIRS
    +# @INTERNAL
    +# @DESCRIPTION:
    +# Vanilla Vim dirs.
    +# See /usr/share/vim/vim* for reference.
    +_VIM_PLUGIN_ALLOWED_DIRS=(
    + after autoload colors compiler doc ftdetect ftplugin indent keymap
    + macros plugin spell syntax
    +)
    +
    +# @FUNCTION: vim-plugin_src_install [<dir>...]
    # @USAGE:
    # @DESCRIPTION:
    # Overrides the default src_install phase. In order, this function:
    -# * fixes file permission across all files in ${S}.
    # * installs help and documentation files.
    -# * installs all f