Gentoo Archives: gentoo-dev

From: Spider <spider@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] question on writing ebuilds with exclusive dependencies.
Date: Wed, 07 Apr 2004 21:26:26
Message-Id: 20040407232621.02592678.spider@gentoo.org
In Reply to: Re: [gentoo-dev] question on writing ebuilds with exclusive dependencies. by "Sami Näätänen"
1 begin quote
2 On Wed, 7 Apr 2004 21:18:08 +0000
3 Sami Näätänen <sn.ml@××××××××.com> wrote:
4
5 > On Wednesday 07 April 2004 20:26, Paul de Vrieze wrote:
6 > > On Wednesday 07 April 2004 22:23, Marius Mauch wrote:
7 > > > On 04/07/04 Paul de Vrieze wrote:
8 > > > > Unfortunately it is not. It will depend on both libraries if
9 > > > > both
10 > > > > useflags are present. The best approach probably is:
11 > > > > DEPEND="imagemagick? ( libgd? ( media-libs/libgd ) :
12 > > > > media-gfx/imagemagick ) :
13 > > > > ( media-libgs/libgd? )"
14 > > >
15 > > > Except that Nick doesn't like the "foo? ( bar : bla )" syntax and
16 > > > therefore it's likely to get deprecated/dropped soon. Instead
17 > > > better use "foo? ( bar ) !foo? ( bla )"
18 > >
19 > > You're right. This should be straightforward. I leave it up to the
20 > > reader to rewrite it.
21 >
22 > Also the debug use flag should be used to select between the two
23 > packages as the ebuild itself uses the imageMagick when making debug
24 > version
25 >
26 > So this should be used if the debug use flag is stronger dependecy
27 > controller than libgd use flag:
28
29 Wouldn't something like this do it?
30 DEPEND="debug? ( media-gfx/imagemagick )
31 !debug? (
32 libgd? ( media-libs/libgd )
33 !libgd? ( media-gfx/imagemagick )
34 )"
35
36
37 Though you could do a switch to :
38 DEPEND="debug? ( media-gfx/imagemagick )
39 !debug? (
40 imagemagick? ( media-libs/imagemagick )
41 !imagemagick? ( media-gfx/libgd )
42 )"
43
44
45 if you wnat libgd to be the "default"
46
47
48 .. btw.. Corvux Coax.. The coaxial krow? ;)
49
50 //Spider
51
52 --
53 begin .signature
54 Tortured users / Laughing in pain
55 See Microsoft KB Article Q265230 for more information.
56 end

Replies