dev-ml/dose3: fix build with ocamlgraph 1.8.7
authorAlexis Ballier <aballier@gentoo.org>
Fri, 22 Apr 2016 12:44:07 +0000 (14:44 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Fri, 22 Apr 2016 13:01:44 +0000 (15:01 +0200)
Package-Manager: portage-2.2.28

dev-ml/dose3/dose3-4.3.ebuild
dev-ml/dose3/files/ocamlgraph.patch [new file with mode: 0644]

index 681c3b5d8124a8ffb66112463c2dde3165d271c4..4b279d4fcb3b2b083371397e4f0f5533b836cdaf 100644 (file)
@@ -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 (file)
index 0000000..6f8edee
--- /dev/null
@@ -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