1 |
begin quote |
2 |
On Sat, 18 May 2002 16:24:32 +0200 |
3 |
"Justin T. " <justint@×××.net> wrote: |
4 |
|
5 |
> Heya, |
6 |
> |
7 |
> Quick question here. I was just looking at the comparison of the |
8 |
> ebuilds for kdeaddons 3.0 and 3.0.1 and noticed something in 3.0.1: |
9 |
> |
10 |
> >=media-libs/libsdl-1.2 |
11 |
> sdl? ( media-libs/libsdl )" |
12 |
|
13 |
this is read :: "if USE="sdl" then depend on media-libs/libsdl" |
14 |
|
15 |
> At the bottom it makes a dependency (if I am reading this correctly) |
16 |
> for libsdl and then the option for libsdl. Later on in the ebuild it |
17 |
> shows this: |
18 |
Nope, first it checks "do we want SDL support?" then it adds the |
19 |
dependency if that's the case. |
20 |
|
21 |
|
22 |
|
23 |
> |
24 |
> use sdl && myconf="$myconf --with-sdl --with-sdl-prefix=/usr" || |
25 |
> myconf="$myconf --without-sdl --disable-sdltest" |
26 |
|
27 |
this can be read: |
28 |
if sdl is in use then :: |
29 |
myconf="$myconf --with-sdl --with-sdl-prefix=/usr" |
30 |
else |
31 |
myconf="$myconf --without-sdl --disable-sdltest" |
32 |
fi |
33 |
|
34 |
because: "use sdl" returns either true (sdl in USE variable) or false |
35 |
(sdl not in USE variable) |
36 |
|
37 |
this is standard bash syntax, and can be tested with the following :: |
38 |
|
39 |
true && echo "it came out true" || echo "it came out false" |
40 |
false && echo "it came out true" || echo "it came out false" |
41 |
|
42 |
> Won't this go through and require libsdl as a dependency no matter |
43 |
> what you have set up in usage? |
44 |
|
45 |
nop, the DEPEND line is the only part that acutally makes a dependency, |
46 |
the rest is compilation depending on how the USE variable is set. |
47 |
|
48 |
> PS - Any clue when 3.0.1 will finally be out? |
49 |
this week it should be..... (next week, whatnotl.) |
50 |
|
51 |
|
52 |
//Spider |
53 |
|
54 |
-- |
55 |
begin .signature |
56 |
This is a .signature virus! Please copy me into your .signature! |
57 |
See Microsoft KB Article Q265230 for more information. |
58 |
end |