commit:     9cf6e315af74acd848a0b9ce6dbd955378ebf056
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 22 12:44:07 2016 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Fri Apr 22 13:01:44 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cf6e315

dev-ml/dose3: fix build with ocamlgraph 1.8.7

Package-Manager: portage-2.2.28

 dev-ml/dose3/dose3-4.3.ebuild       |  1 +
 dev-ml/dose3/files/ocamlgraph.patch | 13 +++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/dev-ml/dose3/dose3-4.3.ebuild b/dev-ml/dose3/dose3-4.3.ebuild
index 681c3b5..4b279d4 100644
--- a/dev-ml/dose3/dose3-4.3.ebuild
+++ b/dev-ml/dose3/dose3-4.3.ebuild
@@ -41,6 +41,7 @@ RESTRICT="test"
 S="${WORKDIR}/${MY_P}"
 
 src_prepare() {
+       epatch "${FILESDIR}/ocamlgraph.patch"
        sed -e 's/INSTALLOPTS=-s/INSTALLOPTS=/' -i Makefile.config.in || die
 }
 

diff --git a/dev-ml/dose3/files/ocamlgraph.patch 
b/dev-ml/dose3/files/ocamlgraph.patch
new file mode 100644
index 0000000..6f8edee
--- /dev/null
+++ b/dev-ml/dose3/files/ocamlgraph.patch
@@ -0,0 +1,13 @@
+Index: dose3-4.3/algo/dominators.ml
+===================================================================
+--- dose3-4.3.orig/algo/dominators.ml
++++ dose3-4.3/algo/dominators.ml
+@@ -101,7 +101,7 @@ let dominators_tarjan graph =
+   ) graph;
+ 
+   Util.Timer.start tjntimer;
+-#if OCAMLGRAPHVERSION <= 186
++#if OCAMLGRAPHVERSION >= 186
+   let module Dom = Dominator.Make_graph(G) in
+ #else
+   let module Dom = Dominator.Make(G) in

Reply via email to