dev-ml/camlp5: Hook in ocaml 4.04.2 support
authorAlexis Ballier <aballier@gentoo.org>
Sun, 25 Jun 2017 09:24:58 +0000 (11:24 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Sun, 25 Jun 2017 14:42:40 +0000 (16:42 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-ml/camlp5/camlp5-6.17.ebuild

index bb868f3abf09627384b860d50127c1d2011f0831..1e3bd458fdcd08e60a171073d3be14aa672c4bda 100644 (file)
@@ -34,6 +34,10 @@ src_prepare() {
        for i in ${PATCHLIST} ; do
                epatch "${DISTDIR}/${i}"
        done
+       # ocaml 4.04.2 support
+       cp -a ocaml_stuff/4.04.1 ocaml_stuff/4.04.2 || die
+       cp ocaml_src/lib/versdep/4.04.{1,2}.ml || die
+       sed -i -e 's/4.04.1/4.04.2/'  ocaml_stuff/4.04.2/utils/pconfig.ml || die
 }
 
 src_configure() {