commit:     2ac43a680ad96f2ebfb1fea9a04531531abdbd9d
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  6 13:08:24 2017 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Fri Oct  6 13:11:15 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ac43a68

dev-ml/ocaml-redis: convert to opam.eclass

Package-Manager: Portage-2.3.11, Repoman-2.3.3

 dev-ml/ocaml-redis/ocaml-redis-0.3.5.ebuild | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/dev-ml/ocaml-redis/ocaml-redis-0.3.5.ebuild 
b/dev-ml/ocaml-redis/ocaml-redis-0.3.5.ebuild
index 80c9ad7b4ef..97c63e8a8de 100644
--- a/dev-ml/ocaml-redis/ocaml-redis-0.3.5.ebuild
+++ b/dev-ml/ocaml-redis/ocaml-redis-0.3.5.ebuild
@@ -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
 }

Reply via email to