Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: Apply patch depending on USE flag
Date: Fri, 30 Apr 2004 00:35:18
Message-Id: 200404292035.07278.vapier@gentoo.org
In Reply to: [gentoo-dev] Re: Apply patch depending on USE flag by "Michael Sterrett -Mr. Bones.-"
1 On Thursday 29 April 2004 03:33 pm, Michael Sterrett -Mr. Bones.- wrote:
2 > On Thu, 29 Apr 2004, Lars Strojny wrote:
3 > > On Thu, 29 Apr 2004 18:20:48 +0100
4 > > Tom Wesley <tom.wesley@××××××××.com> wrote:
5 > > > You can
6 > > >
7 > > > if use nntp; then
8 > > > epatch ${DISTDIR}/${nntp_patch}
9 > > > fi
10 > >
11 > > I think
12 > > if [ "`use nntp`" ] ; then
13 > > is more elegant ;)
14 >
15 > Between the two, the first example is preferred.
16
17 and by prefered he means 'do not use the following syntax anymore in ebuilds':
18 [ `use nntp` ]
19 [ "`use nntp`" ]
20 [ -z "`use nntp`" ]
21 [ -n "`use nntp`" ]
22 -mike
23
24 --
25 gentoo-dev@g.o mailing list

Replies

Subject Author
[gentoo-dev] use.local.desc mess "Michael Sterrett -Mr. Bones.-" <msterret@××××.com>
Re: [gentoo-dev] Re: Apply patch depending on USE flag "Brett I. Holcomb" <brettholcomb@×××××××.net>
Re: [gentoo-dev] Re: Apply patch depending on USE flag Jason Huebel <jhuebel@g.o>