summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2008-01-03 17:41:59 +0000
committerAlexis Ballier <aballier@gentoo.org>2008-01-03 17:41:59 +0000
commit44e70e5132246a832d86e28c7c9299477d2e457c (patch)
tree3ae772e71e81689b55f40342f81bfddcfb0035fd /sci-mathematics/coq/files/coq-8.1_p3-cmxa-install.dpatch
parentMarking cyrus-imap-dev-2.3.9 ppc64 for bug 201684 (diff)
downloadhistorical-44e70e5132246a832d86e28c7c9299477d2e457c.tar.gz
historical-44e70e5132246a832d86e28c7c9299477d2e457c.tar.bz2
historical-44e70e5132246a832d86e28c7c9299477d2e457c.zip
Add support for building without ocamlopt, import smimou's patches from debian to allow it. Fix desktop entry categories.
Package-Manager: portage-2.1.4_rc14
Diffstat (limited to 'sci-mathematics/coq/files/coq-8.1_p3-cmxa-install.dpatch')
-rw-r--r--sci-mathematics/coq/files/coq-8.1_p3-cmxa-install.dpatch23
1 files changed, 23 insertions, 0 deletions
diff --git a/sci-mathematics/coq/files/coq-8.1_p3-cmxa-install.dpatch b/sci-mathematics/coq/files/coq-8.1_p3-cmxa-install.dpatch
new file mode 100644
index 000000000000..7e8d2ffbb92e
--- /dev/null
+++ b/sci-mathematics/coq/files/coq-8.1_p3-cmxa-install.dpatch
@@ -0,0 +1,23 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## cmxa-install.dpatch by Samuel Mimram <smimram@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: .cmxa are not generated on non-native archs, so don't install them.
+
+@DPATCH@
+diff -urNad coq-8.1+dfsg~/Makefile coq-8.1+dfsg/Makefile
+--- coq-8.1+dfsg~/Makefile 2007-02-18 13:25:29.000000000 +0100
++++ coq-8.1+dfsg/Makefile 2007-02-18 13:27:28.000000000 +0100
+@@ -1272,7 +1272,11 @@
+ parsing/parsing.cma tactics/tactics.cma toplevel/toplevel.cma \
+ parsing/highparsing.cma tactics/hightactics.cma contrib/contrib.cma
+
+-OBJECTCMXA=$(OBJECTCMA:.cma=.cmxa)
++ifeq ($(BEST),opt)
++ OBJECTCMXA=$(OBJECTCMA:.cma=.cmxa)
++else
++ OBJECTCMXA=
++endif
+
+ install-library:
+ $(MKDIR) $(FULLCOQLIB)