1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="OCaml library for manipulation of IP (and MAC) address representations"
7 HOMEPAGE="https://github.com/mirage/ocaml-ipaddr"
8 SRC_URI="https://github.com/mirage/ocaml-ipaddr/archive/${PV}.tar.gz -> ${P}.tar.gz"
15 RDEPEND="dev-ml/sexplib:=
16 dev-ml/ppx_sexp_conv:=
17 dev-lang/ocaml:=[ocamlopt?]
23 test? ( dev-ml/ounit )
27 ocaml pkg/pkg.ml build \
28 --tests $(usex test "true" "false") || die
32 ocaml pkg/pkg.ml test || die
37 --prefix="${ED}/usr" \
38 --libdir="${D}/$(ocamlc -where)" \
39 --docdir="${ED}/usr/share/doc/${PF}" \
41 dodoc CHANGES.md README.md