Gentoo Archives: gentoo-dev

From: Alexandre Rostovtsev <tetromino@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: l10n.eclass
Date: Fri, 20 Jul 2012 18:38:12
Message-Id: 1342809439.9434.56.camel@rook
In Reply to: Re: [gentoo-dev] RFC: l10n.eclass by Ciaran McCreesh
1 On Fri, 2012-07-20 at 18:54 +0100, Ciaran McCreesh wrote:
2 > On Fri, 20 Jul 2012 13:43:15 -0400
3 > Alexandre Rostovtsev <tetromino@g.o> wrote:
4 > > > If you dep upon foo[linguas_en(+)] and linguas_en isn't in IUSE,
5 > > > what happens?
6 > >
7 > > Fatal error. If a package installs its translations implicitly via
8 > > gettext's rules depending on the value of LINGUAS at configure time,
9 > > then obviously other packages must rely on that package having
10 > > installed any particular translation.
11 >
12 > Uh, the entire point of the (+) is that it's *not* a fatal error if you
13 > have a default.
14
15 That suggests that the EAPI ought to define a second category of
16 USE_EXPAND flags, one that has a different treatment of (+)/(-).
17
18 Something like the following:
19
20 A dependency on $foo[linguas_bar(+)] would be considered satisfied by an
21 ebuild X matching $foo iff:
22 1. X has linguas_bar in IUSE and enabled; or
23 2. X does not have linguas_bar in IUSE, but there exists an ebuild Y
24 (which may or may not equal X) matching $foo such that Y has at least
25 one linguas_* flag in IUSE.
26
27 -Alexandre.

Attachments

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

Replies

Subject Author
Re: [gentoo-dev] RFC: l10n.eclass Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>