Gentoo Archives: gentoo-dev

From: Nirbheek Chauhan <nirbheek.chauhan@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] USE dependencies
Date: Sun, 04 Jan 2009 16:04:21
Message-Id: 8b4c83ad0901040804v2e87a7bdn2066f8a7e928c800@mail.gmail.com
In Reply to: Re: [gentoo-dev] USE dependencies by "Tomáš Chvátal"
1 On Sun, Jan 4, 2009 at 9:16 PM, Tomáš Chvátal <scarabeus@g.o> wrote:
2 > This is all nice but i had one issue which was like this:
3 > i have package with use foo and package2 with use bar
4 > and package with foo depend on package2 with bar.
5 >
6 > so this is not eapi2 incely handleable, what i would like to do is using
7 > arrows or something like that
8 >
9 > package2[foo?->bar] or package2[foo->bar?]
10 >
11 > now i handle it that way both packages have same useflag.
12
13 How about this:
14
15 New syntax Expanded syntax
16 Extension of
17 --------------------------------------------------------------------------------------------------------
18 pkg[foo?bar] foo? ( cat/pkg[bar] ) !foo? ( cat/pkg )
19 cat/pkg[foo?]
20 pkg[!foo?bar] foo? ( cat/pkg ) !foo? ( cat/pkg[bar] )
21 cat/pkg[foo?]
22 pkg[foo=bar] foo? ( cat/pkg[bar] ) !foo? ( cat/pkg[-bar] )
23 cat/pkg[foo=]
24 pkg[!foo=bar] foo? ( cat/pkg[-bar] ) !foo? ( cat/pkg[bar] )
25 cat/pkg[!foo=]
26
27 IMO, this is simple enough to understand, and use :)
28
29 --
30 ~Nirbheek Chauhan

Replies

Subject Author
Re: [gentoo-dev] USE dependencies Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>