Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Alexis Ballier <aballier@g.o>
Subject: Re: New eclass: oasis.eclass for oasis-based ocaml packages.
Date: Fri, 23 Mar 2012 17:24:43 -0300
On Fri, 23 Mar 2012 23:11:46 +0300
Sergei Trofimovich <slyfox@g.o> wrote:

> > oasis_use_enable() {
> > 	    echo "--override $2 `use $1 && echo \"true\" || echo
> > \"false\"`" }
> 
> Mike added 'usex' to 'eutils.eclass' recently, so you might like to
> use it: (UNTESTED)
>     echo "--override $2 $(usex $1 true false)"

it needs to print the quotes too, so this wont work

i've been copy/pasting this 'formula' for a while, i know it works, and
i am too lazy to try to rewrite it to usex just for the sake of it :)

> 
> > 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 ?

A.


Replies:
Re: New eclass: oasis.eclass for oasis-based ocaml packages.
-- Sergei Trofimovich
Re: New eclass: oasis.eclass for oasis-based ocaml packages.
-- Alexandre Rostovtsev
References:
New eclass: oasis.eclass for oasis-based ocaml packages.
-- Alexis Ballier
Re: New eclass: oasis.eclass for oasis-based ocaml packages.
-- Sergei Trofimovich
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: New eclass: oasis.eclass for oasis-based ocaml packages.
Next by thread:
Re: New eclass: oasis.eclass for oasis-based ocaml packages.
Previous by date:
Re: New eclass: oasis.eclass for oasis-based ocaml packages.
Next by date:
Re: New eclass: oasis.eclass for oasis-based ocaml packages.


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.