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

dev-ml/ppx_import/ppx_import-1.2.ebuild

index 4bb61dd8e17118cde601799759fa5b8180d04fef..efecbd3f720013e93f03177b34afed21375920a8 100644 (file)
@@ -3,6 +3,8 @@
 
 EAPI=5
 
+inherit opam
+
 DESCRIPTION="A syntax extension for importing declarations from interface files"
 HOMEPAGE="https://github.com/whitequark/ppx_import"
 SRC_URI="https://github.com/whitequark/ppx_import/archive/v${PV}.tar.gz -> ${P}.tar.gz"
@@ -20,7 +22,6 @@ DEPEND="
 RDEPEND="${DEPEND}"
 DEPEND="${DEPEND}
        test? ( dev-ml/ounit dev-ml/ppx_deriving )
-       dev-ml/opam
        dev-ml/ocamlbuild
        dev-ml/findlib
 "
@@ -36,12 +37,3 @@ src_compile() {
 src_test() {
        ocamlbuild -classic-display -use-ocamlfind src_test/test_ppx_import.byte --     || die
 }
-
-src_install() {
-       opam-installer -i \
-               --prefix="${ED}/usr" \
-               --libdir="${D}/$(ocamlc -where)" \
-               --docdir="${T}/dontinstallit" \
-               ${PN}.install || die
-       dodoc CHANGELOG.md README.md
-}