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

dev-ml/xmlm/xmlm-1.3.0.ebuild

index b77154a1eeecc8e0dd4d2d87718b8f3f4b74c1c1..f01035cc90c481dfe4cb383f910dca9a10f3783d 100644 (file)
@@ -3,6 +3,8 @@
 
 EAPI=5
 
+inherit opam
+
 DESCRIPTION="Ocaml XML manipulation module"
 HOMEPAGE="http://erratique.ch/software/xmlm https://github.com/dbuenzli/xmlm"
 SRC_URI="http://erratique.ch/software/${PN}/releases/${P}.tbz"
@@ -12,10 +14,9 @@ SLOT="0/${PV}"
 KEYWORDS="~amd64"
 IUSE="test"
 
-RDEPEND=">=dev-lang/ocaml-3.12:="
+RDEPEND=""
 DEPEND="${RDEPEND}
        dev-ml/findlib
-       dev-ml/opam
        >=dev-ml/topkg-0.9
 "
 
@@ -28,12 +29,3 @@ src_compile() {
 src_test() {
        ocaml pkg/pkg.ml test || die
 }
-
-src_install() {
-       opam-installer \
-               --prefix="${ED}/usr" \
-               --libdir="${D}/$(ocamlc -where)" \
-               --docdir="${ED}/usr/share/doc/${PF}" \
-               || die
-       dodoc CHANGES.md README.md
-}