Gentoo Archives: gentoo-dev

From: Marius Mauch <genone@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] question on writing ebuilds with exclusive dependencies.
Date: Wed, 07 Apr 2004 20:23:25
Message-Id: 20040407222311.5a56e213@sven.genone.homeip.net
In Reply to: Re: [gentoo-dev] question on writing ebuilds with exclusive dependencies. by Paul de Vrieze
1 On 04/07/04 Paul de Vrieze wrote:
2
3 > Unfortunately it is not. It will depend on both libraries if both
4 > useflags are present. The best approach probably is:
5 > DEPEND="imagemagick? ( libgd? ( media-libs/libgd ) :
6 > media-gfx/imagemagick ) :
7 > ( media-libgs/libgd? )"
8
9 Except that Nick doesn't like the "foo? ( bar : bla )" syntax and
10 therefore it's likely to get deprecated/dropped soon. Instead better use
11 "foo? ( bar ) !foo? ( bla )"
12
13 Marius
14
15 --
16 Public Key at http://www.genone.de/info/gpg-key.pub
17
18 In the beginning, there was nothing. And God said, 'Let there be
19 Light.' And there was still nothing, but you could see a bit better.

Replies