Gentoo Archives: gentoo-dev

From: Martin Schlemmer <azarah@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] src_configure
Date: Thu, 07 Jul 2005 14:11:47
Message-Id: 1120745458.6560.25.camel@lycan.lan
In Reply to: Re: [gentoo-dev] src_configure by Daniel Drake
1 On Thu, 2005-07-07 at 08:08 +0100, Daniel Drake wrote:
2 > Jonathan Smith wrote:
3 > > you could simply make the default:
4 > >
5 > > src_configure() {
6 > > [ -f ./configure ] && econf || die
7 > > }
8 >
9 >
10 > No need, this will do fine as a default:
11 >
12 > src_configure() {
13 > econf || die
14 > }
15 >
16 > Since econf already checks for a configure script and does nothing if it can't
17 > find one...
18 >
19
20 Well, besides the point that somebody else made that it dies if no
21 configure is present, it dies anyhow if it fails, so no need for the ||
22 die even ...
23
24 -----
25 src_configure() {
26 if [[ -x configure && ! -f .econfigured ]] ; then
27 econf
28 touch .econfigured
29 fi
30 }
31 -----
32
33 And might possibley make econf look for .econfigured as well, which
34 might help non split ebuilds that uses econf at least ...
35
36
37 Thanks,
38
39 --
40 Martin Schlemmer
41 Gentoo Linux Developer, Desktop/System Team Developer
42 Cape Town, South Africa

Attachments

File name MIME type
signature.asc application/pgp-signature