1 # Copyright 1999-2019 Gentoo Authors
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 ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
18 DEPEND=">=dev-lang/ocaml-4.09.0:=[ocamlopt?]"
21 !<dev-ml/findlib-1.5.5-r1"
25 S=${WORKDIR}/${P/_p/-}
26 PATCHES=( "${FILESDIR}/reload.patch" "${FILESDIR}/oc409.patch" )
30 --bindir="${EPREFIX}/usr/bin" \
31 --libdir="$(ocamlc -where)" \
32 --pkgdir="$(ocamlc -where)" \
38 use ocamlopt && emake native
42 emake DESTDIR="${D}" install install-META
43 dodoc CHANGES.md README.md