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.6 required=5.0 tests=DMARC_MISSING, MAILING_LIST_MULTI,RDNS_DYNAMIC autolearn=unavailable autolearn_force=no version=4.0.0 Received: from gigabyte.1gig.net (adsl-64-217-81-216.dsl.austtx.swbell.net [64.217.81.216]) by chiba.3jane.net (Postfix) with ESMTP id 87839AC93C for ; Wed, 17 Apr 2002 00:18:00 -0500 (CDT) Received: from gigaflop.1gig.net (gigaflop.1gig.net [192.168.1.2]) by gigabyte.1gig.net (Postfix) with ESMTP id A7FC35D02 for ; Wed, 17 Apr 2002 00:17:59 -0500 (CDT) Content-Type: text/plain; charset="iso-8859-1" From: Richard Jackson To: gentoo-dev@gentoo.org Subject: Re: [gentoo-dev] ebuild question Date: Wed, 17 Apr 2002 01:05:47 -0500 X-Mailer: KMail [version 1.4] References: <200204170021.49964.richardj@1gig.net> <3CBD01F8.30504@volumehost.com> In-Reply-To: <3CBD01F8.30504@volumehost.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200204170105.47226.richardj@1gig.net> 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 X-Reply-To: richardj@1gig.net List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux developer list List-Unsubscribe: , List-Archive: X-Archives-Salt: 9f4d4287-b45f-443e-8e65-ba41dd8424bb X-Archives-Hash: e8e80de31ab030f373808a36ce364d15 On Wednesday 17 April 2002 12:02 am, Jared H. Hudson wrote: > > Should I compile all 4 of them? Yes doing this would take some bash m= agic > > but not too much. If I should do all four of them what naming convent= ion > > should I use for the differant executables? Some thing like nethackQt > > nethackGnome? > > I would say yes, do this. If you need an example, look at: > app-editors/vim for example, it builds a GUI version and a non-GUI vers= ion. > > It's really not that hard. The way I would lay it out is: > > # handle use options common to all types > use foo && myconf=3D"$myconf --enable-foo" > use foo2 && myconf=3D"$myconf --enable-foo2" > > # handle first possible build type > if [ "`use gnome`" ]; > then > =09./configure --prefix=3D/usr --host=3D$CHOST \ > =09--mandir=3D/usr/share/man --enable-gtk --enable-gnome $myconf \ > > =09|| die "gnome & gtk configure failed" > > =09emake || die "gnome & gtk make failed" > > =09mv src/foo src/gfoo > fi > > # handle second possible build type > if [ "`use kde`" ]; > then > =09./configure --prefix=3D/usr --host=3D$CHOST \ > =09--mandir=3D/usr/share/man --enable-qt --enable-kde $myconf \ > > =09|| die "kde & qt configure failed" > > =09emake || die "kde & qt make failed" > > =09mv src/foo src/kfoo > fi > > # handle normal build type > ./configure --prefix=3D/usr --host=3D$CHOST \ > --mandir=3D/usr/share/man $myconf \ > > || die "normal configure failed" > > emake || die "normal make failed" > > > My example may not be perfect, but you get the idea (I hope) > Kinda of what I was looking at doing. The differance is that basicly I ha= ve to=20 have a clean source directory for each step because you have to modify th= e=20 make files as nethack does not use automake so I have a patch for each op= tion=20 that has to be applied to the clean sources. And of couse each of them wi= ll=20 install on top of the other when you get to the install process so I was=20 looking at handling that myself so things would be done right as far as e= ach=20 version goes that is. It is kinda of a pain but doable. I will take a loo= k at=20 the vim ebuild though as I'm still not real strait on some of the vars us= ed=20 in the ebuild files. I gues I need to reread the howto again.=20 Richard jackson