1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="A compiler from OCaml bytecode to javascript"
9 HOMEPAGE="http://ocsigen.org/js_of_ocaml/"
11 if [ "${PV#9999}" != "${PV}" ] ; then
14 EGIT_REPO_URI="https://github.com/ocsigen/js_of_ocaml"
17 SRC_URI="https://github.com/ocsigen/js_of_ocaml/archive/${PV}.tar.gz -> ${P}.tar.gz"
18 # Breaks dev-ml/eliom dev-ml/async_js dev-ml/ocsigen-toolkit
23 LICENSE="LGPL-2.1-with-linking-exception"
25 IUSE="+ocamlopt +camlp4 +lwt doc +deriving +ppx +xml test"
26 RESTRICT="!test? ( test )"
29 >=dev-lang/ocaml-3.12:=[ocamlopt?]
31 camlp4? ( dev-ml/camlp4:= )
36 lwt? ( >=dev-ml/lwt-2.4.4:= )
40 dev-ml/ocaml-migrate-parsetree:=
41 dev-ml/ppx_tools_versioned:=
44 ppx? ( dev-ml/ppx_tools:= dev-ml/ppx_deriving:= )
46 xml? ( >=dev-ml/tyxml-4:= dev-ml/reactiveData:= )
51 test? ( dev-util/patdiff )
53 REQUIRED_USE="xml? ( ppx )"
62 --prefix="${ED}/usr" \
63 --libdir="${D}/$(ocamlc -where)" \
64 --docdir="${ED}/usr/share/doc/${PF}" \
65 --mandir="${ED}/usr/share/man" \
70 use camlp4 && oinstall js_of_ocaml-camlp4
71 oinstall js_of_ocaml-compiler
72 use lwt && oinstall js_of_ocaml-lwt
73 oinstall js_of_ocaml-ocamlbuild
75 use ppx && oinstall js_of_ocaml-ppx
76 use ppx && oinstall js_of_ocaml-toplevel
77 use xml && oinstall js_of_ocaml-tyxml