commit:     2039c2439c4c69731caeb3be133550cd31881080
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  9 11:01:10 2017 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Mon Jan  9 11:08:24 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2039c243

dev-ml/jsonm: stop using opam-installer as it is an opam dep, bug #601906

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-ml/jsonm/jsonm-1.0.0.ebuild | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/dev-ml/jsonm/jsonm-1.0.0.ebuild b/dev-ml/jsonm/jsonm-1.0.0.ebuild
index 71e10a8..0281afd 100644
--- a/dev-ml/jsonm/jsonm-1.0.0.ebuild
+++ b/dev-ml/jsonm/jsonm-1.0.0.ebuild
@@ -1,9 +1,11 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI="5"
 
+inherit findlib
+
 DESCRIPTION="Non-blocking streaming JSON codec for OCaml"
 HOMEPAGE="http://erratique.ch/software/jsonm";
 SRC_URI="http://erratique.ch/software/jsonm/releases/${P}.tbz";
@@ -18,7 +20,6 @@ RDEPEND="dev-ml/uutf:=
        dev-ml/uchar:="
 DEPEND="${RDEPEND}
        dev-ml/topkg
-       dev-ml/opam
        dev-ml/ocamlbuild
        dev-ml/findlib"
 
@@ -29,10 +30,10 @@ src_compile() {
 }
 
 src_install() {
-       opam-installer -i \
-               --prefix="${ED}/usr" \
-               --libdir="${D}/$(ocamlc -where)" \
-               --docdir="${ED}/usr/share/doc/${PF}" \
-               ${PN}.install || die
+       # Can't use opam-installer here as it is an opam dep...
+       findlib_src_preinst
+       local nativelibs="$(echo _build/src/${PN}.cm{x,xa,xs,ti} 
_build/src/${PN}.a)"
+       ocamlfind install ${PN} _build/pkg/META _build/src/${PN}.mli 
_build/src/${PN}.cm{a,i} ${nativelibs} || die
+       newbin _build/test/jsontrip.native jsontrip
        dodoc CHANGES.md TODO.md README.md
 }

Reply via email to