1 |
On 16:48 Sun 08 Mar , Ciaran McCreesh wrote: |
2 |
> On Sun, 8 Mar 2009 09:42:29 -0700 |
3 |
> Donnie Berkholz <dberkholz@g.o> wrote: |
4 |
> > - I understand the reasoning for the SRC_CONFIGURE_WITH blah stuff. I |
5 |
> > strongly oppose this implementation because it makes ebuilds less |
6 |
> > like bash scripts that are easy to understand. Instead I suggest |
7 |
> > extending use_with() and use_enable() to accept multiple sets of |
8 |
> > arguments (alternately, making custom, similar functions that will |
9 |
> > take multiple args). |
10 |
> |
11 |
> How would that work? I can't see an obvious way of doing it that isn't |
12 |
> more or less as verbose as just using multiple calls. |
13 |
|
14 |
It would just eliminate all but one call to use_with(). Depending on how |
15 |
many you've got, this can shorten things up a fair bit. Here's an |
16 |
example: |
17 |
|
18 |
econf \ |
19 |
$(use_with 'x X' 'foo libfoo' 'bar' 'python pygtk') |
20 |
econf \ |
21 |
$(use_with x X) \ |
22 |
$(use_with foo libfoo) \ |
23 |
$(use_with bar) \ |
24 |
$(use_with python pygtk) |
25 |
|
26 |
|
27 |
-- |
28 |
Thanks, |
29 |
Donnie |
30 |
|
31 |
Donnie Berkholz |
32 |
Developer, Gentoo Linux |
33 |
Blog: http://dberkholz.wordpress.com |