From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-ml/opam/opam-1.3.1-r1.ebuild | 55 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 dev-ml/opam/opam-1.3.1-r1.ebuild (limited to 'dev-ml/opam/opam-1.3.1-r1.ebuild') diff --git a/dev-ml/opam/opam-1.3.1-r1.ebuild b/dev-ml/opam/opam-1.3.1-r1.ebuild new file mode 100644 index 000000000000..57dd504dc707 --- /dev/null +++ b/dev-ml/opam/opam-1.3.1-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils + +DESCRIPTION="A source-based package manager for OCaml" +HOMEPAGE="http://opam.ocaml.org/" +LICENSE="LGPL-3-with-linking-exception" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" +IUSE="test" + +if [[ ${PV} != 9999 ]]; then + SRC_URI="https://github.com/ocaml/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +else + inherit git-r3 + EGIT_REPO_URI="https://github.com/ocaml/opam.git" +fi + +RDEPEND="dev-lang/ocaml:= + || ( net-misc/wget net-misc/curl ) + dev-ml/extlib:= + dev-ml/ocaml-re:= + dev-ml/ocamlgraph:= + dev-ml/cmdliner:= + dev-ml/cudf:= + >=dev-ml/dose3-5:= + dev-ml/uutf:= + dev-ml/jsonm:= +" +DEPEND="${RDEPEND} + dev-ml/findlib + test? ( dev-vcs/git ) +" + +src_prepare() { + epatch "${FILESDIR}/stublibs.patch" +} + +src_compile() { + emake -j1 + cd doc + emake man +} + +src_test() { + EMAIL=foo@bar.com emake -j1 tests +} + +src_install() { + default + emake DESTDIR="${D}" OPAMINSTALLER_FLAGS="--prefix=\"${ED}/usr\" --libdir=\"${D}/$(ocamlc -where)\"" libinstall +} -- cgit v1.2.3