From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=DATE_IN_PAST_03_06, DKIM_ADSP_NXDOMAIN,DMARC_MISSING,MAILING_LIST_MULTI autolearn=no autolearn_force=no version=4.0.0 Received: from lucifer.evil-core.com (evil-core.com [63.160.181.167]) by chiba.3jane.net (Postfix) with ESMTP id 390E3200B112 for ; Fri, 22 Feb 2002 12:34:37 -0600 (CST) Received: from localhost (bob@localhost) by lucifer.evil-core.com (8.10.2/8.10.2) with ESMTP id g1MDRdj24068 for ; Fri, 22 Feb 2002 13:27:39 GMT Date: Fri, 22 Feb 2002 13:27:39 +0000 (/etc/localtime) From: Bob Phan To: gentoo-dev@gentoo.org Subject: Re: [gentoo-dev] What to do :? In-Reply-To: <1014175503.12730.4.camel@GiTop> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux developer list List-Unsubscribe: , List-Archive: X-Archives-Salt: ec4f1d26-d178-4e74-811b-693393ef8115 X-Archives-Hash: 47003c3babce68780d76642cc69fa402 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 * Computational Chemistry Informatics * Neurogen Corporation * (203)488-8201 x4645 * * To understand recursion, you must first understand recursion. */