* [gentoo-dev] What to do :?
@ 2002-02-20 3:25 Gila
2002-02-20 11:52 ` Eric Noack
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Gila @ 2002-02-20 3:25 UTC (permalink / raw
To: gentoo-dev
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 ?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-dev] What to do :?
2002-02-20 3:25 [gentoo-dev] What to do :? Gila
@ 2002-02-20 11:52 ` Eric Noack
2002-02-20 12:06 ` Eric Noack
2002-02-22 13:27 ` Bob Phan
2 siblings, 0 replies; 5+ messages in thread
From: Eric Noack @ 2002-02-20 11:52 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Mittwoch, 20. Februar 2002 04:25 schrieben Sie:
> 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 ?
>
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
i think i have seen this several times allready. just make two ebuild which
differ in name like
program-console.xxx.ebuild
program-gui.xxx.ebuild
the one "DEPEND" ´s on gtk and installs the gui, the other does not
so the end-user can choose what he likes, this way getting gtk automatically
if he needs the gui
Eric
- -----------------------------------
"why make it simple if theres a difficult sollution?"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8c44AQqwrci69eh0RAny3AKCI+zGRO+SLpRcjYd37B2/EckH6ygCgjscm
/cOx3ZpwuCZqmF30iwZypLg=
=T06j
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-dev] What to do :?
2002-02-20 3:25 [gentoo-dev] What to do :? Gila
2002-02-20 11:52 ` Eric Noack
@ 2002-02-20 12:06 ` Eric Noack
2002-02-22 13:27 ` Bob Phan
2 siblings, 0 replies; 5+ messages in thread
From: Eric Noack @ 2002-02-20 12:06 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Mittwoch, 20. Februar 2002 04:25 schrieben Sie:
if you did so, you could also make a general ebuild named
progrem-xxx.ebuild,
which has some struct like
DEPEND=" >=program-console-xxxx
gtk? ( >=program-gui-xxxx )
...
"
but doesnt install anything itself,
like the "system" ebuild which just depends on all important system ebuild
look at the several xmms ebuilds, i think they may be good examples to look at
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8c5EwQqwrci69eh0RAl3nAKCfKm46k9NvBvaDeQVJN6HGd1w3IgCcD0Vz
RPgnxU/1AtR6EnEoYaeTWzI=
=qY9I
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-dev] What to do :?
2002-02-20 3:25 [gentoo-dev] What to do :? Gila
2002-02-20 11:52 ` Eric Noack
2002-02-20 12:06 ` Eric Noack
@ 2002-02-22 13:27 ` Bob Phan
2002-02-23 23:54 ` Martin Schlemmer
2 siblings, 1 reply; 5+ messages in thread
From: Bob Phan @ 2002-02-22 13:27 UTC (permalink / raw
To: gentoo-dev
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.
/*
* Bob Phan <bob@evil-core.com,rphan@nrgn.com>
* Computational Chemistry Informatics
* Neurogen Corporation
* (203)488-8201 x4645
*
* To understand recursion, you must first understand recursion.
*/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-dev] What to do :?
2002-02-22 13:27 ` Bob Phan
@ 2002-02-23 23:54 ` Martin Schlemmer
0 siblings, 0 replies; 5+ messages in thread
From: Martin Schlemmer @ 2002-02-23 23:54 UTC (permalink / raw
To: Gentoo-Dev
[-- Attachment #1: Type: text/plain, Size: 1795 bytes --]
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 <bob@evil-core.com,rphan@nrgn.com>
> * 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
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-02-22 23:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-20 3:25 [gentoo-dev] What to do :? Gila
2002-02-20 11:52 ` Eric Noack
2002-02-20 12:06 ` Eric Noack
2002-02-22 13:27 ` Bob Phan
2002-02-23 23:54 ` Martin Schlemmer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox