On Thu, 2005-07-07 at 08:08 +0100, Daniel Drake wrote:
> Jonathan Smith wrote:
> > you could simply make the default:
> > 
> > src_configure() {
> >     [ -f ./configure ] && econf || die
> > }
> 
> 
> No need, this will do fine as a default:
> 
> src_configure() {
>       econf || die
> }
> 
> Since econf already checks for a configure script and does nothing if it can't
> find one...
> 

Well, besides the point that somebody else made that it dies if no
configure is present, it dies anyhow if it fails, so no need for the ||
die even ...

-----
src_configure() {
        if [[ -x configure && ! -f .econfigured ]] ; then
                econf
                touch .econfigured
        fi
}
-----

And might possibley make econf look for .econfigured as well, which
might help non split ebuilds that uses econf at least ...


Thanks,

-- 
Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to