1 |
On Wednesday 07 April 2004 20:26, Paul de Vrieze wrote: |
2 |
> On Wednesday 07 April 2004 22:23, Marius Mauch wrote: |
3 |
> > On 04/07/04 Paul de Vrieze wrote: |
4 |
> > > Unfortunately it is not. It will depend on both libraries if both |
5 |
> > > useflags are present. The best approach probably is: |
6 |
> > > DEPEND="imagemagick? ( libgd? ( media-libs/libgd ) : |
7 |
> > > media-gfx/imagemagick ) : |
8 |
> > > ( media-libgs/libgd? )" |
9 |
> > |
10 |
> > Except that Nick doesn't like the "foo? ( bar : bla )" syntax and |
11 |
> > therefore it's likely to get deprecated/dropped soon. Instead |
12 |
> > better use "foo? ( bar ) !foo? ( bla )" |
13 |
> |
14 |
> You're right. This should be straightforward. I leave it up to the |
15 |
> reader to rewrite it. |
16 |
|
17 |
Also the debug use flag should be used to select between the two |
18 |
packages as the ebuild itself uses the imageMagick when making debug |
19 |
version |
20 |
|
21 |
So this should be used if the debug use flag is stronger dependecy |
22 |
controller than libgd use flag: |
23 |
|
24 |
DEPEND="imagemagick? ( |
25 |
libgd? ( |
26 |
debug?( media-gfx/imagemagick ) |
27 |
!debug? ( media-libs/libgd ) |
28 |
) |
29 |
!libgd? ( media-gfx/imagemagick ) |
30 |
) |
31 |
libgd? ( |
32 |
debug? ( media-gfx/imagemagick ) |
33 |
!debug? ( media-libs/libgd ) |
34 |
) |
35 |
!libgd? ( |
36 |
!imagemagick? ( |
37 |
debug? ( media-gfx/imagemagick ) |
38 |
!debug? ( media-libs/libgd ) |
39 |
) |
40 |
)" |
41 |
|
42 |
This one is the opposite: ie if libgd is used debugging is not |
43 |
considered att all, which in my opinion is wrong. |
44 |
I think that the debugging shouldn't be the desiding factor when the |
45 |
other use flags are used, because then I can't debug the software at |
46 |
all with the libgd. |
47 |
|
48 |
DEPEND="imagemagick? ( |
49 |
libgd? ( media-libs/libgd ) |
50 |
!libgd? ( media-gfx/imagemagick ) |
51 |
) |
52 |
libgd? ( media-libs/libgd ) |
53 |
!libgd? ( |
54 |
!imagemagick? ( |
55 |
debug? ( media-gfx/imagemagick ) |
56 |
!debug? ( media-libs/libgd ) |
57 |
) |
58 |
)" |
59 |
|
60 |
|
61 |
The first version matches with the ebuild he submitted (I think :) |
62 |
|
63 |
-- |
64 |
gentoo-dev@g.o mailing list |