mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
Bug: https://bugs.gentoo.org/473598 Bug: https://bugs.gentoo.org/720224 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
30 lines
859 B
Bash
30 lines
859 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit vim-plugin
|
|
|
|
DESCRIPTION="vim plugin: fluxbox files syntax and indent"
|
|
HOMEPAGE="https://www.vim.org/scripts/script.php?script_id=679"
|
|
|
|
LICENSE="vim"
|
|
KEYWORDS="~alpha amd64 arm ~hppa ~mips ppc ppc64 ~riscv ~sparc x86"
|
|
|
|
RDEPEND="app-vim/genindent"
|
|
|
|
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_prepare() {
|
|
default
|
|
mkdir ftdetect || die
|
|
echo "au BufNewFile,BufRead /*/*fluxbox/*menu set filetype=fluxbox" \
|
|
> ftdetect/fluxbox.vim || die
|
|
}
|