commit:     c18c755bf658f75b196a593f87b72bfc8b5c7b08
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 22 08:18:47 2017 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Fri Sep 22 08:31:41 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c18c755b

dev-ml/astring: update to opam.eclass

Package-Manager: Portage-2.3.10, Repoman-2.3.3

 dev-ml/astring/astring-0.8.3.ebuild | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/dev-ml/astring/astring-0.8.3.ebuild 
b/dev-ml/astring/astring-0.8.3.ebuild
index b992a79e835..cd17e851458 100644
--- a/dev-ml/astring/astring-0.8.3.ebuild
+++ b/dev-ml/astring/astring-0.8.3.ebuild
@@ -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
-}

Reply via email to