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

dev-ml/ppx_bench/ppx_bench-0.9.1.ebuild

index 35a254c808219eb0db32d085db0fd540e33b0c76..c17ddf31b27ae5513c384f4c5afb5ecca2e9a83b 100644 (file)
@@ -3,6 +3,8 @@
 
 EAPI=6
 
+inherit opam
+
 DESCRIPTION="Syntax extension for writing in-line benchmarks in ocaml code"
 HOMEPAGE="https://github.com/janestreet/ppx_bench"
 SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
@@ -13,7 +15,6 @@ KEYWORDS="~amd64"
 IUSE=""
 
 DEPEND="
-       dev-lang/ocaml:=
        dev-ml/ppx_core:=
        dev-ml/ppx_driver:=
        dev-ml/ppx_inline_test:=
@@ -22,12 +23,4 @@ DEPEND="
 "
 
 RDEPEND="${DEPEND}"
-DEPEND="${DEPEND} dev-ml/opam dev-ml/jbuilder"
-
-src_install() {
-       opam-installer -i \
-               --prefix="${ED}/usr" \
-               --libdir="${D}/$(ocamlc -where)" \
-               --docdir="${ED}/usr/share/doc/${PF}" \
-               ${PN}.install || die
-}
+DEPEND="${DEPEND} dev-ml/jbuilder"