From 1c8609102dd0b6016a0edb5d16374a256d6d5694 Mon Sep 17 00:00:00 2001 From: Jim Ramsay Date: Fri, 26 Mar 2010 18:40:26 +0000 Subject: [PATCH] Fix for bug #311175 and bug #311179: Clean up python support app-editors/vim and app-editors/gvim both rely completely on vim.eclass, so this is the place to ensure we only use python2, since vim does not yet support python3. --- eclass/vim.eclass | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/eclass/vim.eclass b/eclass/vim.eclass index c7fd7a3a1adf..e6f4f79b6d6e 100644 --- a/eclass/vim.eclass +++ b/eclass/vim.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.181 2010/03/23 16:02:36 darkside Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.182 2010/03/26 18:40:26 lack Exp $ # Authors: # Jim Ramsay @@ -22,7 +22,12 @@ # -aqua -gtk -motif nextaw NEXTAW # -aqua -gtk -motif -nextaw ATHENA -inherit eutils vim-doc flag-o-matic versionator fdo-mime bash-completion prefix +if [[ ${MY_PN} != "vim-core" ]] ; then + # vim supports python-2 only + PYTHON_DEPEND="python? 2" + PYTHON_USE_WITH="threads" +fi +inherit eutils vim-doc flag-o-matic versionator fdo-mime bash-completion prefix python HOMEPAGE="http://www.vim.org/" SLOT="0" @@ -75,26 +80,18 @@ if [[ ${MY_PN} == "vim-core" ]] ; then else IUSE="${IUSE} cscope debug gpm perl python ruby" - if [[ $HAS_USE_DEP ]]; then - PYTHON_DEP="python? ( dev-lang/python[threads] )" - else - PYTHON_DEP="python? ( dev-lang/python )" - fi - DEPEND="${DEPEND} cscope? ( dev-util/cscope ) gpm? ( >=sys-libs/gpm-1.19.3 ) perl? ( dev-lang/perl ) acl? ( kernel_linux? ( sys-apps/acl ) ) - ruby? ( virtual/ruby ) - ${PYTHON_DEP}" + ruby? ( virtual/ruby )" RDEPEND="${RDEPEND} cscope? ( dev-util/cscope ) gpm? ( >=sys-libs/gpm-1.19.3 ) perl? ( dev-lang/perl ) acl? ( kernel_linux? ( sys-apps/acl ) ) ruby? ( virtual/ruby ) - ${PYTHON_DEP} !