Gentoo Archives: gentoo-dev

From: Alexandre Rostovtsev <tetromino@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:42:47
Message-Id: CAL0O3aPkOB4yTZir7Gjj5M_+P8Tr_De1HS4LD5TTMq6prJ6qXg@mail.gmail.com
In Reply to: Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages. by Alexis Ballier
1 On Fri, Mar 23, 2012 at 4:24 PM, Alexis Ballier <aballier@g.o> wrote:
2 > On Fri, 23 Mar 2012 23:11:46 +0300
3 > Sergei Trofimovich <slyfox@g.o> wrote:
4 >> > oasis_src_configure() {
5 >> >     ocaml setup.ml -configure \
6 >> >             --prefix usr \
7 >> >             --libdir /usr/$(get_libdir) \
8 >> >             --docdir /usr/share/doc/${PF}/html \
9 >> >             --destdir "${D}" \
10 >> >             $(oasis_use_enable debug debug) \
11 >> >             $(oasis_use_enable ocamlopt is_native) \
12 >> >             ${oasis_configure_opts} \
13 >> >             || die
14 >> > }
15 >>
16 >> This configure hates gentoo prefix, right?
17 >> Might worth sprinkling "${EPREFIX}" around absolute paths.
18 >>
19 >
20 > well, this will imply not supporting eapi2, i can live with it
21 >
22 > however, usually, i prefer prefix guys that need it to submit patches
23 > instead of trying to support it without testing.
24 > eg: shall it be EPREFIX before the /usr's?shall it be ED instead of
25 > D? both ?
26
27 You probably want ${EPREFIX} in front of every /usr passed to
28 configure. In other words,
29
30 ocaml setup.ml -configure --prefix "${EPREFIX}/usr" --libdir
31 "${EPREFIX}/blah" --docdir "${EPREFIX}/blargh" etc.
32
33 However, destdir should still be ${D}. That way, in src_install() your
34 package's files will be copied to ${D}${EPREFIX}/usr, better known as
35 ${ED}usr.

Replies