1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="System for writing extensible parsers for programming languages"
10 HOMEPAGE="https://github.com/ocaml/camlp4"
11 SRC_URI="https://github.com/ocaml/camlp4/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
13 LICENSE="LGPL-2-with-linking-exception"
15 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
18 DEPEND=">=dev-lang/ocaml-4.04_beta:=[ocamlopt?]"
21 !<dev-ml/findlib-1.5.5-r1"
23 || ( dev-ml/ocamlbuild <dev-lang/ocaml-4.02.3-r1 )"
25 S=${WORKDIR}/${P/_p/-}
29 --bindir="${EPREFIX}/usr/bin" \
30 --libdir="$(ocamlc -where)" \
31 --pkgdir="$(ocamlc -where)" \
37 use ocamlopt && emake native
41 emake DESTDIR="${D}" install install-META
42 dodoc CHANGES.md README.md