On Sunday 27 of January 2013 19:11:16 Micha³ Górny wrote:
> On Sun, 27 Jan 2013 21:04:14 +0300
>
> Sergei Trofimovich <sly...@gentoo.org> wrote:
> > On Sun, 27 Jan 2013 17:30:22 +0100
> >
> > Micha³ Górny <mgo...@gentoo.org> wrote:
> > > On Sun, 27 Jan 2013 16:07:48 +0000
> > >
> > > Ciaran McCreesh <ciaran.mccre...@googlemail.com> wrote:
> > > > On Sun, 27 Jan 2013 16:12:37 +0100
> > > >
> > > > Micha³ Górny <mgo...@gentoo.org> 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:

'add_kdebase_dep':

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/kde4-
functions.eclass?view=markup

Example usage:

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/kde-
base/pykde4/pykde4-4.9.5.ebuild?view=markup


--
regards
MM

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to