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

dev-ml/ocaml-base64/ocaml-base64-2.2.0.ebuild

index 722eba386ee90b370441c770de71ee1cede4027b..35d4f2abf2bfc11eb732b2150d6fb2ebfdfa3a6d 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI="6"
 
-inherit findlib
+inherit findlib opam
 
 DESCRIPTION="Library for radix-64 representation (de)coding"
 HOMEPAGE="https://github.com/mirage/ocaml-base64"
@@ -14,17 +14,12 @@ SLOT="0/${PV}"
 KEYWORDS="~amd64"
 IUSE="test"
 
-RDEPEND=">=dev-lang/ocaml-4.02:="
+RDEPEND=""
 DEPEND="${RDEPEND}
        dev-ml/jbuilder
-       dev-ml/opam
        test? ( dev-ml/rresult dev-ml/bos dev-ml/alcotest )
 "
 
 src_install() {
-       opam-installer -i \
-               --prefix="${ED}/usr" \
-               --libdir="${D}/$(ocamlc -where)" \
-               --docdir="${ED}/usr/share/doc/${PF}" \
-               base64.install || die
+       opam_src_install base64
 }