1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="A source-based package manager for OCaml"
9 HOMEPAGE="http://opam.ocaml.org/"
10 LICENSE="LGPL-3-with-linking-exception"
12 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
14 RESTRICT="!test? ( test )"
16 if [[ ${PV} != 9999 ]]; then
17 SRC_URI="https://github.com/ocaml/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
20 EGIT_REPO_URI="https://github.com/ocaml/opam.git"
23 RDEPEND="dev-lang/ocaml:=
24 || ( net-misc/wget net-misc/curl )
40 epatch "${FILESDIR}/stublibs.patch"
50 EMAIL=foo@bar.com emake -j1 tests
55 emake DESTDIR="${D}" OPAMINSTALLER_FLAGS="--prefix=\"${ED}/usr\" --libdir=\"${D}/$(ocamlc -where)\"" libinstall