summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorCiaran McCreesh <ciaranm@gentoo.org>2005-09-28 19:59:46 +0000
committerCiaran McCreesh <ciaranm@gentoo.org>2005-09-28 19:59:46 +0000
commit742b782fe572717614275c066e07e48b1ab8d54a (patch)
tree49e921efe260683cdd8c428c8136325f6382ebdd /eclass
parentStable on amd64 (diff)
downloadgentoo-2-742b782fe572717614275c066e07e48b1ab8d54a.tar.gz
gentoo-2-742b782fe572717614275c066e07e48b1ab8d54a.tar.bz2
gentoo-2-742b782fe572717614275c066e07e48b1ab8d54a.zip
add some post install messages
Diffstat (limited to 'eclass')
-rw-r--r--eclass/vim-spell.eclass27
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
+}
+