summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2009-12-20 10:53:01 +0000
committerFabian Groffen <grobian@gentoo.org>2009-12-20 10:53:01 +0000
commitcb4c2dca90c832a3e10407dbe715268a9618fb33 (patch)
tree3de4bfa4cac04a0523c7e21e6520ab53854244d5 /dev-python/sip/files/sip-4.9.3-darwin.patch
parentMerged keywords from Prefix overlay (diff)
downloadgentoo-2-cb4c2dca90c832a3e10407dbe715268a9618fb33.tar.gz
gentoo-2-cb4c2dca90c832a3e10407dbe715268a9618fb33.tar.bz2
gentoo-2-cb4c2dca90c832a3e10407dbe715268a9618fb33.zip
Merged keywords from Prefix overlay, applied fixes for Prefix and Darwin (bug #295035)
(Portage version: 2.2.00.15118-prefix/cvs/Darwin powerpc)
Diffstat (limited to 'dev-python/sip/files/sip-4.9.3-darwin.patch')
-rw-r--r--dev-python/sip/files/sip-4.9.3-darwin.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/sip/files/sip-4.9.3-darwin.patch b/dev-python/sip/files/sip-4.9.3-darwin.patch
new file mode 100644
index 000000000000..c82b727f3d2f
--- /dev/null
+++ b/dev-python/sip/files/sip-4.9.3-darwin.patch
@@ -0,0 +1,41 @@
+Don't require a framework builds, and produce .bundle files
+
+--- siputils.py
++++ siputils.py
+@@ -818,8 +818,6 @@
+ """
+ if self.generator in ("MSVC", "MSVC.NET", "BMAKE"):
+ plib = clib + ".lib"
+- elif sys.platform == "darwin" and framework:
+- plib = "-framework " + clib
+ else:
+ plib = "-l" + clib
+
+@@ -836,8 +834,6 @@
+
+ if self.generator in ("MSVC", "MSVC.NET", "BMAKE"):
+ prl_name = os.path.join(self.config.qt_lib_dir, clib + ".prl")
+- elif sys.platform == "darwin" and framework:
+- prl_name = os.path.join(self.config.qt_lib_dir, clib + ".framework", clib + ".prl")
+ else:
+ prl_name = os.path.join(self.config.qt_lib_dir, "lib" + clib + ".prl")
+
+@@ -1396,9 +1392,6 @@
+ # 'real_prefix' exists if virtualenv is being used.
+ dl = getattr(sys, 'real_prefix', sys.exec_prefix).split(os.sep)
+
+- if "Python.framework" not in dl:
+- error("SIP requires Python to be built as a framework")
+-
+ self.LFLAGS.append("-undefined dynamic_lookup")
+
+ Makefile.finalise(self)
+@@ -1478,7 +1471,7 @@
+ if sys.platform == "win32":
+ ext = "pyd"
+ elif sys.platform == "darwin":
+- ext = "so"
++ ext = "bundle"
+ elif sys.platform == "cygwin":
+ ext = "dll"
+ else: