# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 DESCRIPTION="Meta Language Toolchain" HOMEPAGE="https://github.com/facebook/reason" SRC_URI="https://github.com/facebook/reason/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD" SLOT="0/${PV}" KEYWORDS="~amd64" IUSE="+ocamlopt" DEPEND=" dev-lang/ocaml:=[ocamlopt?] dev-ml/reason-parser:= dev-ml/merlin-extend:= dev-ml/result:= dev-ml/topkg:= dev-ml/ocaml-migrate-parsetree:= dev-ml/utop:= " RDEPEND="${DEPEND}" DEPEND="${DEPEND} dev-ml/findlib dev-ml/ocamlbuild dev-ml/opam" src_compile() { emake precompile emake build } 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 }