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

dev-ml/jbuilder/jbuilder-1.0_beta11.ebuild

index f5fac788964e7ae2c5bb619046ad448179f0e313..73b64735ff87edd6cdb0ade521f52b28961b2c6c 100644 (file)
@@ -3,6 +3,8 @@
 
 EAPI=5
 
+inherit opam
+
 MY_PV="${PV/_/+}"
 MY_P="${PN}-${PV/_/-}"
 
@@ -15,10 +17,9 @@ SLOT="0/${PV}"
 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
 IUSE="test"
 
-DEPEND="dev-lang/ocaml:="
+DEPEND=""
 RDEPEND="${DEPEND}"
 DEPEND="${DEPEND}
-       dev-ml/opam
        test? ( dev-ml/menhir )
 "
 OPAMSWITCH="system"
@@ -30,12 +31,3 @@ src_prepare() {
        # Disable Werror like behavior, doesnt build with ocaml 4.05 otherwise
        sed -i -e 's/--dev//' Makefile || die
 }
-
-src_install() {
-       opam-installer -i \
-               --prefix="${ED}/usr" \
-               --libdir="${D}/$(ocamlc -where)" \
-               --docdir="${ED}/usr/share/doc/${PF}" \
-               --mandir="${ED}/usr/share/man" \
-               ${PN}.install || die
-}