1 |
On 03/06/2010 08:28 PM, Jonathan Callen wrote: |
2 |
> On 03/06/2010 02:11 AM, Petteri Räty wrote: |
3 |
>> What we use in Java is JAVA_PKG_OPT_USE to declare what use flag the |
4 |
>> DEPENDs should be under. This approach doesn't allow the ebuild |
5 |
>> maintainer to forget adding the depends. |
6 |
> |
7 |
> That approach also disallows (or makes unduly difficult) making the |
8 |
> dependency such that "I need autotools on USE=kernel_SunOS or |
9 |
> USE=kernel_freemint, but nowhere else" or "I need autotools when USE=foo |
10 |
> and USE=bar, but not otherwise". |
11 |
> |
12 |
|
13 |
You can provide both approaches if there ever is a need for things you |
14 |
said but in my opinion just declaring the use flag should be the |
15 |
preferred approach as it results in less code in the individual ebuilds. |
16 |
|
17 |
Regards, |
18 |
Petteri |