Gentoo Archives: gentoo-dev

From: Drake Wyrm <wyrm@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: Apply patch depending on USE flag
Date: Fri, 30 Apr 2004 15:13:43
Message-Id: 20040430152225.GA18298@phaenix.haell.com
In Reply to: [gentoo-dev] Re: Apply patch depending on USE flag by sf
1 On Fri, 2004-04-30, 14:18:39 +0200, in <4092441F.70205@×××××.de>, sf
2 <sf@×××××.de> wrote:
3 > Drake Wyrm wrote:
4 > >On Fri, 2004-04-30, 02:31:39 -0400, in
5 > ><200404300231.39292.vapier@g.o>, Mike Frysinger
6 > ><vapier@g.o> wrote:
7 > >
8 > >>On Friday 30 April 2004 02:25 am, Drake Wyrm wrote:
9 > ...
10 > >>ive personally used the fact that use echos the flag when building
11 > >>packages ... for example, a package with a crapy build system:
12 > >>for vid in `use sdl` `use X` `use opengl` `use svga` ; do
13 > >> make clean
14 > >> make VID=$vid
15 > >> mv binary ../binary.$vid
16 > >>done
17 > >
18 > >
19 > >That's beautiful. Now, there's an example of elegance!
20 >
21 > Beautiful? It is an example of code replication!
22
23 Maybe. Then again, maybe I just get a kick out of seeing somebody do
24 something useful with anything I consider to be useless (e.g. the output
25 from `use`).
26
27 --
28 Batou: Hey, Major... You ever hear of "human rights"?
29 Kusanagi: I understand the concept, but I've never seen it in action.
30 --Ghost in the Shell