Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Is there any short syntax for REQUIRED_USE when a lot of USE flags need another one enabled?
Date: Mon, 16 Jan 2012 18:04:32
Message-Id: 4F14640A.2030407@gentoo.org
In Reply to: Re: [gentoo-portage-dev] Is there any short syntax for REQUIRED_USE when a lot of USE flags need another one enabled? by Zac Medico
1 On 12/17/2011 08:50 AM, Zac Medico wrote:
2 > On 12/17/2011 02:24 AM, Pacho Ramos wrote:
3 >> I am referring in this case to abiword, it has a "plugins" USE flag that
4 >> enables some minimal set of plugins and, then, a lot of USE flags for
5 >> building extra plugins (with extra dependencies). All of this extra
6 >> plugins need "plugins" USE flag to be enabled. Is there any way to write
7 >> a REQUIRED_USE flag variable without needing to list all USE flags
8 >> depending on "plugins" to be set?
9 >
10 > I don't think so. You could file a PMS bug for an extension in the next
11 > EAPI. I guess it could look something like this:
12 >
13 > || ( foo bar ) ? ( plugins )
14
15 It turns out that De Morgan's law allows it to be expressed with
16 existing syntax:
17
18 !plugins? ( !foo !bar )
19
20 Thanks to Ulrich Müller for pointing this out:
21
22 https://bugs.gentoo.org/show_bug.cgi?id=399069#c1
23
24 --
25 Thanks,
26 Zac