Gentoo Archives: gentoo-dev

From: Jano Lukac <jano@××××××××××××.net>
To: gentoo-dev@g.o
Subject: Re: Re: [gentoo-dev] DEPEND question
Date: Fri, 31 May 2002 10:02:43
Message-Id: 20020531150243.GL17614@irrelevant.portablehole.net
In Reply to: Re: Re: [gentoo-dev] DEPEND question by Per Wigren
1 i used openoffice ebuild as sorta example, but there are numerous ways
2 to do this, and this is just one way that might work (take with grain of
3 salt):
4
5 if [ use opengl ]
6 then
7 GLDEPEND="app-emulation/psemu-gpupetemesagl"
8 else
9 GLDEPEND="app-emulation/psemu-peopssoftgpu"
10 fi
11
12 RDEPEND="blah blah ${GLDEPEND}"
13
14 jano
15
16 On Fri, May 31, 2002 at 07:57:27AM +0000, Per Wigren wrote:
17 > The OpenGL-GPU and Software-GPU are plugins which are
18 > developed and distributed separate from the emulators. All
19 > (=most) PSX-emulators use the same plugins. The emulators
20 > requires at least one GPU-plugin to be installed..
21 > like:
22 > RDEPEND="opengl? ( app-emulation/psemu-gpupetemesagl )
23 > !opengl ( app-emulation/psemu-peopssoftgpu )"
24 >
25 > where "!opengl" means "NOT opengl".. How to do this?
26 >
27 > Regards
28 > Per Wigren
29 >
30 >
31 > >
32 > > not sure how the gpu-plugin parts work (config options, i
33 > guess?), but
34 > > you could do something like this:
35 > >
36 > > (use opengl && gl-gpu-plugin) || sw-gpu-plugin
37 > >
38 > >
39 > > Jano
40 > >
41 > >
42 > > On Thu, May 30, 2002 at 09:15:40PM +0200, Per Wigren
43 > wrote:
44 > > > How can I have a "if not"-dependancy?
45 > > > I'm making ebuilds for the ePSXe and PCSX Playstation-
46 > emulators and their
47 > > > plugins..
48 > > > I want to have dependancy similar to (in pseudocode):
49 > > > IF USE opengl: gl-gpu-plugin
50 > > > ELSE: sw-gpu-plugin
51 > > >
52 > > > I can't find anything in the docs...
53 > > >
54 > > > // Wigren
55 > > >
56 > > > _______________________________________________
57 > > > gentoo-dev mailing list
58 > > > gentoo-dev@g.o
59 > > > http://lists.gentoo.org/mailman/listinfo/gentoo-dev
60 > > _______________________________________________
61 > > gentoo-dev mailing list
62 > > gentoo-dev@g.o
63 > > http://lists.gentoo.org/mailman/listinfo/gentoo-dev
64 > >
65 >
66 >
67 > _______________________________________________
68 > gentoo-dev mailing list
69 > gentoo-dev@g.o
70 > http://lists.gentoo.org/mailman/listinfo/gentoo-dev

Replies

Subject Author
Re: Re: [gentoo-dev] DEPEND question Per Wigren <wigren@××××.se>