1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Non-blocking streaming JSON codec for OCaml"
9 HOMEPAGE="http://erratique.ch/software/jsonm"
10 SRC_URI="http://erratique.ch/software/jsonm/releases/${P}.tbz"
14 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
17 RDEPEND=">=dev-ml/uutf-1.0.0:=
25 DOCS=( CHANGES README )
28 ocaml pkg/pkg.ml build || die
32 # Can't use opam-installer here as it is an opam dep...
34 local nativelibs="$(echo _build/src/${PN}.cm{x,xa,xs,ti} _build/src/${PN}.a)"
35 ocamlfind install ${PN} _build/pkg/META _build/src/${PN}.mli _build/src/${PN}.cm{a,i} ${nativelibs} || die
36 newbin _build/test/jsontrip.native jsontrip
37 dodoc CHANGES.md TODO.md README.md