Gentoo Archives: gentoo-dev

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.
Date: Fri, 23 Mar 2012 20:08:15
Message-Id: 20120323231146.6e009188@sf.home
In Reply to: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages. by Alexis Ballier
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

Attachments

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

Replies