Gentoo Archives: gentoo-dev

From: Stelian Ionescu <sionescu@××××.org>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] add global useflag: webkit
Date: Mon, 07 May 2012 19:35:06
Message-Id: 1336419228.14447.13.camel@cathai
In Reply to: Re: [gentoo-dev] add global useflag: webkit by Zac Medico
1 On Mon, 2012-05-07 at 11:11 -0700, Zac Medico wrote:
2 > On 05/06/2012 05:47 PM, Arfrever Frehtes Taifersar Arahesis wrote:
3 > > 2012-05-06 02:34:26 hasufell napisał(a):
4 > >> # grep :webkit use.local.desc | wc -l
5 > >> 33
6 > >>
7 > >> I would vote to make this a global useflag:
8 > >>
9 > >> webkit - Adds support for the webkit library/module
10 > >
11 > > I suggest to use separate qt-webkit (or webkit-qt) and webkit-gtk USE flags.
12 >
13 > Another possible way to model this kind of relationship would be to us
14 > REQUIRED_USE to enforce relationships with the qt and gtk flags:
15 >
16 > REQUIRED_USE="webkit? ( qt ) !webkit? ( !qt ) qt? ( webkit ) !qt? (
17 > !webkit )"
18 >
19 > versus
20 >
21 > REQUIRED_USE="webkit? ( gtk ) !webkit? ( !gtk ) gtk? ( webkit ) !gtk? (
22 > !webkit )"
23 >
24 > It's pretty awkward with the existing operators, but we could extend the
25 > REQUIRED_USE syntax to support an equivalent operator in a future EAPI.
26
27 Isn't it the time to make a new EAPI which no longer has USE "flags" but
28 USE "values" ? Many of the really weird USE flags combinations would be
29 much more clearly expressed if the possible types for a USE variable
30 were:
31 1) member-of: for choosing the backend of certain functionality; e.g.
32 all combinations of USE="ssl openssl gnutls nss" would become e.g.
33 in the ebuild:
34 USE="ssl=[member-of: openssl,gnutls,nss]"
35 in make-conf:
36 USE: ssl=openssl, as synonymous of old USE="ssl openssl", or
37 USE: ssl=none, as synonymous of old USE="-ssl"
38 2) subset-of: for selecting a number of modules to build. This would
39 replace USE_EXPAND quite neatly
40 3) boolean: as alias for member-of: [true,false]
41 4) unsigned int: IIRC some (few) packages can take optional uint at
42 configure-time. for example with dev-lisp/sbcl one can customize some
43 hardcoded GC parameters suchs as the default heap size, generation size,
44 etc...
45
46 In the above case, one could have a USE variable named "webkit" of type
47 member-of: [qt,gtk]
48
49 --
50 Stelian Ionescu a.k.a. fe[nl]ix
51 Quidquid latine dictum sit, altum videtur.
52 http://common-lisp.net/project/iolib

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] add global useflag: webkit Zac Medico <zmedico@g.o>