dev-ml/ppx_metaquot: convert to opam.eclass
authorAlexis Ballier <aballier@gentoo.org>
Tue, 15 Aug 2017 07:21:22 +0000 (09:21 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Tue, 15 Aug 2017 07:26:12 +0000 (09:26 +0200)
Package-Manager: Portage-2.3.7, Repoman-2.3.3

dev-ml/ppx_metaquot/ppx_metaquot-0.9.0.ebuild

index 208ea1b93359b142b82e2f9b0521037069733075..337130032b03fcfe05eb324de2df8ddc11233ce9 100644 (file)
@@ -3,6 +3,8 @@
 
 EAPI=6
 
+inherit opam
+
 DESCRIPTION="Write OCaml AST fragment using OCaml syntax"
 HOMEPAGE="https://github.com/janestreet/ppx_metaquot"
 SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
@@ -20,12 +22,4 @@ DEPEND="
        <dev-ml/ppx_core-100
        "
 RDEPEND="${DEPEND}"
-DEPEND="${DEPEND} dev-ml/opam dev-ml/jbuilder"
-
-src_install() {
-       opam-installer -i \
-               --prefix="${ED}/usr" \
-               --libdir="${D}/$(ocamlc -where)" \
-               --docdir="${ED}/usr/share/doc/${PF}" \
-               ${PN}.install || die
-}
+DEPEND="${DEPEND} dev-ml/jbuilder"