# ChangeLog for app-vim/vimspell
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-vim/vimspell/ChangeLog,v 1.19 2005/01/01 16:56:24 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-vim/vimspell/ChangeLog,v 1.20 2005/01/06 05:17:05 ciaranm Exp $
+
+*vimspell-1.95 (06 Jan 2005)
+
+ 06 Jan 2005; Ciaran McCreesh <ciaranm@gentoo.org> +vimspell-1.95.ebuild:
+ Bump, bug #76748
28 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> :
Change encoding to UTF-8 for GLEP 31 compliance
-MD5 53943ec7dc12ed8aedac59103cb4931f ChangeLog 2396
-MD5 9771ca4ff90b56dddc4acfadc6f6a01e metadata.xml 250
-MD5 729e825228035b73f2266eaafc36ed7f vimspell-1.70.ebuild 2310
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
MD5 3b08bffa34c4609e648f370a18bc29a1 vimspell-1.84-r1.ebuild 2478
+MD5 4f23e26f88034cb737d70e5aeda73482 ChangeLog 2518
MD5 e5837d99738147ac8bc95e7d4a4f1de4 vimspell-1.84.ebuild 2319
MD5 ffff775b7813d3f67bfc8c6971891a2f vimspell-1.84-r2.ebuild 2580
+MD5 26d265b087eb144a17f256aaf6a01b0e vimspell-1.95.ebuild 2357
+MD5 729e825228035b73f2266eaafc36ed7f vimspell-1.70.ebuild 2310
+MD5 9771ca4ff90b56dddc4acfadc6f6a01e metadata.xml 250
+MD5 20fccc61346c6688affc87332b25c0e3 files/digest-vimspell-1.95 65
+MD5 520de6488ff85f36d4f694cff73dd30b files/vimspell-1.84-explorersyntax.patch 509
+MD5 7101dd811b1925b8c3eb3c8544a289c0 files/digest-vimspell-1.84-r2 65
MD5 6a4ee637c8498ba26e82c61844aa5e55 files/digest-vimspell-1.70 65
MD5 7101dd811b1925b8c3eb3c8544a289c0 files/digest-vimspell-1.84 65
MD5 7101dd811b1925b8c3eb3c8544a289c0 files/digest-vimspell-1.84-r1 65
-MD5 520de6488ff85f36d4f694cff73dd30b files/vimspell-1.84-explorersyntax.patch 509
-MD5 7101dd811b1925b8c3eb3c8544a289c0 files/digest-vimspell-1.84-r2 65
MD5 bff67b402df306aff4515298e7472816 files/vimspell-1.84-aspell-0.6.patch 6219
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFB3MoMLLFUmVNQ7rkRAmf4AJ9jfK7+QFkPHOCn9hTtf1JDsWNEGACgx4QU
+n5zi8phZ+e9c42PR425ss0k=
+=WXEf
+-----END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-vim/vimspell/vimspell-1.95.ebuild,v 1.1 2005/01/06 05:17:05 ciaranm Exp $
+
+inherit eutils vim-plugin
+
+DESCRIPTION="vim plugin: on-the-fly spell checking with aspell"
+HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=465"
+LICENSE="|| ( GPL-1 GPL-2 )"
+KEYWORDS="~x86 ~sparc ~alpha ~ia64 ~ppc ~amd64 ~mips"
+IUSE=""
+
+VIM_PLUGIN_HELPFILES="vimspell"
+
+# In theory, this plugin supports either aspell or ispell. However,
+# virtual/spell has been removed by seemant in favour of just using
+# app-text/aspell:
+# 20:06 <@seemant> ciaranm: I think I might have removed it, come to
+# think of it, because I was on a kick to get everything converted
+# to aspell instead of ispell
+# 20:06 <@seemant> for the simple reason that ispell blows dogs
+# So we'll just force people to use aspell...
+RDEPEND="$RDEPEND app-text/aspell"
+
+function src_unpack() {
+ unpack ${A}
+ cd ${S}/plugin
+
+ # This plugin needs to be told which spell program to use. The default
+ # is hard-coded as 'ispell' in the plugin file. We can fix that with a
+ # bit of sed magic.
+ OLD_DEFAULT='s:SpellGetOption("spell_executable","ispell")'
+ NEW_DEFAULT='s:SpellGetOption("spell_executable","aspell")'
+ sed -e "s/$OLD_DEFAULT/$NEW_DEFAULT/g" \
+ -i vimspell.vim || die "default setting fix failed"
+
+ # This plugin also tries to install its own documentation automatically
+ # upon load. This breaks emerge unmerge, so we'll install the docs
+ # manually.
+ mkdir ${S}/doc || die
+ cd ${S}/doc
+ cp ${S}/plugin/vimspell.vim vimspell.txt
+
+ sed -e "1,/^=== \+START_DOC/d" \
+ -e "/^=== \+END_DOC/,\$d" \
+ -e "s/{{{[1-9]/ /g" \
+ -e "s/#version#/v${PV}/g" \
+ -i vimspell.txt || die "docs failed"
+ echo -ne "\n vim:tw=78:ts=8:ft=help:norl:\n" >> vimspell.txt
+
+ # Unfortunately, there's a rather large logic error in the documentation
+ # installation code. If vim can't write to /usr/share/vim/vimfiles/doc/
+ # then the plugin will try to install a copy of the docs locally, even if
+ # the global directory has an up-to-date copy. To get around this we'll
+ # make the SpellInstallDocumentation function do nothing.
+ cd ${S}/plugin
+ sed -e "/^function! s:SpellInstallDocumentation/a\ return 0" \
+ -i vimspell.vim || die "install fix failed"
+}