1 |
On Fri, 2002-02-22 at 15:27, Bob Phan wrote: |
2 |
> On 20 Feb 2002, Gila wrote: |
3 |
> |
4 |
> > hey guys.... |
5 |
> > |
6 |
> > i am making a ebuild for a file share program that works fine imho.. but |
7 |
> > i got a question: |
8 |
> > |
9 |
> > The main program is console based but a GUI is optional. the problem is |
10 |
> > that i want to make a ebuild that compiles the GUI is the gtk use flag |
11 |
> > is set. How do i make it so that IF use GTK it downloads configure make |
12 |
> > make install the GUI in one ebuild ? |
13 |
> |
14 |
> You probably want to make two packages, Foo-console and Foo-gui. Foo-gui |
15 |
> should depend on Foo-console, therefor if you choose to install Foo-gui |
16 |
> it will install Foo-console automatically. This is the way the xine |
17 |
> packages work (which you should probably take a look at). Xine-ui depends |
18 |
> on xine-lib, so when you emerge xine-ui, you get a fully functional gui |
19 |
> xine, but if you emerge xine-lib, you end up with just the libraries |
20 |
> needed for another xine frontend. |
21 |
> |
22 |
|
23 |
It really depends. In the case of Xine, the main Xine package |
24 |
is a library, which xine-ui depends on, so it makes sense to |
25 |
have two ebuilds. |
26 |
|
27 |
If your program have only one source tarball, and uses GTK+ to |
28 |
build the gui, you would rather have it build console if 'gtk' |
29 |
is not in USE, else if it is, build both. |
30 |
|
31 |
> /* |
32 |
> * Bob Phan <bob@×××××××××.com,rphan@××××.com> |
33 |
> * Computational Chemistry Informatics |
34 |
> * Neurogen Corporation |
35 |
> * (203)488-8201 x4645 |
36 |
> * |
37 |
> * To understand recursion, you must first understand recursion. |
38 |
> */ |
39 |
> |
40 |
> _______________________________________________ |
41 |
> gentoo-dev mailing list |
42 |
> gentoo-dev@g.o |
43 |
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev |
44 |
-- |
45 |
|
46 |
Martin Schlemmer |
47 |
Gentoo Linux Developer, Desktop Team Developer |
48 |
Cape Town, South Africa |