1 |
On Fri, 23 Mar 2012 11:58:47 -0400 |
2 |
Mike Gilbert <floppym@g.o> wrote: |
3 |
> > oasis_src_compile() { |
4 |
> > oasis_src_compile_no_doc |
5 |
> > if has doc ${IUSE} && use doc; then |
6 |
> > ocaml setup.ml -doc || die |
7 |
> > fi |
8 |
> > } |
9 |
> |
10 |
> This should probably call use_if_iuse from eutils.eclass, which |
11 |
> handles IUSE="[+-]doc". |
12 |
|
13 |
Actually, neither way works. The spec says: |
14 |
|
15 |
Global variables must only contain invariant values |
16 |
(see~\ref{sec:metadata-invariance}). If a global variable's value is |
17 |
invariant, it may have the value that would be generated at any |
18 |
given point in the build sequence. |
19 |
|
20 |
So you can't rely upon IUSE having the "merged" value in an eclass. |
21 |
|
22 |
-- |
23 |
Ciaran McCreesh |