dev-ml/yojson: convert to opam.eclass
authorAlexis Ballier <aballier@gentoo.org>
Wed, 2 Aug 2017 10:09:59 +0000 (12:09 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Wed, 2 Aug 2017 11:22:38 +0000 (13:22 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.3

dev-ml/yojson/yojson-1.4.0.ebuild

index 5de703f5a055c5b91393f0ca08ebe85c67d107f9..e3b9f39c5175e0a41cfc589bf934b2067f155aad 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=5
 
-inherit findlib
+inherit findlib opam
 
 DESCRIPTION="JSON parsing and pretty-printing library for OCaml"
 HOMEPAGE="http://mjambon.com/yojson.html https://github.com/mjambon/yojson"
@@ -21,15 +21,10 @@ RDEPEND=">=dev-lang/ocaml-3.11:=[ocamlopt]
 DEPEND="${RDEPEND}
        dev-ml/cppo
        dev-ml/jbuilder
-       dev-ml/cppo
 "
 
 src_install() {
-       opam-installer -i \
-               --prefix="${ED}/usr" \
-               --libdir="${D}/$(ocamlc -where)" \
-               --docdir="${ED}/usr/share/doc/${PF}" \
-               ${PN}.install || die
+       opam_src_install
 
        if use examples ; then
                dodoc -r examples