dev-ml/fpath: convert to opam.eclass
authorAlexis Ballier <aballier@gentoo.org>
Sat, 23 Sep 2017 12:10:46 +0000 (14:10 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Sat, 23 Sep 2017 12:43:52 +0000 (14:43 +0200)
Package-Manager: Portage-2.3.10, Repoman-2.3.3

dev-ml/fpath/fpath-0.7.2.ebuild

index 8696bff4270a9ad5e95faec91ecf8a73405b4b36..8a7ca78a2291e068f612b28517a83ed7dd9b38e1 100644 (file)
@@ -3,6 +3,8 @@
 
 EAPI=6
 
+inherit opam
+
 DESCRIPTION="File system paths for OCaml"
 HOMEPAGE="http://erratique.ch/software/fpath https://github.com/dbuenzli/fpath"
 SRC_URI="http://erratique.ch/software/fpath/releases/${P}.tbz"
@@ -13,7 +15,6 @@ KEYWORDS="~amd64"
 IUSE=""
 
 RDEPEND="
-       dev-lang/ocaml:=
        dev-ml/result:=
        dev-ml/astring:=
 "
@@ -26,11 +27,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
-}