1 |
On 20 Feb 2002, Gila wrote: |
2 |
|
3 |
> hey guys.... |
4 |
> |
5 |
> i am making a ebuild for a file share program that works fine imho.. but |
6 |
> i got a question: |
7 |
> |
8 |
> The main program is console based but a GUI is optional. the problem is |
9 |
> that i want to make a ebuild that compiles the GUI is the gtk use flag |
10 |
> is set. How do i make it so that IF use GTK it downloads configure make |
11 |
> make install the GUI in one ebuild ? |
12 |
|
13 |
You probably want to make two packages, Foo-console and Foo-gui. Foo-gui |
14 |
should depend on Foo-console, therefor if you choose to install Foo-gui |
15 |
it will install Foo-console automatically. This is the way the xine |
16 |
packages work (which you should probably take a look at). Xine-ui depends |
17 |
on xine-lib, so when you emerge xine-ui, you get a fully functional gui |
18 |
xine, but if you emerge xine-lib, you end up with just the libraries |
19 |
needed for another xine frontend. |
20 |
|
21 |
/* |
22 |
* Bob Phan <bob@×××××××××.com,rphan@××××.com> |
23 |
* Computational Chemistry Informatics |
24 |
* Neurogen Corporation |
25 |
* (203)488-8201 x4645 |
26 |
* |
27 |
* To understand recursion, you must first understand recursion. |
28 |
*/ |