diff options
author | Jeremy Olexa <darkside@gentoo.org> | 2010-04-23 19:01:37 +0000 |
---|---|---|
committer | Jeremy Olexa <darkside@gentoo.org> | 2010-04-23 19:01:37 +0000 |
commit | 88232602034bb0e50bca1f7a55c3bb982f1d6786 (patch) | |
tree | 75ef36fe88d5861a8d8eb2b9b76d087415290317 /eclass | |
parent | Use hardfloat only if hardfloat is true (diff) | |
download | historical-88232602034bb0e50bca1f7a55c3bb982f1d6786.tar.gz historical-88232602034bb0e50bca1f7a55c3bb982f1d6786.tar.bz2 historical-88232602034bb0e50bca1f7a55c3bb982f1d6786.zip |
Add EROOT (EAPI3) support to vim-doc & vim-spell eclasses
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/vim-doc.eclass | 7 | ||||
-rw-r--r-- | eclass/vim-spell.eclass | 5 |
2 files changed, 7 insertions, 5 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 diff --git a/eclass/vim-spell.eclass b/eclass/vim-spell.eclass index b6b6a8b66f0d..ff00b93e6e43 100644 --- a/eclass/vim-spell.eclass +++ b/eclass/vim-spell.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vim-spell.eclass,v 1.7 2009/07/07 18:54:05 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vim-spell.eclass,v 1.8 2010/04/23 19:01:37 darkside Exp $ # # Original Author: Ciaran McCreesh <ciaranm@gentoo.org> @@ -105,6 +105,7 @@ vim-spell_src_install() { } vim-spell_pkg_postinst() { + has "${EAPI:-0}" 0 1 2 && ! use prefix && EROOT="${ROOT}" target="/usr/share/vim/vimfiles/spell/" echo elog "To enable ${VIM_SPELL_LANGUAGE} spell checking, use" @@ -112,7 +113,7 @@ vim-spell_pkg_postinst() { echo elog "The following (Vim internal, not file) encodings are supported for" elog "this language:" - for f in "${ROOT}/${target}/${VIM_SPELL_CODE}".*.spl ; do + for f in "${EROOT}/${target}/${VIM_SPELL_CODE}".*.spl ; do enc="${f##*/${VIM_SPELL_CODE}.}" enc="${enc%.spl}" [[ -z "${enc}" ]] && continue |