dev-ml/textutils: convert to opam.eclass
authorAlexis Ballier <aballier@gentoo.org>
Wed, 2 Aug 2017 10:18:13 +0000 (12:18 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Wed, 2 Aug 2017 11:22:39 +0000 (13:22 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.3

dev-ml/textutils/textutils-0.9.0.ebuild

index e39c58b6af9cec9844646274a0d21016fba62eb9..2ebb56bcc79c062cbe3c29a1dedc8da608acce42 100644 (file)
@@ -3,6 +3,8 @@
 
 EAPI=6
 
+inherit opam
+
 DESCRIPTION="Text output utilities"
 HOMEPAGE="https://github.com/janestreet/textutils"
 SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
@@ -13,18 +15,9 @@ KEYWORDS="~amd64"
 IUSE=""
 
 RDEPEND="
-       dev-lang/ocaml:=
        dev-ml/core:=
        dev-ml/ppx_driver:=
        dev-ml/ppx_jane:=
        dev-ml/ocaml-migrate-parsetree:=
 "
-DEPEND="${RDEPEND} 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="${RDEPEND} dev-ml/jbuilder"