Gentoo Archives: gentoo-dev

From: brettholcomb@×××××××.net
To: "Michael Sterrett -Mr. Bones.-" <msterret@××××.com>, Lars Strojny <lars@×××××××.net>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: Apply patch depending on USE flag
Date: Thu, 29 Apr 2004 20:43:40
Message-Id: 200404292034.i3TKYCgi064017@mxsf15.cluster1.charter.net
1 Out of curiosity and because I'm doing some ebuilds and would like to do them correctly why is the first preferred?
2
3 >
4 > From: "Michael Sterrett -Mr. Bones.-" <msterret@××××.com>
5 > Date: 2004/04/29 Thu PM 07:33:31 GMT
6 > To: Lars Strojny <lars@×××××××.net>
7 > CC: gentoo-dev@l.g.o
8 > Subject: [gentoo-dev] Re: Apply patch depending on USE flag
9 >
10 > On Thu, 29 Apr 2004, Lars Strojny wrote:
11 >
12 > > On Thu, 29 Apr 2004 18:20:48 +0100
13 > > Tom Wesley <tom.wesley@××××××××.com> wrote:
14 > >
15 > > > On Thu, 2004-04-29 at 18:18, Ajai Khattri wrote:
16 > > > > I would like to have an ebuild apply a patch based on whether a USE flag
17 > > > > is set or not - what is the standard way to do this in an ebuild? (Or is
18 > > > > there some function already available to do it?).
19 > > >
20 > > > You can
21 > > >
22 > > > if use nntp; then
23 > > > epatch ${DISTDIR}/${nntp_patch}
24 > > > fi
25 > >
26 > > I think
27 > > if [ "`use nntp`" ] ; then
28 > > is more elegant ;)
29 >
30 > Between the two, the first example is preferred.
31 >
32 > Michael Sterrett
33 > -Mr. Bones.-
34 > mr_bones_@g.o
35 >
36 > --
37 > gentoo-dev@g.o mailing list
38 >
39 >
40
41
42 --
43 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Re: Apply patch depending on USE flag Drake Wyrm <wyrm@×××××.com>