1 # Copyright 1999-2017 Gentoo Foundation
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 ~ppc"
15 if [[ ${PV} != 9999 ]]; then
16 SRC_URI="https://github.com/ocaml/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
19 EGIT_REPO_URI="https://github.com/ocaml/opam.git"
22 DEPEND="dev-lang/ocaml:=
23 || ( net-misc/wget net-misc/curl )
38 epatch "${FILESDIR}/stublibs.patch"
48 EMAIL=foo@bar.com emake -j1 tests
53 emake DESTDIR="${D}" OPAMINSTALLER_FLAGS="--prefix=\"${ED}/usr\" --libdir=\"${D}/$(ocamlc -where)\"" libinstall