dev-ml/ocaml-uri: update to opam.eclass
authorAlexis Ballier <aballier@gentoo.org>
Fri, 22 Sep 2017 08:24:44 +0000 (10:24 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Fri, 22 Sep 2017 08:31:45 +0000 (10:31 +0200)
Package-Manager: Portage-2.3.10, Repoman-2.3.3

dev-ml/ocaml-uri/ocaml-uri-1.9.4.ebuild

index 87566fc4d15ee8e9460cef47b5b20c2f02f09b86..53b7fbd0612ded43b1cb511f3ba062da9e14fb36 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=5
 
-inherit findlib
+inherit findlib opam
 
 DESCRIPTION="RFC3986 URI parsing library for OCaml"
 HOMEPAGE="https://github.com/mirage/ocaml-uri https://mirage.io"
@@ -22,18 +22,12 @@ RDEPEND="
        dev-ml/ppx_type_conv:=
        dev-ml/stringext:=
        dev-ml/type-conv:=
-       dev-lang/ocaml:=
 "
 DEPEND="${RDEPEND}
        test? ( >=dev-ml/ounit-1.0.2 )
        dev-ml/jbuilder
-       dev-ml/opam
 "
 
 src_install() {
-       opam-installer -i \
-               --prefix="${ED}/usr" \
-               --libdir="${D}/$(ocamlc -where)" \
-               --docdir="${ED}/usr/share/doc/${PF}" \
-               uri.install || die
+       opam_src_install uri
 }