summaryrefslogtreecommitdiff
blob: b4bb3683ec851fc19b55c0b9968d279e5e0c1c55 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-vim/cecutil/cecutil-4.ebuild,v 1.2 2005/02/22 23:45:57 agriffis Exp $

inherit vim-plugin

DESCRIPTION="vim plugin: library used by many of Charles Campbell's plugins"
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=1066"
LICENSE="vim"
KEYWORDS="~x86 ~sparc ~mips ~ppc ~amd64 ~alpha ~ia64"
IUSE=""

VIM_PLUGIN_HELPTEXT=\
"This plugin provides library functions and is not intended to be used
directly by the user. Documentation is available via ':help cecutil.txt'."

src_unpack() {
	unpack ${A}
	cd ${S}
	# automatic help extraction. woohoo! someone please shoot me now...
	mkdir -p ${S}/doc
	sed -n -e '/^\*cecutil.txt\*/,$p' ${S}/plugin/cecutil.vim \
			> ${S}/doc/cecutil.txt \
			|| die "sed 1 failed. not good."
	sed -i -e '/^" HelpExtractor:/,$d' ${S}/plugin/cecutil.vim \
			|| die "sed 2 failed. not good."
}