Gentoo Archives: gentoo-dev

From: Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.
Date: Fri, 23 Mar 2012 16:05:14
Message-Id: 20120323160250.0cc7b56b@googlemail.com
In Reply to: Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages. by Mike Gilbert
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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies