On Sun, Jan 4, 2009 at 9:16 PM, Tomáš Chvátal <scarab...@gentoo.org> wrote: > This is all nice but i had one issue which was like this: > i have package with use foo and package2 with use bar > and package with foo depend on package2 with bar. > > so this is not eapi2 incely handleable, what i would like to do is using > arrows or something like that > > package2[foo?->bar] or package2[foo->bar?] > > now i handle it that way both packages have same useflag.
How about this: New syntax Expanded syntax Extension of -------------------------------------------------------------------------------------------------------- pkg[foo?bar] foo? ( cat/pkg[bar] ) !foo? ( cat/pkg ) cat/pkg[foo?] pkg[!foo?bar] foo? ( cat/pkg ) !foo? ( cat/pkg[bar] ) cat/pkg[foo?] pkg[foo=bar] foo? ( cat/pkg[bar] ) !foo? ( cat/pkg[-bar] ) cat/pkg[foo=] pkg[!foo=bar] foo? ( cat/pkg[-bar] ) !foo? ( cat/pkg[bar] ) cat/pkg[!foo=] IMO, this is simple enough to understand, and use :) -- ~Nirbheek Chauhan