commit:     ac6d398e555085a93347c75bb246713867417a76
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 15 07:25:59 2017 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Tue Aug 15 07:26:17 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac6d398e

dev-ml/ppx_hash: convert to opam.eclass

Package-Manager: Portage-2.3.7, Repoman-2.3.3

 dev-ml/ppx_hash/ppx_hash-0.9.0.ebuild | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/dev-ml/ppx_hash/ppx_hash-0.9.0.ebuild 
b/dev-ml/ppx_hash/ppx_hash-0.9.0.ebuild
index 8efaec8c338..e46e6394889 100644
--- a/dev-ml/ppx_hash/ppx_hash-0.9.0.ebuild
+++ b/dev-ml/ppx_hash/ppx_hash-0.9.0.ebuild
@@ -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"

Reply via email to