[127056] trunk/dports/python/py-pyobjc
aronnax at macports.org
aronnax at macports.org
Sun Oct 19 23:05:31 PDT 2014
Revision: 127056
https://trac.macports.org/changeset/127056
Author: aronnax at macports.org
Date: 2014-10-19 23:05:30 -0700 (Sun, 19 Oct 2014)
Log Message:
-----------
py-pyobjc: update to 3.0.1, and patch for setuptools 6 (addresses #45310)
Modified Paths:
--------------
trunk/dports/python/py-pyobjc/Portfile
Added Paths:
-----------
trunk/dports/python/py-pyobjc/files/patch-Tools-pyobjc_setup.py.diff
trunk/dports/python/py-pyobjc/files/patch-setup.py.diff
Modified: trunk/dports/python/py-pyobjc/Portfile
===================================================================
--- trunk/dports/python/py-pyobjc/Portfile 2014-10-20 05:38:27 UTC (rev 127055)
+++ trunk/dports/python/py-pyobjc/Portfile 2014-10-20 06:05:30 UTC (rev 127056)
@@ -5,7 +5,7 @@
PortGroup python 1.0
name py-pyobjc
-version 2.5.1
+version 3.0.1
categories-append devel
license MIT
maintainers nomaintainer
@@ -22,8 +22,9 @@
homepage http://pyobjc.sourceforge.net/
master_sites https://pypi.python.org/packages/source/p/pyobjc-core/
distname pyobjc-core-${version}
-checksums rmd160 26e9764fda522993670898369115f0af9c480bce \
- sha256 164617f61ede177ff60cb4a6103326645c9d87aadee04b15493c3b49e31049e6
+checksums md5 f40f96460eac67554751a9e3e8bbdcef \
+ rmd160 2603015771686d6e2c4056bb51784b2b74e9c421 \
+ sha256 713cafd1a0aea24f50a2c47496e596cf2eadd0386da1529a3c05d6638a679198
python.versions 25 26 27 31 32 33 34
@@ -31,12 +32,14 @@
depends_lib port:py${python.version}-setuptools \
port:py${python.version}-py2app
- patchfiles setup.py.diff
+ # See https://trac.macports.org/ticket/45310
+ # FIXME: remove when version 3.0.2 comes out
+ patchfiles patch-setup.py.diff patch-Tools-pyobjc_setup.py.diff
set readme_name README.txt
if {${python.version} == 25} {
version 2.2
- patchfiles objc-class.m.diff
+ patchfiles setup.py.diff objc-class.m.diff
distname pyobjc-core-${version}
checksums md5 91155ec6b319c9b4b066a616dccbdaa2 \
sha1 6e1fbfa5708eefaf7a36147daf21f0aab62ec1e4 \
Added: trunk/dports/python/py-pyobjc/files/patch-Tools-pyobjc_setup.py.diff
===================================================================
--- trunk/dports/python/py-pyobjc/files/patch-Tools-pyobjc_setup.py.diff (rev 0)
+++ trunk/dports/python/py-pyobjc/files/patch-Tools-pyobjc_setup.py.diff 2014-10-20 06:05:30 UTC (rev 127056)
@@ -0,0 +1,25 @@
+--- Tools/pyobjc_setup.py.orig 2014-10-19 22:06:13.000000000 -0700
++++ Tools/pyobjc_setup.py 2014-10-19 22:08:57.000000000 -0700
+@@ -197,15 +197,17 @@
+ else:
+ outputs = install_lib.orig.install_lib.get_outputs(self)
+
++ exclusions = {}
+ for fn in outputs:
+ if 'PyObjCTest' in fn:
+- result[fn] = 1
++ exclusions[fn] = 1
+
+- result['PyObjCTest'] = 1
+- result[os.path.join(self.install_dir, 'PyObjCTest')] = 1
++ exclusions['PyObjCTest'] = 1
++ exclusions[os.path.join(self.install_dir, 'PyObjCTest')] = 1
+ for fn in os.listdir('PyObjCTest'):
+- result[os.path.join('PyObjCTest', fn)] = 1
+- result[os.path.join(self.install_dir, 'PyObjCTest', fn)] = 1
++ exclusions[os.path.join('PyObjCTest', fn)] = 1
++ exclusions[os.path.join(self.install_dir, 'PyObjCTest', fn)] = 1
++ result.update(exclusions)
+
+ return result
+
Added: trunk/dports/python/py-pyobjc/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-pyobjc/files/patch-setup.py.diff (rev 0)
+++ trunk/dports/python/py-pyobjc/files/patch-setup.py.diff 2014-10-20 06:05:30 UTC (rev 127056)
@@ -0,0 +1,22 @@
+--- setup.py.orig 2014-10-19 22:13:26.000000000 -0700
++++ setup.py 2014-10-19 22:16:23.000000000 -0700
+@@ -353,14 +353,15 @@
+ else:
+ outputs = install_lib.orig.install_lib.get_outputs(self)
+
++ exclusions = {}
+ for fn in outputs:
+ if 'PyObjCTest' in fn:
+- result[fn] = 1
++ exclusions[fn] = 1
+
+ for fn in os.listdir('PyObjCTest'):
+- result[os.path.join('PyObjCTest', fn)] = 1
+- result[os.path.join(self.install_dir, 'PyObjCTest', fn)] = 1
+-
++ exclusions[os.path.join('PyObjCTest', fn)] = 1
++ exclusions[os.path.join(self.install_dir, 'PyObjCTest', fn)] = 1
++ result.update(exclusions)
+
+ return result
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141019/cc3996a8/attachment-0001.html>
More information about the macports-changes
mailing list