From 295475730c0b20fbed5cf21f64d68b240d394511 Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Fri, 5 Feb 2016 19:01:56 +0100 Subject: [PATCH] dev-ml/bin-prot: use proper install method Package-Manager: portage-2.2.27 Signed-off-by: Alexis Ballier --- dev-ml/bin-prot/bin-prot-113.24.00.ebuild | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/dev-ml/bin-prot/bin-prot-113.24.00.ebuild b/dev-ml/bin-prot/bin-prot-113.24.00.ebuild index ab1cf7b4ca71..e10bfb91fe0e 100644 --- a/dev-ml/bin-prot/bin-prot-113.24.00.ebuild +++ b/dev-ml/bin-prot/bin-prot-113.24.00.ebuild @@ -21,7 +21,25 @@ IUSE="doc" RDEPEND=">=dev-ml/type-conv-109.28.00:=" DEPEND="${RDEPEND} + dev-ml/opam test? ( >=dev-ml/ounit-1.1.2 )" -DOCS=( "README.md" "CHANGES.md" ) 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 README.md +} -- 2.26.2