From 1aa24bfe479db99e403a03cea38b29f2cbccd828 Mon Sep 17 00:00:00 2001 From: Mike Kelly Date: Mon, 7 May 2007 19:06:14 +0000 Subject: Add VIM_PLUGIN_VIM_VERSION to allow setting the minimum vim version properly. --- eclass/vim-plugin.eclass | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'eclass/vim-plugin.eclass') diff --git a/eclass/vim-plugin.eclass b/eclass/vim-plugin.eclass index 3ba8595303be..b9ffc0b262e2 100644 --- a/eclass/vim-plugin.eclass +++ b/eclass/vim-plugin.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-plugin.eclass,v 1.20 2007/03/21 03:40:22 pioto Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vim-plugin.eclass,v 1.21 2007/05/07 19:06:14 pioto Exp $ # # This eclass simplifies installation of app-vim plugins into # /usr/share/vim/vimfiles. This is a version-independent directory @@ -10,9 +10,11 @@ inherit vim-doc EXPORT_FUNCTIONS src_install pkg_postinst pkg_postrm +VIM_PLUGIN_VIM_VERSION="${VIM_PLUGIN_VIM_VERSION:-6.4}" + IUSE="" -DEPEND="|| ( >=app-editors/vim-6.3 - >=app-editors/gvim-6.3 )" +DEPEND="|| ( >=app-editors/vim-${VIM_PLUGIN_VIM_VERSION} + >=app-editors/gvim-${VIM_PLUGIN_VIM_VERSION} )" RDEPEND="${DEPEND}" SRC_URI="mirror://gentoo/${P}.tar.bz2" SLOT="0" -- cgit v1.2.3-65-gdbad