commit:     3634414098191ca8f4ed2a3bb06fca504f62b611
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  6 13:07:12 2017 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Fri Oct  6 13:11:14 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36344140

dev-ml/ocaml-websocket: update to opam.eclass

Package-Manager: Portage-2.3.11, Repoman-2.3.3

 dev-ml/ocaml-websocket/ocaml-websocket-2.9.ebuild | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/dev-ml/ocaml-websocket/ocaml-websocket-2.9.ebuild 
b/dev-ml/ocaml-websocket/ocaml-websocket-2.9.ebuild
index 6dd48459ec4..359784d9c44 100644
--- a/dev-ml/ocaml-websocket/ocaml-websocket-2.9.ebuild
+++ b/dev-ml/ocaml-websocket/ocaml-websocket-2.9.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=6
 
+inherit opam
+
 DESCRIPTION="Websocket library for OCaml"
 HOMEPAGE="https://github.com/vbmithr/ocaml-websocket";
 SRC_URI="https://github.com/vbmithr/ocaml-websocket/archive/${PV}.tar.gz -> 
${P}.tar.gz"
@@ -28,7 +30,6 @@ DEPEND="
 "
 RDEPEND="${DEPEND}"
 DEPEND="${DEPEND}
-       dev-ml/opam
        dev-ml/ocamlbuild"
 
 src_compile() {
@@ -45,10 +46,6 @@ src_compile() {
 }
 
 src_install() {
-       opam-installer -i \
-               --prefix="${ED}/usr" \
-               --libdir="${D}/$(ocamlc -where)" \
-               --docdir="${ED}/usr/share/doc/${PF}" \
-               websocket.install || die
+       opam_src_install websocket
        dodoc README CHANGES
 }

Reply via email to