dev-ml/ppx_hash: convert to opam.eclass
authorAlexis Ballier <aballier@gentoo.org>
Tue, 15 Aug 2017 07:25:59 +0000 (09:25 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Tue, 15 Aug 2017 07:26:17 +0000 (09:26 +0200)
Package-Manager: Portage-2.3.7, Repoman-2.3.3

dev-ml/ppx_hash/ppx_hash-0.9.0.ebuild

index 8efaec8c338fe38bff2a0fc2e30d6d5b90516cb2..e46e6394889f3c30677cc0137fb1765ecbe1bbe9 100644 (file)
@@ -3,6 +3,8 @@
 
 EAPI=6
 
+inherit opam
+
 DESCRIPTION="PPX rewriter that generates hash functions from type expressions and definitions"
 HOMEPAGE="https://github.com/janestreet/ppx_hash"
 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/base:=
        dev-ml/ppx_compare:=
        dev-ml/ppx_core:=
@@ -24,12 +25,4 @@ DEPEND="
        dev-ml/ocaml-migrate-parsetree:=
        "
 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"