summaryrefslogtreecommitdiff
blob: 11317c3e45bfd722782e6bc7768e6c311636b09d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-vim/autoalign/autoalign-5.ebuild,v 1.9 2008/09/20 12:14:51 hawking Exp $

inherit vim-plugin

DESCRIPTION="vim plugin: automatically align bib, c, c++, tex and vim code"
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=884"
LICENSE="vim"
KEYWORDS="alpha amd64 ia64 mips ppc sparc x86"
IUSE=""

RDEPEND=">=app-vim/align-30
	>=app-vim/cecutil-4
	!>=app-editors/vim-core-7"

VIM_PLUGIN_HELPFILES="autoalign"

src_unpack() {
	unpack ${A}
	cd "${S}"
	# Don't use the cecutil.vim included in the tarball, use the one
	# provided by app-vim/cecutil instead.
	rm plugin/cecutil.vim
}

pkg_postinst() {
	vim-plugin_pkg_postinst

	ewarn
	ewarn "This plugin only works properly when vim is in virtualedit"
	ewarn "mode. To enable this, use:"
	ewarn "    :set virtualedit=all"
	ewarn
}