From 133e85b7d6febf3cf64a03dcca57c97974d255d7 Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Wed, 12 Apr 2017 20:51:46 +0200 Subject: dev-ml/eliom: Fix build with lwt3. Package-Manager: Portage-2.3.5, Repoman-2.3.2 --- dev-ml/eliom/eliom-6.2.0.ebuild | 5 +++++ dev-ml/eliom/eliom-9999.ebuild | 3 ++- dev-ml/eliom/files/lwt3.patch | 44 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 dev-ml/eliom/files/lwt3.patch (limited to 'dev-ml/eliom') diff --git a/dev-ml/eliom/eliom-6.2.0.ebuild b/dev-ml/eliom/eliom-6.2.0.ebuild index 49663b031dac..b69350aae03b 100644 --- a/dev-ml/eliom/eliom-6.2.0.ebuild +++ b/dev-ml/eliom/eliom-6.2.0.ebuild @@ -32,12 +32,17 @@ RDEPEND=">=dev-lang/ocaml-4.03:=[ocamlopt?] dev-ml/react:= dev-ml/ocaml-ssl:= >=dev-ml/lwt-2.5.0:= + dev-ml/lwt_react:= dev-ml/camlp4:= ppx? ( >=dev-ml/ppx_tools-0.99.3:= )" DEPEND="${RDEPEND} dev-ml/ocamlbuild dev-ml/opam" +src_prepare() { + epatch "${FILESDIR}/lwt3.patch" +} + src_compile() { if use ocamlopt ; then emake PPX=$(usex ppx true false) all diff --git a/dev-ml/eliom/eliom-9999.ebuild b/dev-ml/eliom/eliom-9999.ebuild index 74e7e33453c0..42b48b1abdd2 100644 --- a/dev-ml/eliom/eliom-9999.ebuild +++ b/dev-ml/eliom/eliom-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -32,6 +32,7 @@ RDEPEND=">=dev-lang/ocaml-4.03:=[ocamlopt?] dev-ml/react:= dev-ml/ocaml-ssl:= >=dev-ml/lwt-2.5.0:= + dev-ml/lwt_react:= dev-ml/camlp4:= ppx? ( >=dev-ml/ppx_tools-0.99.3:= )" DEPEND="${RDEPEND} diff --git a/dev-ml/eliom/files/lwt3.patch b/dev-ml/eliom/files/lwt3.patch new file mode 100644 index 000000000000..6b8d993fb687 --- /dev/null +++ b/dev-ml/eliom/files/lwt3.patch @@ -0,0 +1,44 @@ +Index: eliom-6.2.0/pkg/META +=================================================================== +--- eliom-6.2.0.orig/pkg/META ++++ eliom-6.2.0/pkg/META +@@ -13,7 +13,7 @@ package "server" ( + react, + reactiveData, + tyxml, +- lwt.react, ++ lwt_react, + cryptokit, + reactiveData" + archive(byte) = "server.cma" +@@ -49,7 +49,7 @@ package "client" ( + js_of_ocaml.tyxml, + js_of_ocaml.log, + js_of_ocaml.weak, +- lwt.react, ++ lwt_react, + react, + reactiveData, + tyxml.functor" +Index: eliom-6.2.0/src/_tags +=================================================================== +--- eliom-6.2.0.orig/src/_tags ++++ eliom-6.2.0/src/_tags +@@ -11,7 +11,7 @@ true:keep_locs + + :thread + :package(lwt,ocsigenserver,ocsigenserver.ext,tyxml.functor) +-:package(react,js_of_ocaml) ++:package(lwt_react,react,js_of_ocaml) + + :package(js_of_ocaml.deriving.ppx) + +@@ -24,7 +24,7 @@ true:keep_locs + : eliom_ppx + :package(ocsigenserver.cookies,ocsigenserver.polytables,ocsigenserver.baselib.base) + :package(deriving.runtime,js_of_ocaml.deriving) +-:package(lwt.react,tyxml.functor,js_of_ocaml.tyxml) ++:package(lwt_react,tyxml.functor,js_of_ocaml.tyxml) + :package(react,js_of_ocaml,reactiveData) + + :package(js_of_ocaml.deriving.ppx) -- cgit v1.2.3-65-gdbad