public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Nirbheek Chauhan" <nirbheek.chauhan@gmail.com>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] USE dependencies
Date: Sun, 4 Jan 2009 21:34:18 +0530	[thread overview]
Message-ID: <8b4c83ad0901040804v2e87a7bdn2066f8a7e928c800@mail.gmail.com> (raw)
In-Reply-To: <200901041646.09553.scarabeus@gentoo.org>

On Sun, Jan 4, 2009 at 9:16 PM, Tomáš Chvátal <scarabeus@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



  parent reply	other threads:[~2009-01-04 16:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-04 13:54 [gentoo-dev] USE dependencies Christian Faulhammer
2009-01-04 15:34 ` Nirbheek Chauhan
2009-01-04 15:46   ` Tomáš Chvátal
2009-01-04 15:56     ` Ciaran McCreesh
2009-01-04 16:04     ` Nirbheek Chauhan [this message]
2009-01-04 16:08       ` Ciaran McCreesh
2009-01-04 16:48         ` Nirbheek Chauhan
2009-01-04 16:58           ` David Leverton
2009-01-05  8:31             ` Nirbheek Chauhan
2009-01-05  8:40               ` Nirbheek Chauhan
2009-01-04 16:59           ` Ciaran McCreesh

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=8b4c83ad0901040804v2e87a7bdn2066f8a7e928c800@mail.gmail.com \
    --to=nirbheek.chauhan@gmail.com \
    --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