commit:     6498f607aaef23fd2d311d310dc86bc6f46d85a1
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  6 12:06:12 2017 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Sun Aug  6 12:30:27 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6498f607

dev-ml/typerep: convert to opam.eclass

Package-Manager: Portage-2.3.6, Repoman-2.3.3

 dev-ml/typerep/typerep-0.9.0.ebuild | 18 ++++--------------
 1 file changed, 4 insertions(+), 14 deletions(-)

diff --git a/dev-ml/typerep/typerep-0.9.0.ebuild 
b/dev-ml/typerep/typerep-0.9.0.ebuild
index 7359a76a68a..2940a460434 100644
--- a/dev-ml/typerep/typerep-0.9.0.ebuild
+++ b/dev-ml/typerep/typerep-0.9.0.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=6
 
+inherit opam
+
 DESCRIPTION="Library for creating runtime representation of OCaml types"
 HOMEPAGE="https://github.com/janestreet/typerep";
 SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
@@ -12,18 +14,6 @@ SLOT="0/${PV}"
 KEYWORDS="~amd64"
 IUSE=""
 
-DEPEND="
-       dev-lang/ocaml:=
-       dev-ml/base:=
-"
-
+DEPEND="dev-ml/base:="
 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