1 # Copyright 1999-2018 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="LR(1) parser generator for the OCaml language"
9 HOMEPAGE="http://gallium.inria.fr/~fpottier/menhir/"
10 SRC_URI="http://gallium.inria.fr/~fpottier/menhir/${P}.tar.gz"
12 LICENSE="GPL-2 LGPL-2-with-linking-exception"
14 KEYWORDS="amd64 ~arm ~arm64 ~ppc ~x86"
15 IUSE="examples +ocamlopt"
17 RDEPEND=">=dev-lang/ocaml-4.02:=[ocamlopt?]"
22 if ! use ocamlopt ; then
28 emake PREFIX="${EPREFIX}"/usr -j1
33 emake PREFIX="${ED}"/usr docdir="${ED}"/usr/share/doc/"${PF}" $(use examples || echo "DOCS=manual.pdf") install
34 use examples && docompress -x /usr/share/doc/${PF}/demos
35 dodoc README.md CHANGES.md