1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Uchar compatibility library"
9 HOMEPAGE="https://github.com/ocaml/uchar"
10 SRC_URI="https://github.com/ocaml/uchar/archive/v${PV}.tar.gz -> ${P}.tar.gz"
12 LICENSE="LGPL-2-with-linking-exception"
14 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
17 RDEPEND=">=dev-lang/ocaml-4.03:="
18 DEPEND="${RDEPEND} dev-ml/ocamlbuild"
20 # This is mostly a compat wrapper for older ocaml versions we don't support. No
21 # need to test it, plus it fails when installing for the first time:
22 # https://bugs.gentoo.org/show_bug.cgi?id=624144
27 "native=$(usex ocamlopt true false)" \
28 "native-dynlink=$(usex ocamlopt true false)" || die
32 ocamlbuild -X src -use-ocamlfind -pkg uchar test/testpkg.native || die
36 # Can't use opam-installer here as it is an opam dep...
38 mv _build/pkg/META{.empty,} || die
39 ocamlfind install ${PN} _build/pkg/META || die
40 dodoc README.md CHANGES.md