Gentoo Archives: gentoo-dev

From: Lars Strojny <lars@×××××××.net>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Apply patch depending on USE flag
Date: Thu, 29 Apr 2004 19:15:45
Message-Id: 20040429211521.745dd4b2@billy.is-a-geek.net
In Reply to: Re: [gentoo-dev] Apply patch depending on USE flag by Tom Wesley
1 On Thu, 29 Apr 2004 18:20:48 +0100
2 Tom Wesley <tom.wesley@××××××××.com> wrote:
3
4 > On Thu, 2004-04-29 at 18:18, Ajai Khattri wrote:
5 > > I would like to have an ebuild apply a patch based on whether a USE flag
6 > > is set or not - what is the standard way to do this in an ebuild? (Or is
7 > > there some function already available to do it?).
8 >
9 > You can
10 >
11 > if use nntp; then
12 > epatch ${DISTDIR}/${nntp_patch}
13 > fi
14
15 I think
16 if [ "`use nntp`" ] ; then
17 is more elegant ;)
18
19 Greets
20 Lars Strojny
21 --
22 "Es genügt nicht, nur fleißig zu sein - das sind die Ameisen.
23 Die Frage ist vielmehr: wofür sind wir fleißig?"
24 - Henry David Thoreau -
25
26 name: Lars Strojny web: http://strojny.net
27 street: Yorckstrasse 22 jabber: sinistra@××××××××.de
28 city: D-71636 Ludwigsburg mail: lars@×××××××.net
29 f-print: 6663 1055 543E 3106 3FD3 4F40 AC74 CD1F C327 14BD
30 weblog: http://sinistra.is-a-geek.net/l_blog

Replies

Subject Author
[gentoo-dev] Re: Apply patch depending on USE flag "Michael Sterrett -Mr. Bones.-" <msterret@××××.com>