blob: fbcb265557dda5cead18990501f9aef0c95aa1d3 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-vim/fluxbox-syntax/fluxbox-syntax-1.5.ebuild,v 1.7 2005/02/22 23:17:10 agriffis Exp $
inherit vim-plugin
DESCRIPTION="vim plugin: fluxbox files syntax and indent"
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=679"
LICENSE="as-is"
KEYWORDS="x86 sparc mips ~ppc amd64 ~ppc64 alpha ia64"
IUSE=""
RDEPEND="${RDEPEND} >=app-vim/genindent-1.0"
VIM_PLUGIN_HELPTEXT=\
"This plugin provides syntax highlighting and indent settings for fluxbox
menus and similar files. Upstream don't provide us with an ftdetect file,
but a simple one has been created for you by this ebuild. You can manually
set the filetype using :set filetype=fluxbox if necessary."
VIM_PLUGIN_MESSAGES="filetype"
src_unpack() {
unpack ${A}
cd ${S}
# no ftdetect file provided. lame...
mkdir ftdetect
echo "au BufNewFile,BufRead /*/*fluxbox/*menu set filetype=fluxbox" \
> ftdetect/fluxbox.vim
}
|