diff options
author | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-09-28 19:59:46 +0000 |
---|---|---|
committer | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-09-28 19:59:46 +0000 |
commit | 9127e3b82c6d3f5c2da545bf9823d1afaf1c3163 (patch) | |
tree | ee7fe0ec02ce30dd871ecd8e7c5922f5959c488a /eclass/vim-spell.eclass | |
parent | Stable on amd64 (diff) | |
download | historical-9127e3b82c6d3f5c2da545bf9823d1afaf1c3163.tar.gz historical-9127e3b82c6d3f5c2da545bf9823d1afaf1c3163.tar.bz2 historical-9127e3b82c6d3f5c2da545bf9823d1afaf1c3163.zip |
add some post install messages
Diffstat (limited to 'eclass/vim-spell.eclass')
-rw-r--r-- | eclass/vim-spell.eclass | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/eclass/vim-spell.eclass b/eclass/vim-spell.eclass index bd826606a072..7448ea2e2f27 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.2 2005/09/28 19:13:13 ciaranm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vim-spell.eclass,v 1.3 2005/09/28 19:59:46 ciaranm Exp $ # # Original Author: Ciaran McCreesh <ciaranm@gentoo.org> @@ -55,7 +55,9 @@ # spell files. It's best to let upstream know if you've generated spell files # for another language rather than keeping them Gentoo-specific. -EXPORT_FUNCTIONS src_install +inherit eutils + +EXPORT_FUNCTIONS src_install pkg_postinst IUSE="" DEPEND="|| ( >=app-editors/vim-7_alpha @@ -94,3 +96,24 @@ vim-spell_src_install() { [[ -z "${had_spell_file}" ]] && die "Didn't install any spell files?" } +vim-spell_pkg_postinst() { + target="/usr/share/vim/vimfiles/spell/" + echo + einfo "To enable ${VIM_SPELL_LANGUAGE} spell checking, use" + einfo " :setlocal spell spelllang=${VIM_SPELL_CODE}" + echo + einfo "The following (Vim internal, not file) encodings are supported for" + einfo "this language:" + for f in "${ROOT}/${target}/${VIM_SPELL_CODE}".*.spl ; do + enc="${f##*/${VIM_SPELL_CODE}.}" + enc="${enc%.spl}" + [[ -z "${enc}" ]] && continue + einfo " ${enc}" + done + echo + einfo "For further documentation, use:" + einfo " :help spell" + echo + epause +} + |