On Fri, 23 Mar 2012 23:11:46 +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

i've been copy/pasting this 'formula' for a while, i know it works, and
i am too lazy to try to rewrite it to usex just for the sake of it :)

> 
> > oasis_src_configure() {
> >     ocaml setup.ml -configure \
> >             --prefix usr \
> >             --libdir /usr/$(get_libdir) \
> >             --docdir /usr/share/doc/${PF}/html \
> >             --destdir "${D}" \
> >             $(oasis_use_enable debug debug) \
> >             $(oasis_use_enable ocamlopt is_native) \
> >             ${oasis_configure_opts} \
> >             || die
> > }
> 
> 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

however, usually, i prefer prefix guys that need it to submit patches
instead of trying to support it without testing.
eg: shall it be EPREFIX before the /usr's ? shall it be ED instead of
D? both ?

A.

Reply via email to