On Sat, 24 Mar 2012 00:02:15 +0300
Sergei Trofimovich <sly...@gentoo.org> wrote:

> > > > oasis_use_enable() {
> > > >             echo "--override $2 `use $1 && echo \"true\" || echo
> > > > \"false\"`" }
> > > 
> > > Mike added 'usex' to 'eutils.eclass' recently, so you might like
> > > to use it: (UNTESTED)
> > >     echo "--override $2 $(usex $1 true false)"
> > 
> > it needs to print the quotes too, so this wont work
> 
> It did not print quotes:
>     $ echo "--override bazz `true && echo \"true\" || echo \"false\"`"
>     --override bazz true

hu? i was pretty sure it was needed, but you're right, i dont know what
i was trying to achieve with those escaped quotes in there... i've
converted to your usex formula which is equivalent, thanks :)


> > > This configure hates gentoo prefix, right?
> > > Might worth sprinkling "${EPREFIX}" around absolute paths.
> > > 
> > 
> > well, this will imply not supporting eapi2, i can live with it
> 
> Oh, right. I've forgot. Each EPREFIX usage would require something
> like the following:
> 
>     has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=

not worth it, ocaml ebuilds are all eapi2 and the eapi2->3 migration is
quite straightforward, so there's no point in supporting <eapi3.

A.

Reply via email to