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

dev-ml/ppx_driver/ppx_driver-0.9.1.ebuild

index 1baaf8358f6b704ecaf50e52de1465de5969ad16..ba2287387b0bf6986741be5fb5daacd04bd4cd75 100644 (file)
@@ -3,6 +3,8 @@
 
 EAPI=6
 
+inherit opam
+
 DESCRIPTION="Feature-full driver for OCaml AST transformers"
 HOMEPAGE="https://github.com/janestreet/ppx_driver"
 SRC_URI="https://github.com/janestreet/ppx_driver/archive/v${PV}.tar.gz -> ${P}.tar.gz"
@@ -13,18 +15,9 @@ KEYWORDS="~amd64 ~ppc"
 IUSE=""
 
 DEPEND="
-       dev-lang/ocaml:=
        dev-ml/ppx_core:=
        dev-ml/ppx_optcomp:=
        dev-ml/ocaml-migrate-parsetree:=
        dev-ml/ocamlbuild:="
 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"