From: Alexis Ballier Date: Fri, 5 Feb 2016 16:55:37 +0000 (+0100) Subject: dev-ml/typerep: Fix install method and license X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2c96e2d9a583ac2b204b0585da5de5563f1d67db;p=gentoo.git dev-ml/typerep: Fix install method and license Package-Manager: portage-2.2.27 Signed-off-by: Alexis Ballier --- diff --git a/dev-ml/typerep/typerep-113.24.00.ebuild b/dev-ml/typerep/typerep-113.24.00.ebuild index c5f353aa6fc4..2dff2b9df0ce 100644 --- a/dev-ml/typerep/typerep-113.24.00.ebuild +++ b/dev-ml/typerep/typerep-113.24.00.ebuild @@ -6,12 +6,11 @@ EAPI="5" inherit oasis -MY_P=${PN/-/_}-${PV} DESCRIPTION="Library for creating runtime representation of OCaml types" HOMEPAGE="http://www.janestreet.com/ocaml" -SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${MY_P}.tar.gz" +SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${P}.tar.gz" -LICENSE="LGPL-2.1-with-linking-exception" +LICENSE="Apache-2.0" SLOT="0/${PV}" KEYWORDS="~amd64" IUSE="" @@ -21,5 +20,22 @@ DEPEND=" dev-ml/camlp4:=" RDEPEND="${DEPEND}" +DEPEND="${DEPEND} dev-ml/opam" -S="${WORKDIR}/${MY_P}" +src_configure() { + emake setup.exe + OASIS_SETUP_COMMAND="./setup.exe" oasis_src_configure +} + +src_compile() { + emake +} + +src_install() { + opam-installer -i \ + --prefix="${ED}/usr" \ + --libdir="${D}/$(ocamlc -where)" \ + --docdir="${ED}/usr/share/doc/${PF}" \ + ${PN}.install || die + dodoc CHANGES.md +}