1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils multilib findlib
8 DESCRIPTION="A web framework to program client/server applications"
9 HOMEPAGE="http://ocsigen.org/eliom/"
11 if [ "${PV#9999}" != "${PV}" ] ; then
14 EGIT_REPO_URI="https://github.com/ocsigen/eliom"
17 SRC_URI="https://github.com/ocsigen/eliom/archive/${PV}.tar.gz -> ${P}.tar.gz"
21 LICENSE="LGPL-2.1-with-linking-exception"
23 IUSE="doc +ocamlopt +ppx"
25 RDEPEND=">=dev-lang/ocaml-4.03:=[ocamlopt?]
26 >=dev-ml/js_of_ocaml-2.8.2:=[xml]
27 >=www-servers/ocsigenserver-2.8:=
29 >=dev-ml/deriving-0.6:=
30 >=dev-ml/reactiveData-0.2.1:=
37 ppx? ( >=dev-ml/ppx_tools-0.99.3:= )"
43 if use ocamlopt ; then
44 emake PPX=$(usex ppx true false) all
46 emake PPX=$(usex ppx true false) byte
54 --prefix="${ED}/usr" \
55 --libdir="${D}/$(ocamlc -where)" \
56 --docdir="${ED}/usr/share/doc/${PF}" \
57 --mandir="${ED}/usr/share/man" \
59 dodoc CHANGES README.md
62 dodoc -r _build/src/lib/client/api.docdir/*
64 dodoc -r _build/src/lib/server/api.docdir/*