blob: 28ac7150e8a0b43e14a84862dfb1f60224c77903 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-vim/vimpython/vimpython-1.7.ebuild,v 1.9 2006/01/08 07:42:42 josejx Exp $
inherit vim-plugin
DESCRIPTION="vim plugin: improvements for editing python scripts"
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=30"
LICENSE="vim"
KEYWORDS="alpha amd64 ia64 ppc sparc x86"
IUSE=""
DEPEND="${DEPEND} >=sys-apps/sed-4"
VIM_PLUGIN_HELPURI="http://www.vim.org/scripts/script.php?script_id=30"
function src_unpack() {
unpack ${A}
# We know that we've got *vim >= 6.2, so we can safely enable the
# function which needs try/catch support.
sed -i \
-e '/" function! s:JumpToAndUnfoldWithExceptions/,/^$/s/" \?//' \
${S}/plugin/python.vim || die "Sed magic failed"
}
|