On 05/07/2012 12:33 PM, Stelian Ionescu wrote:
> Isn't it the time to make a new EAPI which no longer has USE "flags" but
> USE "values" ? Many of the really weird USE flags combinations would be
> much more clearly expressed if the possible types for a USE variable
> were:
> 1) member-of: for choosing the backend of certain functionality; e.g.
> all combinations of USE="ssl openssl gnutls nss" would become e.g.
> in the ebuild:
> USE="ssl=[member-of: openssl,gnutls,nss]"
> in make-conf:
> USE: ssl=openssl, as synonymous of old USE="ssl openssl", or
> USE: ssl=none, as synonymous of old USE="-ssl"
> 2) subset-of: for selecting a number of modules to build. This would
> replace USE_EXPAND quite neatly
> 3) boolean: as alias for member-of: [true,false]
> 4) unsigned int: IIRC some (few) packages can take optional uint at
> configure-time. for example with dev-lisp/sbcl one can customize some
> hardcoded GC parameters suchs as the default heap size, generation size,
> etc...
> 
> In the above case, one could have a USE variable named "webkit" of type
> member-of: [qt,gtk]

We can get similar results using booleans with REQUIRED_USE, and your
approach seems to introduce needless complexity.
-- 
Thanks,
Zac

Reply via email to