dev-ml/mtime: update to opam.eclass
authorAlexis Ballier <aballier@gentoo.org>
Fri, 22 Sep 2017 08:14:26 +0000 (10:14 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Fri, 22 Sep 2017 08:31:39 +0000 (10:31 +0200)
Package-Manager: Portage-2.3.10, Repoman-2.3.3

dev-ml/mtime/mtime-1.1.0.ebuild

index 02c8e3c215598c5769a459c26a6bc43e8f1f8711..1c5185f3abd38fd25d0ea926ec06b1b9c7769f4c 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI="5"
 
-inherit eutils
+inherit eutils opam
 
 DESCRIPTION="OCaml module to access monotonic wall-clock time"
 HOMEPAGE="http://erratique.ch/software/mtime https://github.com/dbuenzli/mtime"
@@ -18,7 +18,6 @@ RDEPEND="dev-lang/ocaml:=[ocamlopt]
        javascript? ( dev-ml/js_of_ocaml:= )
 "
 DEPEND="${RDEPEND}
-       dev-ml/opam
        dev-ml/topkg
        dev-ml/ocamlbuild
        dev-ml/findlib"
@@ -33,12 +32,3 @@ src_compile() {
 src_test() {
        ocaml pkg/pkg.ml test || die
 }
-
-src_install() {
-       opam-installer -i \
-               --prefix="${ED}/usr" \
-               --libdir="${D}/$(ocamlc -where)" \
-               --docdir="${ED}/usr/share/doc/${PF}" \
-               ${PN}.install || die
-       dodoc CHANGES.md README.md
-}