summaryrefslogtreecommitdiff
blob: 9a0d3b6aa4681c7e5bf62b1242a030621de62e1c (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-vim/doxygen-syntax/doxygen-syntax-1.12.ebuild,v 1.8 2006/11/23 06:12:47 wormo Exp $

inherit vim-plugin

DESCRIPTION="vim plugin: syntax higlighting for doxygen"
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=5"
LICENSE="as-is"
KEYWORDS="alpha amd64 arm ~hppa ia64 mips ppc ppc64 s390 sh sparc x86"
IUSE=""

VIM_PLUGIN_HELPFILES="doxygen.vim"

src_unpack() {
	unpack ${A}
	cd ${S}
	# make this work with the screwy vim7-supplied synload.vim, and fix the
	# bug which causes it to try to use b:current_syntax when it's unset.
	sed -e "/^let s:cpo_save/iif ! exists('b:current_syntax') | \
let b:current_syntax='' | endif" \
		-e "s/^if !exists('b:current_syntax')$/& || b:current_syntax == ''/" \
		-e '1iau! Syntax cpp,c,idl' \
		-e '1iau! Syntax *doxygen' \
		-i syntax/doxygen.vim || \
		die "sed failed"
}