Gentoo Archives: gentoo-dev

From: Stuart Bouyer <stuart@××××××××××××××××.jp>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Multiple choice dependancies ..
Date: Tue, 20 Aug 2002 19:26:36
Message-Id: 1029890319.2521.2.camel@gentoo-bear
In Reply to: [gentoo-dev] Multiple choice dependancies .. by Henti Smith
1 On 火, 2002-08-20 at 19:07, Henti Smith wrote:
2 > Hi there
3 >
4 > I'm busy writing a ebuild for squidGuard and one of the requirements is a yacc compatible parser.
5 > I originally had yacc as a dependancy but then noticed that bison also works and since I had bison installed I didn't need to install yacc.
6 >
7 > How do I specify a choice between packages in the build ?
8 >
9 > Or can I specifiy a preferance or something ?
10
11 I think that what you want is
12
13 DEPEND="|| ( bison yacc )"
14
15 It will use bison or yacc if either are present and emerge bison if
16 neither are presently emerged.
17
18
19 >
20 > Henti Smith
21 > _______________________________________________
22 > gentoo-dev mailing list
23 > gentoo-dev@g.o
24 > http://lists.gentoo.org/mailman/listinfo/gentoo-dev
25 --

Attachments

File name MIME type
signature.asc application/pgp-signature