On Fri, 2002-02-22 at 15:27, Bob Phan wrote: > On 20 Feb 2002, Gila wrote: > > > hey guys.... > > > > i am making a ebuild for a file share program that works fine imho.. but > > i got a question: > > > > The main program is console based but a GUI is optional. the problem is > > that i want to make a ebuild that compiles the GUI is the gtk use flag > > is set. How do i make it so that IF use GTK it downloads configure make > > make install the GUI in one ebuild ? > > You probably want to make two packages, Foo-console and Foo-gui. Foo-gui > should depend on Foo-console, therefor if you choose to install Foo-gui > it will install Foo-console automatically. This is the way the xine > packages work (which you should probably take a look at). Xine-ui depends > on xine-lib, so when you emerge xine-ui, you get a fully functional gui > xine, but if you emerge xine-lib, you end up with just the libraries > needed for another xine frontend. > It really depends. In the case of Xine, the main Xine package is a library, which xine-ui depends on, so it makes sense to have two ebuilds. If your program have only one source tarball, and uses GTK+ to build the gui, you would rather have it build console if 'gtk' is not in USE, else if it is, build both. > /* > * Bob Phan > * Computational Chemistry Informatics > * Neurogen Corporation > * (203)488-8201 x4645 > * > * To understand recursion, you must first understand recursion. > */ > > _______________________________________________ > gentoo-dev mailing list > gentoo-dev@gentoo.org > http://lists.gentoo.org/mailman/listinfo/gentoo-dev -- Martin Schlemmer Gentoo Linux Developer, Desktop Team Developer Cape Town, South Africa