Gentoo Archives: gentoo-dev

From: "Brett I. Holcomb" <brettholcomb@×××××××.net>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: Apply patch depending on USE flag
Date: Fri, 30 Apr 2004 02:27:26
Message-Id: Pine.LNX.4.58.0404292225580.29350@strider
In Reply to: Re: [gentoo-dev] Re: Apply patch depending on USE flag by Mike Frysinger
1 For the sake of one who is doing ebuilds - why is the first form
2 preferred? I'm curious. I'm working on revising an ebuild now that has
3 the bad form.
4
5 Thanks.
6
7 On Thu, 29 Apr 2004, Mike Frysinger wrote:
8
9 > On Thursday 29 April 2004 03:33 pm, Michael Sterrett -Mr. Bones.- wrote:
10 > > On Thu, 29 Apr 2004, Lars Strojny wrote:
11 > > > On Thu, 29 Apr 2004 18:20:48 +0100
12 > > > Tom Wesley <tom.wesley@××××××××.com> wrote:
13 > > > > You can
14 > > > >
15 > > > > if use nntp; then
16 > > > > epatch ${DISTDIR}/${nntp_patch}
17 > > > > fi
18 > > >
19 > > > I think
20 > > > if [ "`use nntp`" ] ; then
21 > > > is more elegant ;)
22 > >
23 > > Between the two, the first example is preferred.
24 >
25 > and by prefered he means 'do not use the following syntax anymore in ebuilds':
26 > [ `use nntp` ]
27 > [ "`use nntp`" ]
28 > [ -z "`use nntp`" ]
29 > [ -n "`use nntp`" ]
30 > -mike
31 >
32 > --
33 > gentoo-dev@g.o mailing list
34 >
35
36 --
37 Brett I. Holcomb
38
39 --
40 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Re: Apply patch depending on USE flag Georgi Georgiev <chutz@×××.net>