On Fri, Mar 23, 2012 at 4:24 PM, Alexis Ballier <[email protected]> wrote:
> On Fri, 23 Mar 2012 23:11:46 +0300
> Sergei Trofimovich <[email protected]> wrote:
>> > oasis_src_configure() {
>> > ocaml setup.ml -configure \
>> > --prefix usr \
>> > --libdir /usr/$(get_libdir) \
>> > --docdir /usr/share/doc/${PF}/html \
>> > --destdir "${D}" \
>> > $(oasis_use_enable debug debug) \
>> > $(oasis_use_enable ocamlopt is_native) \
>> > ${oasis_configure_opts} \
>> > || die
>> > }
>>
>> This configure hates gentoo prefix, right?
>> Might worth sprinkling "${EPREFIX}" around absolute paths.
>>
>
> well, this will imply not supporting eapi2, i can live with it
>
> however, usually, i prefer prefix guys that need it to submit patches
> instead of trying to support it without testing.
> eg: shall it be EPREFIX before the /usr's?shall it be ED instead of
> D? both ?
You probably want ${EPREFIX} in front of every /usr passed to
configure. In other words,
ocaml setup.ml -configure --prefix "${EPREFIX}/usr" --libdir
"${EPREFIX}/blah" --docdir "${EPREFIX}/blargh" etc.
However, destdir should still be ${D}. That way, in src_install() your
package's files will be copied to ${D}${EPREFIX}/usr, better known as
${ED}usr.