Gentoo Archives: gentoo-dev

From: Jim Ramsay <lack@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] app-editors/vim-7.3 and python[3] USE flags
Date: Thu, 19 Aug 2010 17:01:00
Message-Id: 20100819170017.GB11206@woodpecker.gentoo.org
1 With the advent of vim-7.3 that I just threw at the tree, we now
2 have optional python-3 support for this package. But how to
3 model this in USE flags?
4
5 The upstream ./configure has --enable-pythoninterp and
6 --enable-python3interp, the former for python2 support (via the
7 vim ':py' command) and the latter for python3 support (via the
8 vim ':py3' command). You can enable one, or the other, or both,
9 or none.
10
11 So, I can see a couple ways of doing this:
12
13 Option 1: IUSE="python python3"
14
15 Where python -> --enable-pythoninterp
16 And python3 -> --enable-python3interp
17
18 This means if you want python3 support and not python2 support
19 you would need USE="-python +python3" A bit confusing, perhaps?
20 Or if I set the local flag description properly, is it okay?
21
22 Option 2: IUSE="python2 python3"
23
24 Just get rid of the 'python' USE flag entirely, which is a bit
25 odd in its own way...
26
27 Any other suggestions or comments on these two?
28
29 --
30 Jim Ramsay
31 Gentoo/Linux Developer (rox/fluxbox/gkrellm/vim)

Replies