Signed-off-by: David Seifert <s...@gentoo.org>
---
 eclass/vim-doc.eclass | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/eclass/vim-doc.eclass b/eclass/vim-doc.eclass
index 119ce793071d..6711dadf7617 100644
--- a/eclass/vim-doc.eclass
+++ b/eclass/vim-doc.eclass
@@ -1,10 +1,10 @@
-# 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
 # @MAINTAINER:
 # v...@gentoo.org
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 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
@@ -17,11 +17,12 @@
 # installed by the eclass.
 
 case ${EAPI} in
-       6|7|8) ;;
+       7|8) ;;
        *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
-if [[ ! ${_VIM_DOC_ECLASS} ]] ; then
+if [[ -z ${_VIM_DOC_ECLASS} ]]; then
+_VIM_DOC_ECLASS=1
 
 # @FUNCTION: update_vim_helptags
 # @USAGE:
@@ -54,7 +55,7 @@ update_vim_helptags() {
 
        # Install the documentation symlinks into the versioned vim
        # directory and run :helptags
-       for d in "${EROOT%/}"/usr/share/vim/vim[0-9]*; do
+       for d in "${EROOT}"/usr/share/vim/vim[0-9]*; do
                [[ -d "${d}/doc" ]] || continue # catch a failed glob
 
                # Remove links
@@ -100,5 +101,4 @@ update_vim_helptags() {
        fi
 }
 
-_VIM_DOC_ECLASS=1
 fi
-- 
2.46.0


Reply via email to