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

dev-ml/ocaml-websocket/ocaml-websocket-2.9.ebuild

index 6dd48459ec42e37a6403a2aadf6f2ca96851c514..359784d9c4473798c28cb886a6c843b2c6780262 100644 (file)
@@ -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
 }