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.1 required=5.0 tests=DMARC_NONE,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=4.0.0 Received: from volumehost.com (volumehost.com [216.63.158.9]) by chiba.3jane.net (Postfix) with ESMTP id 1CEB0AC8F8 for ; Wed, 17 Apr 2002 00:02:51 -0500 (CDT) Received: from volumehost.com (albert.volumehost.com [10.0.0.2]) by volumehost.com (8.11.6/linuxconf) with ESMTP id g3H52oP14775 for ; Wed, 17 Apr 2002 00:02:50 -0500 Message-ID: <3CBD01F8.30504@volumehost.com> Date: Wed, 17 Apr 2002 00:02:48 -0500 From: "Jared H. Hudson" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc1) Gecko/20020416 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gentoo-dev@gentoo.org Subject: Re: [gentoo-dev] ebuild question References: <200204170021.49964.richardj@1gig.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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: dc1ee9c7-6770-43f7-9ad7-a7c7b9a06acf X-Archives-Hash: 529122e5e835c2b272604121344bd6ac > Should I compile all 4 of them? Yes doing this would take some bash magic but > not too much. If I should do all four of them what naming convention 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 version. It's really not that hard. The way I would lay it out is: # handle use options common to all types use foo && myconf="$myconf --enable-foo" use foo2 && myconf="$myconf --enable-foo2" # handle first possible build type if [ "`use gnome`" ]; then ./configure --prefix=/usr --host=$CHOST \ --mandir=/usr/share/man --enable-gtk --enable-gnome $myconf \ || die "gnome & gtk configure failed" emake || die "gnome & gtk make failed" mv src/foo src/gfoo fi # handle second possible build type if [ "`use kde`" ]; then ./configure --prefix=/usr --host=$CHOST \ --mandir=/usr/share/man --enable-qt --enable-kde $myconf \ || die "kde & qt configure failed" emake || die "kde & qt make failed" mv src/foo src/kfoo fi # handle normal build type ./configure --prefix=/usr --host=$CHOST \ --mandir=/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) -Jared H. > > Should I just pick one of them and compile that one? What if I pick the one > the user doesn't want? > > Should I force some user interaction with the build process? Other words ask > them which one they want? I don't really like this option myself. > > And now even more questions. > On instalation of the above should I create menu items in KDE and GNOME if the > user has them? And a side question to that is it seems that KDE does not > automaticly include the GNOME apps but GNOME does automaticly include he KDE > apps so if I'm doing a KDE build should I add it to the GNOME menu if they > have it. And the reverse if I'm doing a GNOME build should I add that to the > KDE menus? > > Any thoughts on the above would be helpfull. > Thanks > Richard Jackson > _______________________________________________ > gentoo-dev mailing list > gentoo-dev@gentoo.org > http://lists.gentoo.org/mailman/listinfo/gentoo-dev