27 lines
612 B
Bash
27 lines
612 B
Bash
|
# Copyright 1999-2007 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: $
|
||
|
|
||
|
inherit vim-plugin
|
||
|
|
||
|
DESCRIPTION="vim plugin: nginx configuration file syntax"
|
||
|
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=1886"
|
||
|
SRC_URI=""
|
||
|
LICENSE="as-is"
|
||
|
KEYWORDS="ppc x86 amd64"
|
||
|
IUSE=""
|
||
|
|
||
|
VIM_PLUGIN_HELPFILES=""
|
||
|
VIM_PLUGIN_HELPTEXT=""
|
||
|
VIM_PLUGIN_HELPURI=""
|
||
|
VIM_PLUGIN_MESSAGES=""
|
||
|
|
||
|
src_unpack () {
|
||
|
mkdir -p ${S}/syntax
|
||
|
cp ${FILESDIR}/nginx.vim ${S}/syntax
|
||
|
mkdir -p ${S}/ftdetect
|
||
|
echo 'au BufNewFile,BufRead /etc/nginx/* set filetype=nginx' \
|
||
|
> ${S}/ftdetect/nginx.vim
|
||
|
}
|
||
|
|