dev-ml/utop: convert to opam.eclass
authorAlexis Ballier <aballier@gentoo.org>
Wed, 2 Aug 2017 10:16:47 +0000 (12:16 +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/utop/utop-2.0.1.ebuild

index 90056da08e844cf9e15a11288621aac910c0a176..f2f8f4b5d056d037b2b63478707a736042df514b 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=5
 
-inherit findlib
+inherit findlib opam
 
 DESCRIPTION="A new toplevel for OCaml with completion and colorization"
 HOMEPAGE="https://github.com/diml/utop"
@@ -15,7 +15,6 @@ KEYWORDS="~amd64"
 IUSE=""
 
 DEPEND="
-       dev-lang/ocaml:=
        >=dev-ml/lwt-2.4.0:=
        dev-ml/lwt_react:=
        >=dev-ml/lambda-term-1.2:=
@@ -25,17 +24,4 @@ DEPEND="
 "
 RDEPEND="${DEPEND}"
 DEPEND="${DEPEND}
-       dev-ml/opam
        dev-ml/jbuilder"
-
-DOCS=( "CHANGES.md" "README.md" )
-SITEFILE="50${PN}-gentoo.el"
-
-src_install() {
-       opam-installer -i \
-               --prefix="${ED}/usr" \
-               --libdir="${D}/$(ocamlc -where)" \
-               --docdir="${ED}/usr/share/doc/${PF}" \
-               --mandir="${ED}/usr/share/man" \
-               ${PN}.install || die
-}