dev-ml/zed: convert to opam.eclass
authorAlexis Ballier <aballier@gentoo.org>
Wed, 2 Aug 2017 10:07:57 +0000 (12:07 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Wed, 2 Aug 2017 11:22:38 +0000 (13:22 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.3

dev-ml/zed/zed-1.5.ebuild

index 844d092dc96d9f31dac9d765401ce4464e6744cc..c8a407083927608abf10e5ec48143cc6c6e3ada0 100644 (file)
@@ -3,6 +3,8 @@
 
 EAPI=5
 
+inherit opam
+
 DESCRIPTION="Zed is an abstract engine for text edition"
 HOMEPAGE="https://github.com/diml/zed"
 SRC_URI="https://github.com/diml/zed/archive/${PV}.tar.gz -> ${P}.tar.gz"
@@ -18,18 +20,8 @@ DEPEND="
        dev-ml/react:="
 RDEPEND="${DEPEND}"
 DEPEND="${DEPEND}
-       dev-ml/opam
        dev-ml/jbuilder"
 
 src_compile() {
        jbuilder build --only-packages zed @install || 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
-}