Gentoo Archives: gentoo-dev

From: "Michael Sterrett -Mr. Bones.-" <msterret@××××.com>
To: Lars Strojny <lars@×××××××.net>
Cc: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: Apply patch depending on USE flag
Date: Thu, 29 Apr 2004 19:33:32
Message-Id: Pine.LNX.4.58.0404291531120.17894@rutrow.coat.com
In Reply to: Re: [gentoo-dev] Apply patch depending on USE flag by Lars Strojny
1 On Thu, 29 Apr 2004, Lars Strojny wrote:
2
3 > On Thu, 29 Apr 2004 18:20:48 +0100
4 > Tom Wesley <tom.wesley@××××××××.com> wrote:
5 >
6 > > On Thu, 2004-04-29 at 18:18, Ajai Khattri wrote:
7 > > > I would like to have an ebuild apply a patch based on whether a USE flag
8 > > > is set or not - what is the standard way to do this in an ebuild? (Or is
9 > > > there some function already available to do it?).
10 > >
11 > > You can
12 > >
13 > > if use nntp; then
14 > > epatch ${DISTDIR}/${nntp_patch}
15 > > fi
16 >
17 > I think
18 > if [ "`use nntp`" ] ; then
19 > is more elegant ;)
20
21 Between the two, the first example is preferred.
22
23 Michael Sterrett
24 -Mr. Bones.-
25 mr_bones_@g.o
26
27 --
28 gentoo-dev@g.o mailing list

Replies