public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Martin Schlemmer <azarah@gentoo.org>
To: Gentoo-Dev <gentoo-dev@gentoo.org>
Subject: Re: [gentoo-dev] What to do :?
Date: 24 Feb 2002 01:54:06 +0200	[thread overview]
Message-ID: <1014508452.3677.2.camel@nosferatu.lan> (raw)
In-Reply-To: <Pine.LNX.4.21.0202221324560.23624-100000@lucifer.evil-core.com>

[-- 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 --]

      reply	other threads:[~2002-02-22 23:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1014508452.3677.2.camel@nosferatu.lan \
    --to=azarah@gentoo.org \
    --cc=gentoo-dev@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox