From 0c201b4f1acda21127b12a5e77ce04d8e1538844 Mon Sep 17 00:00:00 2001 From: Aron Griffis Date: Sat, 27 Sep 2003 22:30:55 +0000 Subject: use exuberant-ctags for vim --- eclass/vim.eclass | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) (limited to 'eclass/vim.eclass') diff --git a/eclass/vim.eclass b/eclass/vim.eclass index 8a6bfd8fb77c..4fdffcca47b1 100644 --- a/eclass/vim.eclass +++ b/eclass/vim.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.38 2003/09/10 13:58:21 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.39 2003/09/27 22:30:55 agriffis Exp $ # Authors: # Ryan Phillips @@ -48,13 +48,20 @@ HOMEPAGE="http://www.vim.org/" SLOT="0" LICENSE="vim" -# portage dependency is for use_with/use_enable -DEPEND="$DEPEND >=sys-apps/portage-2.0.45-r3 +# Portage dependancy is for use_with/use_enable. +# ctags dependancy allows help tags to be rebuilt properly, along +# with detection of exuberant-ctags by configure. +DEPEND="$DEPEND + >=sys-apps/portage-2.0.45-r3 >=sys-apps/sed-4 sys-devel/autoconf ncurses? ( >=sys-libs/ncurses-5.2-r2 ) : ( sys-libs/libtermcap-compat ) + dev-util/ctags + " +RDEPEND="$RDEPEND + ncurses? ( >=sys-libs/ncurses-5.2-r2 ) : ( sys-libs/libtermcap-compat ) + dev-util/ctags " -RDEPEND="$RDEPEND ncurses? ( >=sys-libs/ncurses-5.2-r2 ) : ( sys-libs/libtermcap-compat )" apply_vim_patches() { local p @@ -129,8 +136,18 @@ vim_src_unpack() { sed -i 's/defout/stdout/g' ${S}/src/if_ruby.c # Read vimrc and gvimrc from /etc/vim - echo '#define SYS_VIMRC_FILE "/etc/vim/vimrc"' >> src/feature.h - echo '#define SYS_GVIMRC_FILE "/etc/vim/gvimrc"' >> src/feature.h + echo '#define SYS_VIMRC_FILE "/etc/vim/vimrc"' >> ${S}/src/feature.h + echo '#define SYS_GVIMRC_FILE "/etc/vim/gvimrc"' >> ${S}/src/feature.h + + # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. + # Hopefully this pattern won't break for a while at least. + # This fixes bug 29398 (27 Sep 2003 agriffis) + sed -i 's/\