dev-ml/reactiveData: update to opam.eclass
authorAlexis Ballier <aballier@gentoo.org>
Sun, 6 Aug 2017 12:30:17 +0000 (14:30 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Sun, 6 Aug 2017 12:30:28 +0000 (14:30 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.3

dev-ml/reactiveData/reactiveData-0.2.1.ebuild
dev-ml/reactiveData/reactiveData-9999.ebuild

index dfdc2e18f2e66fe3ba0266bfbd5c50b8bbdc94ce..a74fc715fcf0e1e6fea6ea2e10aca539e3b3eee0 100644 (file)
@@ -1,8 +1,10 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
 
+inherit opam
+
 DESCRIPTION="Functional reactive programming with incremental changes in data structures"
 HOMEPAGE="https://github.com/ocsigen/reactiveData"
 
@@ -20,11 +22,9 @@ LICENSE="LGPL-3-with-linking-exception"
 SLOT="0/${PV}"
 IUSE="+ocamlopt"
 
-RDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]
-       dev-ml/react:="
+RDEPEND="dev-ml/react:="
 DEPEND="${RDEPEND}
        dev-ml/findlib
-       dev-ml/opam
        dev-ml/ocamlbuild
 "
 
@@ -34,12 +34,3 @@ src_compile() {
                native-dynlink=$(usex ocamlopt true false) \
                || die
 }
-
-src_install() {
-       opam-installer \
-               --prefix="${ED}/usr" \
-               --libdir="${D}/$(ocamlc -where)" \
-               --docdir="${ED}/usr/share/doc/${PF}" \
-               || die
-       dodoc README.md
-}
index dfdc2e18f2e66fe3ba0266bfbd5c50b8bbdc94ce..a74fc715fcf0e1e6fea6ea2e10aca539e3b3eee0 100644 (file)
@@ -1,8 +1,10 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
 
+inherit opam
+
 DESCRIPTION="Functional reactive programming with incremental changes in data structures"
 HOMEPAGE="https://github.com/ocsigen/reactiveData"
 
@@ -20,11 +22,9 @@ LICENSE="LGPL-3-with-linking-exception"
 SLOT="0/${PV}"
 IUSE="+ocamlopt"
 
-RDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]
-       dev-ml/react:="
+RDEPEND="dev-ml/react:="
 DEPEND="${RDEPEND}
        dev-ml/findlib
-       dev-ml/opam
        dev-ml/ocamlbuild
 "
 
@@ -34,12 +34,3 @@ src_compile() {
                native-dynlink=$(usex ocamlopt true false) \
                || die
 }
-
-src_install() {
-       opam-installer \
-               --prefix="${ED}/usr" \
-               --libdir="${D}/$(ocamlc -where)" \
-               --docdir="${ED}/usr/share/doc/${PF}" \
-               || die
-       dodoc README.md
-}