summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2010-04-23 19:01:37 +0000
committerJeremy Olexa <darkside@gentoo.org>2010-04-23 19:01:37 +0000
commit88232602034bb0e50bca1f7a55c3bb982f1d6786 (patch)
tree75ef36fe88d5861a8d8eb2b9b76d087415290317 /eclass/vim-doc.eclass
parentUse hardfloat only if hardfloat is true (diff)
downloadhistorical-88232602034bb0e50bca1f7a55c3bb982f1d6786.tar.gz
historical-88232602034bb0e50bca1f7a55c3bb982f1d6786.tar.bz2
historical-88232602034bb0e50bca1f7a55c3bb982f1d6786.zip
Add EROOT (EAPI3) support to vim-doc & vim-spell eclasses
Diffstat (limited to 'eclass/vim-doc.eclass')
-rw-r--r--eclass/vim-doc.eclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/vim-doc.eclass b/eclass/vim-doc.eclass
index 62a859be0aea..c2c5f7cc42cc 100644
--- a/eclass/vim-doc.eclass
+++ b/eclass/vim-doc.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/vim-doc.eclass,v 1.15 2007/05/14 20:04:07 pioto Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vim-doc.eclass,v 1.16 2010/04/23 19:01:37 darkside Exp $
#
# 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
@@ -13,10 +13,11 @@
update_vim_helptags() {
+ has "${EAPI:-0}" 0 1 2 && ! use prefix && EROOT="${ROOT}"
local vimfiles vim d s
# This is where vim plugins are installed
- vimfiles="${ROOT}"/usr/share/vim/vimfiles
+ vimfiles="${EROOT}"/usr/share/vim/vimfiles
if [[ $PN != vim-core ]]; then
# Find a suitable vim binary for updating tags :helptags
@@ -37,7 +38,7 @@ update_vim_helptags() {
# Install the documentation symlinks into the versioned vim
# directory and run :helptags
- for d in "${ROOT}"/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, and possibly remove stale dirs