summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiaran McCreesh <ciaranm@gentoo.org>2005-01-22 19:45:55 +0000
committerCiaran McCreesh <ciaranm@gentoo.org>2005-01-22 19:45:55 +0000
commit63a9732f1cb813d1be8f5097707b73230c5be734 (patch)
tree85d9ab91a4cebcf06701bb17a0fe2ff51f621819 /eclass/vim.eclass
parentAdd local "irmc" USE flag for net-wireless/kdebluetooth. (diff)
downloadgentoo-2-63a9732f1cb813d1be8f5097707b73230c5be734.tar.gz
gentoo-2-63a9732f1cb813d1be8f5097707b73230c5be734.tar.bz2
gentoo-2-63a9732f1cb813d1be8f5097707b73230c5be734.zip
add in bash completion things, bug 79018
Diffstat (limited to 'eclass/vim.eclass')
-rw-r--r--eclass/vim.eclass19
1 files changed, 18 insertions, 1 deletions
diff --git a/eclass/vim.eclass b/eclass/vim.eclass
index d5f1be4f30d3..3ba6c402547b 100644
--- a/eclass/vim.eclass
+++ b/eclass/vim.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.92 2005/01/21 22:19:40 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.93 2005/01/22 19:45:55 ciaranm Exp $
# Authors:
# Ryan Phillips <rphillips@gentoo.org>
@@ -39,6 +39,10 @@ if [[ "${PN##*-}" == "cvs" ]] ; then
inherit cvs
fi
+if [[ $(get_major_version -ge 7 ) ]] ; then
+ inherit bash-completion
+fi
+
ECLASS=vim
INHERITED="$INHERITED $ECLASS"
EXPORT_FUNCTIONS src_unpack pkg_setup
@@ -536,6 +540,15 @@ src_install() {
fperms a+x /usr/share/vim/vim${VIM_VERSION//./}/macros/manpager.sh
fi
fi
+
+ # bash completion script, bug #79018.
+ if [[ $(get_major_version ) -ge 7 ]] ; then
+ if [[ "${MY_PN}" == "vim-core" ]] ; then
+ dobashcompletion ${FILESDIR}/xxd-completion xxd
+ else
+ dobashcompletion ${FILESDIR}/${MY_PN}-completion ${MY_PN}
+ fi
+ fi
}
# Make convenience symlinks, hopefully without stepping on toes. Some
@@ -636,6 +649,10 @@ pkg_postinst() {
ebeep 5
fi
+ if [[ $(get_major_version ) -ge 7 ]] ; then
+ bash-completion_pkg_postinst
+ fi
+
# Make convenience symlinks
update_vim_symlinks
}