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

dev-ml/astring/astring-0.8.3.ebuild

index b992a79e8353671ec9f0a88a3730cccb12a0d07a..cd17e8514586f9eb80d8a721e7b7f691a7c421d4 100644 (file)
@@ -3,6 +3,8 @@
 
 EAPI="5"
 
+inherit opam
+
 DESCRIPTION="Alternative String module for OCaml"
 HOMEPAGE="http://erratique.ch/software/astring https://github.com/dbuenzli/astring"
 SRC_URI="http://erratique.ch/software/astring/releases/${P}.tbz"
@@ -14,7 +16,6 @@ IUSE=""
 
 RDEPEND="dev-lang/ocaml:=[ocamlopt]"
 DEPEND="${RDEPEND}
-       dev-ml/opam
        dev-ml/topkg
        dev-ml/ocamlbuild
        dev-ml/findlib"
@@ -22,12 +23,3 @@ DEPEND="${RDEPEND}
 src_compile() {
        ocaml pkg/pkg.ml build || 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
-}