Skip to content

Commit

Permalink
dev-ml/jsonm: stop using opam-installer as it is an opam dep, bug #60…
Browse files Browse the repository at this point in the history
…1906

Package-Manager: Portage-2.3.3, Repoman-2.3.1
  • Loading branch information
aballier committed Jan 9, 2017
1 parent 368bf1d commit 2039c24
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions dev-ml/jsonm/jsonm-1.0.0.ebuild
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"

Expand All @@ -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
}

0 comments on commit 2039c24

Please sign in to comment.