<pre style='margin:0'>
Dan Villiom Podlaski Christiansen (danchr) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/20accf447599d53006e1300db0eb336713c956ca">https://github.com/macports/macports-ports/commit/20accf447599d53006e1300db0eb336713c956ca</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 20accf447599d53006e1300db0eb336713c956ca
</span>Author: Dan Villiom Podlaski Christiansen <danchr@macports.org>
AuthorDate: Tue Sep 21 11:52:43 2021 +0200
<span style='display:block; white-space:pre;color:#404040;'> py{27,35}-pyobjc-cocoa: fold into one port, fix build on Big Sur
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/63436
</span>---
python/py27-pyobjc-cocoa/Portfile | 2 +-
.../py27-pyobjc-cocoa/files/pyobjc_setup.py.patch | 36 ++++++++++++----------
2 files changed, 21 insertions(+), 17 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py27-pyobjc-cocoa/Portfile b/python/py27-pyobjc-cocoa/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 6d3f6345de8..f5fa80e436f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py27-pyobjc-cocoa/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py27-pyobjc-cocoa/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,7 +21,7 @@ long_description This port provides the CoreFoundation, Foundation \
</span> homepage https://pyobjc.readthedocs.io
version 5.3
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span> distname ${python.rootname}-${version}
checksums rmd160 5790e8357f6e7e5668b8750dd4809522ae44f812 \
sha256 0b2d2f4a95d2634d1545c2d5cc949cb1b1bbfd73393d3c3b483be2a18906e568 \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py27-pyobjc-cocoa/files/pyobjc_setup.py.patch b/python/py27-pyobjc-cocoa/files/pyobjc_setup.py.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 9bbbe545438..623018b9451 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py27-pyobjc-cocoa/files/pyobjc_setup.py.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py27-pyobjc-cocoa/files/pyobjc_setup.py.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,15 +1,10 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- pyobjc_setup.py.orig 2019-10-16 20:40:22.000000000 +1100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ pyobjc_setup.py 2019-10-24 20:40:00.000000000 +1100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -207,14 +207,28 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git pyobjc_setup.py pyobjc_setup.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- pyobjc_setup.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ pyobjc_setup.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -207,14 +207,28 @@ def get_os_level():
</span> v = pl['ProductVersion']
return '.'.join(v.split('.')[:2])
<span style='display:block; white-space:pre;background:#ffe0e0;'>--def get_sdk_level():
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- cflags = get_config_var('CFLAGS')
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- cflags = shlex.split(cflags)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- for i, val in enumerate(cflags):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- if val == '-isysroot':
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- sdk = cflags[i+1]
</span> +def get_sdk():
+ env_cflags = os.environ.get('CFLAGS', '')
+ config_cflags = get_config_var('CFLAGS')
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,31 +19,40 @@
</span> + sdk = val[len('-isysroot'):]
+ break
+ if sdk:
<span style='display:block; white-space:pre;background:#ffe0e0;'>- break
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- else:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ break
</span> +
+ return sdk
+
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+def get_sdk_level():
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def get_sdk_level():
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- cflags = get_config_var('CFLAGS')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- cflags = shlex.split(cflags)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- for i, val in enumerate(cflags):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if val == '-isysroot':
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- sdk = cflags[i+1]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- break
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- else:
</span> + sdk = get_sdk()
+
+ if not sdk:
return None
if sdk == '/':
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -223,7 +237,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -223,7 +237,13 @@ def get_sdk_level():
</span> sdk = os.path.basename(sdk)
assert sdk.startswith('MacOSX')
assert sdk.endswith('.sdk')
- return sdk[6:-4]
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if sdk == 'MacOSX.sdk':
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ sdk = sdk[6:-4]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if sdk == '':
</span> + return get_os_level()
<span style='display:block; white-space:pre;background:#e0ffe0;'>++ elif '.' not in sdk:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return sdk + '.0'
</span> + else:
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return sdk[6:-4]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return sdk
</span>
class pyobjc_install_lib (install_lib.install_lib):
def get_exclusions(self):
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -396,10 +413,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -396,10 +416,10 @@ def Extension(*args, **kwds):
</span> if 'clang' in get_config_var('CC'):
cflags.append('-Wno-deprecated-declarations')
</pre><pre style='margin:0'>
</pre>