/[gentoo-x86]/eclass/vim-spell.eclass
Gentoo

Diff of /eclass/vim-spell.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 Revision 1.8
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/vim-spell.eclass,v 1.7 2009/07/07 18:54:05 arfrever Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/vim-spell.eclass,v 1.8 2010/04/23 19:01:37 darkside Exp $
4 4
5# 5#
6# Original Author: Ciaran McCreesh <ciaranm@gentoo.org> 6# Original Author: Ciaran McCreesh <ciaranm@gentoo.org>
7# Maintainers: Vim Herd <vim@gentoo.org> 7# Maintainers: Vim Herd <vim@gentoo.org>
8# Purpose: Simplify installing spell files for vim7 8# Purpose: Simplify installing spell files for vim7
103 103
104 [[ -z "${had_spell_file}" ]] && die "Didn't install any spell files?" 104 [[ -z "${had_spell_file}" ]] && die "Didn't install any spell files?"
105} 105}
106 106
107vim-spell_pkg_postinst() { 107vim-spell_pkg_postinst() {
108 has "${EAPI:-0}" 0 1 2 && ! use prefix && EROOT="${ROOT}"
108 target="/usr/share/vim/vimfiles/spell/" 109 target="/usr/share/vim/vimfiles/spell/"
109 echo 110 echo
110 elog "To enable ${VIM_SPELL_LANGUAGE} spell checking, use" 111 elog "To enable ${VIM_SPELL_LANGUAGE} spell checking, use"
111 elog " :setlocal spell spelllang=${VIM_SPELL_CODE}" 112 elog " :setlocal spell spelllang=${VIM_SPELL_CODE}"
112 echo 113 echo
113 elog "The following (Vim internal, not file) encodings are supported for" 114 elog "The following (Vim internal, not file) encodings are supported for"
114 elog "this language:" 115 elog "this language:"
115 for f in "${ROOT}/${target}/${VIM_SPELL_CODE}".*.spl ; do 116 for f in "${EROOT}/${target}/${VIM_SPELL_CODE}".*.spl ; do
116 enc="${f##*/${VIM_SPELL_CODE}.}" 117 enc="${f##*/${VIM_SPELL_CODE}.}"
117 enc="${enc%.spl}" 118 enc="${enc%.spl}"
118 [[ -z "${enc}" ]] && continue 119 [[ -z "${enc}" ]] && continue
119 elog " ${enc}" 120 elog " ${enc}"
120 done 121 done

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20