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: Thu, 08 Apr 2004 11:20:14
Message-Id: 20040408132008.45cd8406.spider@gentoo.org
In Reply to: Re: [gentoo-dev] question on writing ebuilds with exclusive dependencies. by Paul de Vrieze
1 begin quote
2 On Thu, 8 Apr 2004 11:49:50 +0200
3 Paul de Vrieze <pauldv@g.o> wrote:
4
5 > -----BEGIN PGP SIGNED MESSAGE-----
6 > Hash: SHA1
7 >
8 > On Wednesday 07 April 2004 23:26, Spider wrote:
9 > >
10 > > Though you could do a switch to :
11 > > DEPEND="debug? ( media-gfx/imagemagick )
12 > > !debug? (
13 > > imagemagick? ( media-libs/imagemagick )
14 > > !imagemagick? ( media-gfx/libgd )
15 > > )"
16 > >
17 > >
18 > > if you wnat libgd to be the "default"
19 >
20 > This would not work correctly if both imagemagick and libgd useflags
21 > are set. The previous one (where imagemagick and libgd are exchanged)
22 > does not work when no of the useflags are set
23
24
25 Well, yes it would.. since it would completely ignore the libgd USE
26 flag : ) (note that it is never even checked here) and only fall back
27 to using one of them, claiming the other as default/fallback.
28 since the case that "both unset" is void, I vouched for this solution
29 as its cleaner.
30
31 in the case "A or B, but one has to be there" its just cumbersome to
32 try and make both USE settable, listen to one use-flag (the one thats
33 the exception? or the one thats most popular/default. )
34
35
36 //Spider
37
38
39 --
40 begin .signature
41 Tortured users / Laughing in pain
42 See Microsoft KB Article Q265230 for more information.
43 end

Replies

Subject Author
Re: [gentoo-dev] question on writing ebuilds with exclusive dependencies. Corvus Corax <corvus-ml@×××××××××××.com>