1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="OCaml module to access monotonic wall-clock time"
9 HOMEPAGE="http://erratique.ch/software/mtime https://github.com/dbuenzli/mtime"
10 SRC_URI="http://erratique.ch/software/mtime/releases/${P}.tbz"
15 IUSE="javascript test"
16 RESTRICT="!test? ( test )"
18 RDEPEND="dev-lang/ocaml:=[ocamlopt]
19 javascript? ( dev-ml/js_of_ocaml:= )
27 ocaml pkg/pkg.ml build \
28 --with-js_of_ocaml $(usex javascript true false) \
29 --tests $(usex test true false) \
34 ocaml pkg/pkg.ml test || die