From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1DqMlD-0001kB-BH for garchives@archives.gentoo.org; Thu, 07 Jul 2005 03:09:11 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j673775f010865; Thu, 7 Jul 2005 03:07:07 GMT Received: from tirpitz.iat.sfu.ca (tirpitz.iat.sfu.ca [209.87.56.17]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j67334Cl022933 for ; Thu, 7 Jul 2005 03:03:05 GMT Received: (qmail 22727 invoked from network); 6 Jul 2005 20:04:02 -0700 Received: from s01060050da688d47.vc.shawcable.net (HELO curie.orbis-terrarum.net) (24.80.100.253) by tirpitz.iat.sfu.ca with SMTP; 6 Jul 2005 20:04:02 -0700 Received: (qmail 11045 invoked by uid 10000); 6 Jul 2005 20:04:00 -0700 Date: Wed, 6 Jul 2005 20:04:00 -0700 From: "Robin H. Johnson" To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] src_configure Message-ID: <20050707030400.GB9978@curie-int.orbis-terrarum.net> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <20050707000403.GG20687@lightning.stealer.net> <20050707043232.65154e40@eusebe> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yEPQxsgoJgBvi8ip" Content-Disposition: inline In-Reply-To: <20050707043232.65154e40@eusebe> User-Agent: Mutt/1.5.8i X-Archives-Salt: f91244e7-b9d7-4f4b-904c-bc516f42b2bd X-Archives-Hash: 2b28ecb8aea103a7761a0f63bc23a850 --yEPQxsgoJgBvi8ip Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 07, 2005 at 04:32:32AM +0200, Thomas de Grenier de Latour wrote: > Sure, spliting that will produce a bit of code duplication. It's > a bit less readable imho, but that's really just a cosmetic > issue:=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > src_configure() { > econf || die > if use foo ; then > cd "${S}/foo-plugin" > econf || die > fi > } >=20 > src_compile() { > emake || die > if use foo ; then > cd "${S}/foo-plugin" > emake || die > fi > } > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >=20 >=20 > I've also searched for some more problematic ebuilds, like some > which would configure & build the same source several times > (x11-libs/wxGTK maybe, also i'm not really sure) or some which > would first configure and build a libfoo/ subtree, and then > configure and build the main program (did not found any of that > kind, but i would not be surprised some exists). I know know stuff that NEEDS this: cd $S econf && emake || die cd $S/plugin/$foo econf && emake || die and the stuff in $bar/plugin/$foo REQUIRES that $S be built first. But as a possible fix for this, we could break out the plugin to a new package. --=20 Robin Hugh Johnson E-Mail : robbat2@orbis-terrarum.net Home Page : http://www.orbis-terrarum.net/?l=3Dpeople.robbat2 ICQ# : 30269588 or 41961639 GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85 --yEPQxsgoJgBvi8ip Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1-ecc0.1.6 (GNU/Linux) Comment: Robbat2 @ Orbis-Terrarum Networks iD8DBQFCzJugPpIsIjIzwiwRAu3sAJwOyNyJJl/QKCap4tPbulFVeYX0PQCePomb QHCv5mbwRg/D1OrePr8D0I0= =wmSZ -----END PGP SIGNATURE----- --yEPQxsgoJgBvi8ip-- -- gentoo-dev@gentoo.org mailing list