On Wed, 30 Jan 2013 01:39:16 +0100 Maciej Mrozowski <[email protected]> wrote:
> On Sunday 27 of January 2013 19:11:16 Micha³ Górny wrote: > > On Sun, 27 Jan 2013 21:04:14 +0300 > > > > Sergei Trofimovich <[email protected]> wrote: > > > On Sun, 27 Jan 2013 17:30:22 +0100 > > > > > > Micha³ Górny <[email protected]> wrote: > > > > On Sun, 27 Jan 2013 16:07:48 +0000 > > > > > > > > Ciaran McCreesh <[email protected]> wrote: > > > > > On Sun, 27 Jan 2013 16:12:37 +0100 > > > > > > > > > > Micha³ Górny <[email protected]> wrote: > > > > > > RDEPEND="dev-libs/libfoo[${MULTILIB_USEDEP}] > > > > > > > > > > > > dev-libs/libbar[ssl,${MULTILIB_USEDEP}]" > > > > > > > > > > This looks like it might be a bit fragile. Is it something better > > > > > addressed by an EAPI extension? > > > > > > > > I have no idea. This one's clear and simple. Not sure how you could be > > > > able to do that better in EAPI. > > > > > > EAPI might allow lib[multiple?][use?][flags?] as an alias of > > > [multiple?,use?,flags?]. > > I still don't think that would be really helpful. > > > > dev-libs/libfoo[ssl][${MULTILIB_USEDEP}] > > > > is IMO just more confusing than the usual [ssl,...] -- people start > > thinking 'does it mean something special?' > > > > Unless you mean adding the brackets to the variable itself -- but that > > will be just scary... > > > > dev-libs/libfoo${MULTILIB_USEDEP} > > Alternatively, less fragile but more verbose would be eclass function to > produce dependency string. While it may sound as overkill - we already do it > in KDE: And in ruby, and in arfrever's python.... add_foo_dep $(add_bar_dep ...) ... oh wait, it doesn't work like that. -- Best regards, Michał Górny
signature.asc
Description: PGP signature
