dev-ml/spawn: conver to opam.eclass
authorAlexis Ballier <aballier@gentoo.org>
Wed, 2 Aug 2017 11:14:33 +0000 (13:14 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Wed, 2 Aug 2017 11:22:51 +0000 (13:22 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.3

dev-ml/spawn/spawn-0.9.0.ebuild

index 14fbced82e950b454f7e760e9967a8677f8637a6..20fe4468b71d55a0231b6eabb65e219d4c5122bc 100644 (file)
@@ -3,6 +3,8 @@
 
 EAPI=6
 
+inherit opam
+
 DESCRIPTION="Spawning sub-processes"
 HOMEPAGE="https://github.com/janestreet/spawn"
 SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
@@ -12,16 +14,6 @@ SLOT="0/${PV}"
 KEYWORDS="~amd64"
 IUSE=""
 
-DEPEND="
-       dev-lang/ocaml:=
-       "
+DEPEND=""
 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"