1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit multilib findlib eutils versionator
9 DESCRIPTION="A preprocessor-pretty-printer of ocaml"
10 HOMEPAGE="https://camlp5.github.io/"
11 SRC_URI="https://github.com/camlp5/camlp5/archive/rel$(replace_all_version_separators '').tar.gz -> ${P}.tar.gz"
12 S="${WORKDIR}/${PN}-rel$(replace_all_version_separators '')"
16 KEYWORDS="~alpha ~amd64 ~ppc ~x86"
20 >=dev-lang/ocaml-3.10:=[ocamlopt?]
21 <=dev-lang/ocaml-4.6.0
28 if [ "${PATCHLEVEL}" != "${PV}" ] ; then
29 for (( i=1; i<=PATCHLEVEL; i++ )) ; do
31 http://pauillac.inria.fr/~ddr/camlp5/distrib/src/patch-${PV%_p*}-${i} -> ${MY_P}-patch-${i}.patch"
32 PATCHLIST="${PATCHLIST} ${MY_P}-patch-${i}.patch"
37 for i in ${PATCHLIST} ; do
38 epatch "${DISTDIR}/${i}"
47 -libdir /usr/$(get_libdir)/ocaml \
48 -mandir /usr/share/man || die "configure failed"
60 emake DESTDIR="${D}" install
62 insinto "$(ocamlfind printconf destdir)/${PN}"
65 use doc && dohtml -r doc/*
67 dodoc CHANGES DEVEL ICHANGES README UPGRADING MODE