commit: 7972add23cda61c8a53bb27cd71e1dff60b55070
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Sun May 1 17:42:45 2016 +0000
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Tue May 3 09:13:52 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7972add2
sci-mathematics/coq: fix build with ocaml 4.03
Package-Manager: portage-2.2.28
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
sci-mathematics/coq/coq-8.5_p1.ebuild | 1 +
sci-mathematics/coq/files/oc43.patch | 13 +++++++++++++
2 files changed, 14 insertions(+)
diff --git a/sci-mathematics/coq/coq-8.5_p1.ebuild
b/sci-mathematics/coq/coq-8.5_p1.ebuild
index 1dffb39..b1cc467 100644
--- a/sci-mathematics/coq/coq-8.5_p1.ebuild
+++ b/sci-mathematics/coq/coq-8.5_p1.ebuild
@@ -39,6 +39,7 @@ S=${WORKDIR}/${MY_P}
src_prepare() {
epatch "${FILESDIR}/${PN}-8.5-do-not-install-revision.patch"
epatch "${FILESDIR}/${PN}-8.4_p5-no-clean-before-test.patch"
+ has_version '>=dev-lang/ocaml-4.03' && epatch "${FILESDIR}/oc43.patch"
}
src_configure() {
diff --git a/sci-mathematics/coq/files/oc43.patch
b/sci-mathematics/coq/files/oc43.patch
new file mode 100644
index 0000000..47fa10a
--- /dev/null
+++ b/sci-mathematics/coq/files/oc43.patch
@@ -0,0 +1,13 @@
+Index: coq-8.5pl1/Makefile.common
+===================================================================
+--- coq-8.5pl1.orig/Makefile.common
++++ coq-8.5pl1/Makefile.common
+@@ -231,7 +231,7 @@ endif
+ LINKCMO:=$(CORECMA) $(STATICPLUGINS)
+ LINKCMX:=$(CORECMA:.cma=.cmxa) $(STATICPLUGINS:.cma=.cmxa)
+
+-IDEDEPS:=lib/clib.cma lib/xml_lexer.cmo lib/xml_parser.cmo
lib/xml_printer.cmo lib/errors.cmo lib/spawn.cmo
++IDEDEPS:=lib/clib.cma lib/errors.cmo lib/spawn.cmo
+ IDECMA:=ide/ide.cma
+ IDETOPLOOPCMA=ide/coqidetop.cma
+