1 |
> oasis_use_enable() { |
2 |
> echo "--override $2 `use $1 && echo \"true\" || echo \"false\"`" |
3 |
> } |
4 |
|
5 |
Mike added 'usex' to 'eutils.eclass' recently, so you might like to use it: |
6 |
(UNTESTED) |
7 |
echo "--override $2 $(usex $1 true false)" |
8 |
|
9 |
> oasis_src_configure() { |
10 |
> ocaml setup.ml -configure \ |
11 |
> --prefix usr \ |
12 |
> --libdir /usr/$(get_libdir) \ |
13 |
> --docdir /usr/share/doc/${PF}/html \ |
14 |
> --destdir "${D}" \ |
15 |
> $(oasis_use_enable debug debug) \ |
16 |
> $(oasis_use_enable ocamlopt is_native) \ |
17 |
> ${oasis_configure_opts} \ |
18 |
> || die |
19 |
> } |
20 |
|
21 |
This configure hates gentoo prefix, right? |
22 |
Might worth sprinkling "${EPREFIX}" around absolute paths. |
23 |
|
24 |
-- |
25 |
|
26 |
Sergei |