dev-ml/ocaml-redis: convert to opam.eclass
authorAlexis Ballier <aballier@gentoo.org>
Fri, 6 Oct 2017 13:08:24 +0000 (15:08 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Fri, 6 Oct 2017 13:11:15 +0000 (15:11 +0200)
Package-Manager: Portage-2.3.11, Repoman-2.3.3

dev-ml/ocaml-redis/ocaml-redis-0.3.5.ebuild

index 80c9ad7b4ef0996cedb79cddb31350f2eba92815..97c63e8a8de495be563358ea7aa04bb9ec265dbc 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=5
 
-inherit findlib
+inherit findlib opam
 
 DESCRIPTION="Redis bindings for OCaml"
 HOMEPAGE="http://0xffea.github.io/ocaml-redis/ https://github.com/0xffea/ocaml-redis/"
@@ -21,7 +21,6 @@ RDEPEND="
 "
 DEPEND="${RDEPEND}
        dev-ml/jbuilder
-       dev-ml/opam
        test? ( dev-ml/ounit dev-db/redis dev-ml/lwt )"
 
 src_compile() {
@@ -40,9 +39,5 @@ src_test() {
 }
 
 src_install() {
-       opam-installer -i \
-               --prefix="${ED}/usr" \
-               --libdir="${D}/$(ocamlc -where)" \
-               --docdir="${ED}/usr/share/doc/${PF}" \
-               redis.install || die
+       opam_src_install redis
 }