1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Logging infrastructure for OCaml"
9 HOMEPAGE="http://erratique.ch/software/logs https://github.com/dbuenzli/logs"
10 SRC_URI="http://erratique.ch/software/logs/releases/${P}.tbz"
15 IUSE="javascript +fmt cli +lwt test"
16 RESTRICT="!test? ( test )"
19 dev-ml/result:=[ocamlopt]
20 dev-lang/ocaml:=[ocamlopt]
21 javascript? ( dev-ml/js_of_ocaml:= )
23 cli? ( dev-ml/cmdliner:=[ocamlopt] )
31 test? ( dev-ml/mtime )
35 ocaml pkg/pkg.ml build \
36 --with-js_of_ocaml $(usex javascript true false) \
37 --with-fmt $(usex fmt true false) \
38 --with-cmdliner $(usex cli true false) \
39 --with-lwt $(usex fmt true false) \
40 --tests $(usex test true false) \
45 ocaml pkg/pkg.ml test || die
50 --prefix="${ED}/usr" \
51 --libdir="${D}/$(ocamlc -where)" \
52 --docdir="${ED}/usr/share/doc/${PF}" \
54 dodoc CHANGES.md README.md