You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ml/reason-parser/reason-parser-1.13.5.ebuild

51 lines
1.0 KiB

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit findlib eutils
DESCRIPTION="Meta Language Toolchain"
HOMEPAGE="https://github.com/facebook/reason"
SRC_URI="https://github.com/facebook/reason/releases/download/${PV}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="+ocamlopt"
DEPEND="
dev-lang/ocaml:=[ocamlopt?]
>=dev-ml/menhir-20170418:=
dev-ml/merlin-extend:=
dev-ml/result:=
dev-ml/topkg:=
dev-ml/ocaml-migrate-parsetree:=
dev-ml/ppx_tools_versioned:=
"
RDEPEND="${DEPEND}"
DEPEND="${DEPEND}
dev-ml/ocamlbuild
dev-ml/opam
"
S="${WORKDIR}/${PN}"
src_compile() {
emake compile_error
ocamlbuild -package topkg pkg/build.native || die
./build.native build \
--native "$(usex ocamlopt true false)" \
--native-dynlink "$(usex ocamlopt true false)" \
|| 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
}