1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Declarative definition of command line interfaces for OCaml"
9 HOMEPAGE="http://erratique.ch/software/cmdliner"
10 SRC_URI="http://erratique.ch/software/${PN}/releases/${P}.tbz"
14 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
16 RESTRICT="!test? ( test )"
19 >=dev-lang/ocaml-4:=[ocamlopt?]
27 ocaml pkg/pkg.ml build \
28 --tests $(usex test true false) \
33 ocaml pkg/pkg.ml test || die
37 # Can't use opam-installer here as it is an opam dep...
40 use ocamlopt && nativelibs="$(echo _build/src/cmdliner.cm{x,xa,xs} _build/src/cmdliner.a)"
41 ocamlfind install cmdliner _build/pkg/META \
42 _build/src/cmdliner.mli _build/src/cmdliner.cm{a,i} ${nativelibs} || die
43 dodoc README.md CHANGES.md