alpha-quadrant/app-vim/nginx-syntax/nginx-syntax-0.1.ebuild

27 lines
612 B
Bash
Raw Normal View History

2009-09-21 15:31:15 +02:00
# 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
}