Gentoo Archives: gentoo-python

From: Mike Gilbert <floppym@g.o>
To: "Michał Górny" <mgorny@g.o>
Cc: gentoo-python@l.g.o, python@g.o
Subject: [gentoo-python] Re: [PATCH] Add python_gen_cond_dep().
Date: Thu, 27 Dec 2012 22:38:54
Message-Id: CAJ0EP40JA2H4v9q3v3iYig_YoJFvC=iwnO+C9t_N5=pgXb09fg@mail.gmail.com
In Reply to: [gentoo-python] [PATCH] Add python_gen_cond_dep(). by "Michał Górny"
1 On Thu, Dec 27, 2012 at 4:59 PM, Michał Górny <mgorny@g.o> wrote:
2 > I don't have a good idea how to make enforcing USE deps inside easier
3 > than $(python_gen_cond_dep dev-foo/bar[$(python_gen_usedep IMPLS)]
4 > IMPLS) without adding some risky magic.
5
6 Just to confirm my thoughts, say we have this:
7
8 PYTHON_COMPAT=( python2_6 python2_7 python3_2 )
9
10 RDEPEND="$(python_gen_cond_dep dev-python/foo[$(python_gen_usedep
11 python2*)] python2*)"
12
13 I think you would end up with something like this:
14
15 python_targets_python2_6? (
16 python_targets_python2_6?,python_targets_python2_7?] )
17 python_targets_python2_7? (
18 python_targets_python2_6?,python_targets_python2_7?] )
19
20 Right? Looks a bit odd, but I guess it works.

Replies

Subject Author
[gentoo-python] Re: [PATCH] Add python_gen_cond_dep(). Mike Gilbert <floppym@g.o>
Re: [gentoo-python] Re: [PATCH] Add python_gen_cond_dep(). "Michał Górny" <mgorny@g.o>