From: "Jim Ramsay (lack)" <lack@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: vim.eclass
Date: Fri, 26 Mar 2010 18:40:26 +0000 [thread overview]
Message-ID: <E1NvESI-0004aN-47@stork.gentoo.org> (raw)
lack 10/03/26 18:40:26
Modified: vim.eclass
Log:
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.
Revision Changes Path
1.182 eclass/vim.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/vim.eclass?rev=1.182&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/vim.eclass?rev=1.182&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/vim.eclass?r1=1.181&r2=1.182
Index: vim.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v
retrieving revision 1.181
retrieving revision 1.182
diff -u -r1.181 -r1.182
--- vim.eclass 23 Mar 2010 16:02:36 -0000 1.181
+++ vim.eclass 26 Mar 2010 18:40:26 -0000 1.182
@@ -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 <i.am@gentoo.org>
@@ -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 @@
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}
!<app-vim/align-30-r1
!app-vim/vimspell
!<app-vim/vimbuddy-0.9.1-r1
@@ -240,9 +237,16 @@
mkdir -p "${T}/home"
export HOME="${T}/home"
- # [g]vim needs dev-lang/python[threads]
- if [[ ${MY_PN} != "vim-core" ]] && use python && ! built_with_use dev-lang/python threads; then
- die "You must build dev-lang/python with USE=threads"
+ if [[ ${MY_PN} != "vim-core" ]] && use python; then
+ # vim supports python-2 only
+ python_set_active_version 2
+ if [[ $HAS_USE_DEP ]]; then
+ # python.eclass only defines python_pkg_setup for EAPIs that support
+ # USE dependencies
+ python_pkg_setup
+ elif ! built_with_use =dev-lang/python-2* threads; then
+ die "You must build dev-lang/python with USE=threads"
+ fi
fi
}
next reply other threads:[~2010-03-26 18:40 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-26 18:40 Jim Ramsay (lack) [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-11-28 18:13 [gentoo-commits] gentoo-x86 commit in eclass: vim.eclass Jim Ramsay (lack)
2011-08-20 15:46 Jim Ramsay (lack)
2011-08-18 2:48 Jim Ramsay (lack)
2011-07-13 4:22 Jim Ramsay (lack)
2011-07-13 1:06 Jim Ramsay (lack)
2011-03-28 6:47 Diego Petteno (flameeyes)
2011-03-24 17:43 Jim Ramsay (lack)
2011-03-14 8:22 Tim Harder (radhermit)
2011-03-06 10:19 Tim Harder (radhermit)
2011-01-04 13:55 Jim Ramsay (lack)
2010-07-20 13:53 Jim Ramsay (lack)
2010-07-15 13:11 Jim Ramsay (lack)
2010-06-09 18:35 Jim Ramsay (lack)
2010-05-03 1:41 Jim Ramsay (lack)
2010-04-15 19:23 Jeremy Olexa (darkside)
2010-03-28 2:23 Jim Ramsay (lack)
2010-03-23 16:02 Jeremy Olexa (darkside)
2009-10-21 22:20 Jim Ramsay (lack)
2009-10-17 18:30 Jim Ramsay (lack)
2009-10-17 17:10 Jim Ramsay (lack)
2009-10-17 13:43 Jim Ramsay (lack)
2009-10-14 1:29 Jim Ramsay (lack)
2009-10-11 11:49 Markus Meier (maekke)
2009-05-18 17:02 Jim Ramsay (lack)
2008-10-10 13:44 Ali Polatel (hawking)
2008-07-26 14:20 Ali Polatel (hawking)
2008-04-06 9:22 Ali Polatel (hawking)
2008-03-03 15:09 Ali Polatel (hawking)
2008-01-09 21:14 Ali Polatel (hawking)
2007-11-07 15:01 Ali Polatel (hawking)
2007-09-27 9:32 Ali Polatel (hawking)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1NvESI-0004aN-47@stork.gentoo.org \
--to=lack@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox