diff options
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.patch | 41 |
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: |