1 |
On Sunday 27 of January 2013 19:11:16 Micha³ Górny wrote: |
2 |
> On Sun, 27 Jan 2013 21:04:14 +0300 |
3 |
> |
4 |
> Sergei Trofimovich <slyfox@g.o> wrote: |
5 |
> > On Sun, 27 Jan 2013 17:30:22 +0100 |
6 |
> > |
7 |
> > Micha³ Górny <mgorny@g.o> wrote: |
8 |
> > > On Sun, 27 Jan 2013 16:07:48 +0000 |
9 |
> > > |
10 |
> > > Ciaran McCreesh <ciaran.mccreesh@××××××××××.com> wrote: |
11 |
> > > > On Sun, 27 Jan 2013 16:12:37 +0100 |
12 |
> > > > |
13 |
> > > > Micha³ Górny <mgorny@g.o> wrote: |
14 |
> > > > > RDEPEND="dev-libs/libfoo[${MULTILIB_USEDEP}] |
15 |
> > > > > |
16 |
> > > > > dev-libs/libbar[ssl,${MULTILIB_USEDEP}]" |
17 |
> > > > |
18 |
> > > > This looks like it might be a bit fragile. Is it something better |
19 |
> > > > addressed by an EAPI extension? |
20 |
> > > |
21 |
> > > I have no idea. This one's clear and simple. Not sure how you could be |
22 |
> > > able to do that better in EAPI. |
23 |
> > |
24 |
> > EAPI might allow lib[multiple?][use?][flags?] as an alias of |
25 |
> > [multiple?,use?,flags?]. |
26 |
> I still don't think that would be really helpful. |
27 |
> |
28 |
> dev-libs/libfoo[ssl][${MULTILIB_USEDEP}] |
29 |
> |
30 |
> is IMO just more confusing than the usual [ssl,...] -- people start |
31 |
> thinking 'does it mean something special?' |
32 |
> |
33 |
> Unless you mean adding the brackets to the variable itself -- but that |
34 |
> will be just scary... |
35 |
> |
36 |
> dev-libs/libfoo${MULTILIB_USEDEP} |
37 |
|
38 |
Alternatively, less fragile but more verbose would be eclass function to |
39 |
produce dependency string. While it may sound as overkill - we already do it |
40 |
in KDE: |
41 |
|
42 |
'add_kdebase_dep': |
43 |
|
44 |
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/kde4- |
45 |
functions.eclass?view=markup |
46 |
|
47 |
Example usage: |
48 |
|
49 |
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/kde- |
50 |
base/pykde4/pykde4-4.9.5.ebuild?view=markup |
51 |
|
52 |
|
53 |
-- |
54 |
regards |
55 |
MM |