Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/ocaml/
Date: Sat, 02 Apr 2016 09:06:29
Message-Id: 1459587959.d47d7fc186f119b1dec024fa23fce7e771f3d296.aballier@gentoo
1 commit: d47d7fc186f119b1dec024fa23fce7e771f3d296
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 2 09:05:30 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 2 09:05:59 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d47d7fc1
7
8 dev-lang/ocaml: add flambda useflag
9
10 Package-Manager: portage-2.2.28
11 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
12
13 dev-lang/ocaml/metadata.xml | 3 +++
14 dev-lang/ocaml/ocaml-4.03.0_beta2.ebuild | 3 ++-
15 2 files changed, 5 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-lang/ocaml/metadata.xml b/dev-lang/ocaml/metadata.xml
18 index ffac4d7..aabb331 100644
19 --- a/dev-lang/ocaml/metadata.xml
20 +++ b/dev-lang/ocaml/metadata.xml
21 @@ -5,4 +5,7 @@
22 <email>ml@g.o</email>
23 <name>Gentoo ML Project</name>
24 </maintainer>
25 + <use>
26 + <flag name="flambda">Enables the Flambda optimizer: A new intermediate representation (introduced in ocaml 4.03) in the depths of the compiler designed to allow for better inlining.</flag>
27 + </use>
28 </pkgmetadata>
29
30 diff --git a/dev-lang/ocaml/ocaml-4.03.0_beta2.ebuild b/dev-lang/ocaml/ocaml-4.03.0_beta2.ebuild
31 index 0aea93c..f795dae 100644
32 --- a/dev-lang/ocaml/ocaml-4.03.0_beta2.ebuild
33 +++ b/dev-lang/ocaml/ocaml-4.03.0_beta2.ebuild
34 @@ -18,7 +18,7 @@ LICENSE="QPL-1.0 LGPL-2"
35 # so here we go with the subslot.
36 SLOT="0/${PV}"
37 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
38 -IUSE="emacs latex ncurses +ocamlopt X xemacs"
39 +IUSE="emacs flambda latex ncurses +ocamlopt X xemacs"
40
41 RDEPEND="
42 ncurses? ( sys-libs/ncurses:0= )
43 @@ -60,6 +60,7 @@ src_configure() {
44
45 use ncurses || myconf="${myconf} -no-curses"
46 use X || myconf="${myconf} -no-graph"
47 + use flambda && myconf="${myconf} -flambda"
48
49 # ocaml uses a home-brewn configure script, preventing it to use econf.
50 RAW_LDFLAGS="$(raw-ldflags)" ./configure \