> > > 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
> 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
Oh, right. I've forgot. Each EPREFIX usage would require something like the
following:
has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
> however, usually, i prefer prefix guys that need it to submit patches
> instead of trying to support it without testing.
Yeah, sounds fair.
--
Sergei
signature.asc
Description: PGP signature
