diff options
author | Alexis Ballier <aballier@gentoo.org> | 2017-01-09 12:01:10 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2017-01-09 12:08:24 +0100 |
commit | 2039c2439c4c69731caeb3be133550cd31881080 (patch) | |
tree | bcb505a48b7647c3a3fd52c6b087ddc578db9d65 /dev-ml | |
parent | dev-ml/topkg: stop using opam-installer as it is an opam dep, bug #601906 (diff) | |
download | gentoo-2039c2439c4c69731caeb3be133550cd31881080.tar.gz gentoo-2039c2439c4c69731caeb3be133550cd31881080.tar.bz2 gentoo-2039c2439c4c69731caeb3be133550cd31881080.zip |
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
Diffstat (limited to 'dev-ml')
-rw-r--r-- | dev-ml/jsonm/jsonm-1.0.0.ebuild | 15 |
1 files 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 71e10a865591..0281afd77e91 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 } |