Ticket #37222: 1.patch
File 1.patch, 25.3 KB (added by seanfarley (Sean Farley), 12 years ago) |
---|
-
dports/python/py-pyobjc/Portfile
# HG changeset patch # User Sean Farley <sean.michael.farley@gmail.com> # Date 1354584025 21600 # Node ID 6f873143deb12fb4ad797fa8bf93bc996a311e07 # Parent a68e3aaab9f31695f8e61cb0096e0876d77fe1da py-pyobjc: consolidate into one portfile diff --git a/dports/python/py-pyobjc/Portfile b/dports/python/py-pyobjc/Portfile
a b 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 1 2 # $Id$ 2 3 3 4 PortSystem 1.0 4 PortGroup python2 41.05 PortGroup python27 1.0 5 6 6 name py-pyobjc7 version 1.48 categories 7 name py27-pyobjc 8 version 2.3 9 categories python devel 9 10 license MIT 10 maintainers 11 platforms 12 description 13 long_description 14 15 16 17 18 19 11 maintainers nomaintainer 12 platforms darwin 13 description bidirectional bridge between python and Objective C 14 long_description The PyObjC project aims to provide a bridge between \ 15 the Python and Objective-C programming languages. The \ 16 bridge is intended to be fully bidirectional, allowing \ 17 the Python programmer to take full advantage of the \ 18 power provided by various Objective-C based toolkits \ 19 and the Objective-C programmer transparent access to \ 20 Python based functionality. 20 21 21 homepage http://pyobjc.sourceforge.net/ 22 master_sites http://pyobjc.sourceforge.net/software/ 23 distname pyobjc-${version} 24 checksums sha1 6f83b13b78e19f390709eaedf3004c81d983dc5d 22 homepage http://pyobjc.sourceforge.net/ 23 master_sites http://pypi.python.org/packages/source/p/pyobjc-core/ 24 distname pyobjc-core-${version} 25 25 26 if {${os.major} > 8} { 26 checksums sha1 ef7c5489e86e5ff219e7ae15de84fe28bc1572f6 \ 27 rmd160 8c7b5ec7478035490bcb78193b7659ee6293c785 28 29 depends_lib port:py27-distribute \ 30 path:${python.pkgd}/py2app/__init__.py:py27-py2app \ 31 port:libxml2 32 33 patchfiles setup.py.diff 34 35 platform darwin 12 { 36 patchfiles-append patch-Modules.diff 37 } 38 39 post-destroot { 40 xinstall -m 644 -W ${worksrcpath} HISTORIC.txt Install.txt \ 41 License.txt NEWS.txt README.txt \ 42 ${destroot}${prefix}/share/doc/${name} 43 copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${name}/html 44 delete ${destroot}${prefix}/share/doc/${name}/examples 45 copy ${worksrcpath}/Examples \ 46 ${destroot}${prefix}/share/doc/${name}/examples 47 } 48 49 if {${os.platform} == "darwin" && ${os.major} <= 8} { 50 depends_lib 27 51 pre-fetch { 28 return -code error "PyObjC 1.4 is for Mac OS X 10.4 and lower. On 10.5, use py-pyobjc2 instead." 52 ui_error "${name} ${version} requires OS X 10.5 or greater." 53 return -code error "incompatible OS X version" 29 54 } 30 55 } 31 56 32 post-destroot { 33 xinstall -m 644 -W ${worksrcpath} HISTORIC.txt Install.html Install.txt \ 34 License.txt NEWS.html NEWS.txt README.txt ReadMe.html \ 35 ${destroot}${prefix}/share/doc/${name} 36 file copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${name}/html 37 file delete ${destroot}${prefix}/share/doc/${name}/examples 38 file copy ${worksrcpath}/Examples \ 39 ${destroot}${prefix}/share/doc/${name}/examples 40 } 57 livecheck.type regex 58 livecheck.url http://pypi.python.org/pypi/pyobjc-core/ 59 livecheck.regex {pyobjc-core ([0-9.]+)} -
new file dports/python/py-pyobjc/files/patch-Modules.diff
diff --git a/dports/python/py-pyobjc/files/patch-Modules.diff b/dports/python/py-pyobjc/files/patch-Modules.diff new file mode 100644
- + 1 diff -rupN Modules-original/objc/objc-runtime-compat.m Modules/objc/objc-runtime-compat.m 2 --- Modules-original/objc/objc-runtime-compat.m 2009-05-25 03:56:04.000000000 +0900 3 +++ Modules/objc/objc-runtime-compat.m 2012-05-12 01:43:46.000000000 +0900 4 @@ -981,27 +981,4 @@ size_t PyObjC_methodlist_magic(Class cls 5 6 #endif 7 8 -#if defined(__x86_64__) 9 10 -@implementation Protocol (NSOBjectCompat) 11 -- self 12 -{ 13 - return self; 14 -} 15 -@end 16 - 17 -@implementation Object (NSOBjectCompat) 18 -- self 19 -{ 20 - return self; 21 -} 22 - 23 --doesNotRecognizeSelector:(SEL)sel 24 -{ 25 - printf("--> %s\n", sel_getName(sel)); 26 - abort(); 27 -} 28 -@end 29 - 30 - 31 -#endif 32 diff -rupN Modules-original/objc/objc_support.m Modules/objc/objc_support.m 33 --- Modules-original/objc/objc_support.m 2010-06-30 05:28:09.000000000 +0900 34 +++ Modules/objc/objc_support.m 2012-05-12 01:46:11.000000000 +0900 35 @@ -150,68 +150,7 @@ 36 -(PyObject*)__pyobjc_PythonTransient__:(int*)cookie; 37 @end /* PyObjCSupport */ 38 39 -@implementation Protocol (PyObjCSupport) 40 41 --(PyObject*)__pyobjc_PythonObject__ 42 -{ 43 - PyObject *rval; 44 - 45 - rval = PyObjC_FindPythonProxy(self); 46 - if (rval == NULL) { 47 - rval = PyObjCFormalProtocol_ForProtocol(self); 48 - } 49 - return rval; 50 -} 51 - 52 --(PyObject*)__pyobjc_PythonTransient__:(int*)cookie 53 -{ 54 - PyObject *rval; 55 - 56 - *cookie = 0; 57 - rval = PyObjC_FindPythonProxy(self); 58 - if (rval == NULL) { 59 - rval = PyObjCFormalProtocol_ForProtocol(self); 60 - } 61 - return rval; 62 -} 63 - 64 -@end /* PyObjCSupport */ 65 - 66 -@interface Object (PyObjCSupport) 67 --(PyObject*)__pyobjc_PythonObject__; 68 --(PyObject*)__pyobjc_PythonTransient__:(int*)cookie; 69 -@end /* PyObjCSupport */ 70 - 71 -@implementation Object (PyObjCSupport) 72 - 73 --(PyObject*)__pyobjc_PythonObject__ 74 -{ 75 - PyObject *rval; 76 - 77 - rval = PyObjC_FindPythonProxy(self); 78 - if (rval == NULL) { 79 - rval = (PyObject *)PyObjCObject_New(self, 80 - PyObjCObject_kCLASSIC, NO); 81 - PyObjC_RegisterPythonProxy(self, rval); 82 - } 83 - return rval; 84 -} 85 - 86 --(PyObject*)__pyobjc_PythonTransient__:(int*)cookie 87 -{ 88 - PyObject *rval; 89 - 90 - *cookie = 0; 91 - rval = PyObjC_FindPythonProxy(self); 92 - if (rval == NULL) { 93 - rval = (PyObject *)PyObjCObject_New(self, 94 - PyObjCObject_kCLASSIC, NO); 95 - PyObjC_RegisterPythonProxy(self, rval); 96 - } 97 - return rval; 98 -} 99 - 100 -@end /* PyObjCSupport */ 101 102 @interface NSString (PyObjCSupport) 103 -(PyObject*)__pyobjc_PythonObject__; 104 diff -rupN Modules-original/objc/selector.m Modules/objc/selector.m 105 --- Modules-original/objc/selector.m 2010-06-24 17:53:29.000000000 +0900 106 +++ Modules/objc/selector.m 2012-05-12 01:49:44.000000000 +0900 107 @@ -798,9 +798,6 @@ PyObjCSelector_FindNative(PyObject* self 108 } 109 } 110 111 - if (Object_class == nil) { 112 - Object_class = [Object class]; 113 - } 114 115 if (name[0] == '_' && name[1] == '_') { 116 /* No known Objective-C class has methods whose name -
new file dports/python/py-pyobjc/files/setup.py.diff
diff --git a/dports/python/py-pyobjc/files/setup.py.diff b/dports/python/py-pyobjc/files/setup.py.diff new file mode 100644
- + 1 --- setup.py.orig 2010-07-25 00:38:17.000000000 +1000 2 +++ setup.py 2011-05-25 22:47:49.000000000 +1000 3 @@ -22,7 +22,7 @@ 4 # Set USE_SYSTEM_LIBXML to True to link to the system version 5 # of libxml2 (defaults to False to avoid problems when building 6 # on 10.6 and running on an earlier release) 7 -USE_SYSTEM_LIBXML = False 8 +USE_SYSTEM_LIBXML = True 9 10 if sys.version_info < MIN_PYTHON: 11 vstr = '.'.join(map(str, MIN_PYTHON)) -
deleted file dports/python/py25-pyobjc/Portfile
diff --git a/dports/python/py25-pyobjc/Portfile b/dports/python/py25-pyobjc/Portfile deleted file mode 100644
+ - 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=42 # $Id$3 4 PortSystem 1.05 PortGroup python25 1.06 7 name py25-pyobjc8 version 2.29 categories python devel10 license MIT11 maintainers nomaintainer12 platforms darwin13 description bidirectional bridge between python and Objective C14 long_description The PyObjC project aims to provide a bridge between \15 the Python and Objective-C programming languages. The \16 bridge is intended to be fully bidirectional, allowing \17 the Python programmer to take full advantage of the \18 power provided by various Objective-C based toolkits \19 and the Objective-C programmer transparent access to \20 Python based functionality.21 22 homepage http://pyobjc.sourceforge.net/23 master_sites http://pypi.python.org/packages/source/p/pyobjc-core/24 distname pyobjc-core-${version}25 checksums md5 91155ec6b319c9b4b066a616dccbdaa2 \26 sha1 6e1fbfa5708eefaf7a36147daf21f0aab62ec1e4 \27 rmd160 a7063fe74ecc95b3105e78196e5b5adc3bba3d4a28 29 depends_lib port:py25-distribute \30 path:${python.pkgd}/py2app/__init__.py:py25-py2app31 32 patchfiles objc-class.m.diff33 34 platform darwin 12 {35 patchfiles-append patch-Modules.diff36 }37 38 post-destroot {39 xinstall -m 644 -W ${worksrcpath} HISTORIC.txt Install.txt \40 License.txt NEWS.txt README.txt \41 ${destroot}${prefix}/share/doc/${name}42 copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${name}/html43 delete ${destroot}${prefix}/share/doc/${name}/examples44 copy ${worksrcpath}/Examples \45 ${destroot}${prefix}/share/doc/${name}/examples46 }47 48 # 2.3 only supports python >= 2.649 livecheck.type none -
deleted file dports/python/py25-pyobjc/files/objc-class.m.diff
diff --git a/dports/python/py25-pyobjc/files/objc-class.m.diff b/dports/python/py25-pyobjc/files/objc-class.m.diff deleted file mode 100644
+ - 1 --- Modules/objc/objc-class.m.orig 2009-06-23 15:35:44.000000000 -07002 +++ Modules/objc/objc-class.m 2009-06-29 12:41:41.000000000 -07003 @@ -1413,7 +1413,9 @@4 ((PyTypeObject *)result)->tp_as_buffer = &nsmutabledata_as_buffer;5 } else if (strcmp(className, "NSBlock") == 0) {6 ((PyTypeObject *)result)->tp_basicsize = sizeof(PyObjCBlockObject);7 +#if PY_MAJOR_VERSION > 2 || PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 58 PyType_Modified((PyTypeObject*)result);9 +#endif /* > 2.5 */10 PyType_Ready((PyTypeObject *)result);11 }12 -
deleted file dports/python/py25-pyobjc/files/patch-Modules.diff
diff --git a/dports/python/py25-pyobjc/files/patch-Modules.diff b/dports/python/py25-pyobjc/files/patch-Modules.diff deleted file mode 100644
+ - 1 diff -rupN Modules-original/objc/objc-runtime-compat.m Modules/objc/objc-runtime-compat.m2 --- Modules-original/objc/objc-runtime-compat.m 2009-05-25 03:56:04.000000000 +09003 +++ Modules/objc/objc-runtime-compat.m 2012-05-12 01:43:46.000000000 +09004 @@ -981,27 +981,4 @@ size_t PyObjC_methodlist_magic(Class cls5 6 #endif7 8 -#if defined(__x86_64__)9 10 -@implementation Protocol (NSOBjectCompat)11 -- self12 -{13 - return self;14 -}15 -@end16 -17 -@implementation Object (NSOBjectCompat)18 -- self19 -{20 - return self;21 -}22 -23 --doesNotRecognizeSelector:(SEL)sel24 -{25 - printf("--> %s\n", sel_getName(sel));26 - abort();27 -}28 -@end29 -30 -31 -#endif32 diff -rupN Modules-original/objc/objc_support.m Modules/objc/objc_support.m33 --- Modules-original/objc/objc_support.m 2010-06-30 05:28:09.000000000 +090034 +++ Modules/objc/objc_support.m 2012-05-12 01:46:11.000000000 +090035 @@ -150,68 +150,7 @@36 -(PyObject*)__pyobjc_PythonTransient__:(int*)cookie;37 @end /* PyObjCSupport */38 39 -@implementation Protocol (PyObjCSupport)40 41 --(PyObject*)__pyobjc_PythonObject__42 -{43 - PyObject *rval;44 -45 - rval = PyObjC_FindPythonProxy(self);46 - if (rval == NULL) {47 - rval = PyObjCFormalProtocol_ForProtocol(self);48 - }49 - return rval;50 -}51 -52 --(PyObject*)__pyobjc_PythonTransient__:(int*)cookie53 -{54 - PyObject *rval;55 -56 - *cookie = 0;57 - rval = PyObjC_FindPythonProxy(self);58 - if (rval == NULL) {59 - rval = PyObjCFormalProtocol_ForProtocol(self);60 - }61 - return rval;62 -}63 -64 -@end /* PyObjCSupport */65 -66 -@interface Object (PyObjCSupport)67 --(PyObject*)__pyobjc_PythonObject__;68 --(PyObject*)__pyobjc_PythonTransient__:(int*)cookie;69 -@end /* PyObjCSupport */70 -71 -@implementation Object (PyObjCSupport)72 -73 --(PyObject*)__pyobjc_PythonObject__74 -{75 - PyObject *rval;76 -77 - rval = PyObjC_FindPythonProxy(self);78 - if (rval == NULL) {79 - rval = (PyObject *)PyObjCObject_New(self,80 - PyObjCObject_kCLASSIC, NO);81 - PyObjC_RegisterPythonProxy(self, rval);82 - }83 - return rval;84 -}85 -86 --(PyObject*)__pyobjc_PythonTransient__:(int*)cookie87 -{88 - PyObject *rval;89 -90 - *cookie = 0;91 - rval = PyObjC_FindPythonProxy(self);92 - if (rval == NULL) {93 - rval = (PyObject *)PyObjCObject_New(self,94 - PyObjCObject_kCLASSIC, NO);95 - PyObjC_RegisterPythonProxy(self, rval);96 - }97 - return rval;98 -}99 -100 -@end /* PyObjCSupport */101 102 @interface NSString (PyObjCSupport)103 -(PyObject*)__pyobjc_PythonObject__;104 diff -rupN Modules-original/objc/selector.m Modules/objc/selector.m105 --- Modules-original/objc/selector.m 2010-06-24 17:53:29.000000000 +0900106 +++ Modules/objc/selector.m 2012-05-12 01:49:44.000000000 +0900107 @@ -798,9 +798,6 @@ PyObjCSelector_FindNative(PyObject* self108 }109 }110 111 - if (Object_class == nil) {112 - Object_class = [Object class];113 - }114 115 if (name[0] == '_' && name[1] == '_') {116 /* No known Objective-C class has methods whose name -
deleted file dports/python/py26-pyobjc/Portfile
diff --git a/dports/python/py26-pyobjc/Portfile b/dports/python/py26-pyobjc/Portfile deleted file mode 100644
+ - 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=42 # $Id$3 4 PortSystem 1.05 PortGroup python26 1.06 7 name py26-pyobjc8 version 2.39 categories python devel10 license MIT11 maintainers nomaintainer12 platforms darwin13 description bidirectional bridge between python and Objective C14 long_description The PyObjC project aims to provide a bridge between \15 the Python and Objective-C programming languages. The \16 bridge is intended to be fully bidirectional, allowing \17 the Python programmer to take full advantage of the \18 power provided by various Objective-C based toolkits \19 and the Objective-C programmer transparent access to \20 Python based functionality.21 22 homepage http://pyobjc.sourceforge.net/23 master_sites http://pypi.python.org/packages/source/p/pyobjc-core/24 distname pyobjc-core-${version}25 checksums md5 8206a8576d557e4670c543c30e044d2a \26 sha1 ef7c5489e86e5ff219e7ae15de84fe28bc1572f6 \27 rmd160 8c7b5ec7478035490bcb78193b7659ee6293c78528 29 depends_lib port:py26-distribute \30 path:${python.pkgd}/py2app/__init__.py:py26-py2app \31 port:libxml232 33 patchfiles setup.py.diff34 35 platform darwin 12 {36 patchfiles-append patch-Modules.diff37 }38 39 post-destroot {40 xinstall -m 644 -W ${worksrcpath} HISTORIC.txt Install.txt \41 License.txt NEWS.txt README.txt \42 ${destroot}${prefix}/share/doc/${name}43 copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${name}/html44 delete ${destroot}${prefix}/share/doc/${name}/examples45 copy ${worksrcpath}/Examples \46 ${destroot}${prefix}/share/doc/${name}/examples47 }48 49 if {${os.platform} == "darwin" && ${os.major} <= 8} {50 depends_lib51 pre-fetch {52 ui_error "${name} ${version} requires OS X 10.5 or greater."53 return -code error "incompatible OS X version"54 }55 }56 57 livecheck.type regex58 livecheck.url http://pypi.python.org/pypi/pyobjc-core/59 livecheck.regex {pyobjc-core ([0-9.]+)} -
deleted file dports/python/py26-pyobjc/files/patch-Modules.diff
diff --git a/dports/python/py26-pyobjc/files/patch-Modules.diff b/dports/python/py26-pyobjc/files/patch-Modules.diff deleted file mode 100644
+ - 1 diff -rupN Modules-original/objc/objc-runtime-compat.m Modules/objc/objc-runtime-compat.m2 --- Modules-original/objc/objc-runtime-compat.m 2009-05-25 03:56:04.000000000 +09003 +++ Modules/objc/objc-runtime-compat.m 2012-05-12 01:43:46.000000000 +09004 @@ -981,27 +981,4 @@ size_t PyObjC_methodlist_magic(Class cls5 6 #endif7 8 -#if defined(__x86_64__)9 10 -@implementation Protocol (NSOBjectCompat)11 -- self12 -{13 - return self;14 -}15 -@end16 -17 -@implementation Object (NSOBjectCompat)18 -- self19 -{20 - return self;21 -}22 -23 --doesNotRecognizeSelector:(SEL)sel24 -{25 - printf("--> %s\n", sel_getName(sel));26 - abort();27 -}28 -@end29 -30 -31 -#endif32 diff -rupN Modules-original/objc/objc_support.m Modules/objc/objc_support.m33 --- Modules-original/objc/objc_support.m 2010-06-30 05:28:09.000000000 +090034 +++ Modules/objc/objc_support.m 2012-05-12 01:46:11.000000000 +090035 @@ -150,68 +150,7 @@36 -(PyObject*)__pyobjc_PythonTransient__:(int*)cookie;37 @end /* PyObjCSupport */38 39 -@implementation Protocol (PyObjCSupport)40 41 --(PyObject*)__pyobjc_PythonObject__42 -{43 - PyObject *rval;44 -45 - rval = PyObjC_FindPythonProxy(self);46 - if (rval == NULL) {47 - rval = PyObjCFormalProtocol_ForProtocol(self);48 - }49 - return rval;50 -}51 -52 --(PyObject*)__pyobjc_PythonTransient__:(int*)cookie53 -{54 - PyObject *rval;55 -56 - *cookie = 0;57 - rval = PyObjC_FindPythonProxy(self);58 - if (rval == NULL) {59 - rval = PyObjCFormalProtocol_ForProtocol(self);60 - }61 - return rval;62 -}63 -64 -@end /* PyObjCSupport */65 -66 -@interface Object (PyObjCSupport)67 --(PyObject*)__pyobjc_PythonObject__;68 --(PyObject*)__pyobjc_PythonTransient__:(int*)cookie;69 -@end /* PyObjCSupport */70 -71 -@implementation Object (PyObjCSupport)72 -73 --(PyObject*)__pyobjc_PythonObject__74 -{75 - PyObject *rval;76 -77 - rval = PyObjC_FindPythonProxy(self);78 - if (rval == NULL) {79 - rval = (PyObject *)PyObjCObject_New(self,80 - PyObjCObject_kCLASSIC, NO);81 - PyObjC_RegisterPythonProxy(self, rval);82 - }83 - return rval;84 -}85 -86 --(PyObject*)__pyobjc_PythonTransient__:(int*)cookie87 -{88 - PyObject *rval;89 -90 - *cookie = 0;91 - rval = PyObjC_FindPythonProxy(self);92 - if (rval == NULL) {93 - rval = (PyObject *)PyObjCObject_New(self,94 - PyObjCObject_kCLASSIC, NO);95 - PyObjC_RegisterPythonProxy(self, rval);96 - }97 - return rval;98 -}99 -100 -@end /* PyObjCSupport */101 102 @interface NSString (PyObjCSupport)103 -(PyObject*)__pyobjc_PythonObject__;104 diff -rupN Modules-original/objc/selector.m Modules/objc/selector.m105 --- Modules-original/objc/selector.m 2010-06-24 17:53:29.000000000 +0900106 +++ Modules/objc/selector.m 2012-05-12 01:49:44.000000000 +0900107 @@ -798,9 +798,6 @@ PyObjCSelector_FindNative(PyObject* self108 }109 }110 111 - if (Object_class == nil) {112 - Object_class = [Object class];113 - }114 115 if (name[0] == '_' && name[1] == '_') {116 /* No known Objective-C class has methods whose name -
deleted file dports/python/py26-pyobjc/files/setup.py.diff
diff --git a/dports/python/py26-pyobjc/files/setup.py.diff b/dports/python/py26-pyobjc/files/setup.py.diff deleted file mode 100644
+ - 1 --- setup.py.orig 2010-07-25 00:38:17.000000000 +10002 +++ setup.py 2011-05-25 22:47:49.000000000 +10003 @@ -22,7 +22,7 @@4 # Set USE_SYSTEM_LIBXML to True to link to the system version5 # of libxml2 (defaults to False to avoid problems when building6 # on 10.6 and running on an earlier release)7 -USE_SYSTEM_LIBXML = False8 +USE_SYSTEM_LIBXML = True9 10 if sys.version_info < MIN_PYTHON:11 vstr = '.'.join(map(str, MIN_PYTHON)) -
deleted file dports/python/py27-pyobjc/Portfile
diff --git a/dports/python/py27-pyobjc/Portfile b/dports/python/py27-pyobjc/Portfile deleted file mode 100644
+ - 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=42 # $Id$3 4 PortSystem 1.05 PortGroup python27 1.06 7 name py27-pyobjc8 version 2.39 categories python devel10 license MIT11 maintainers nomaintainer12 platforms darwin13 description bidirectional bridge between python and Objective C14 long_description The PyObjC project aims to provide a bridge between \15 the Python and Objective-C programming languages. The \16 bridge is intended to be fully bidirectional, allowing \17 the Python programmer to take full advantage of the \18 power provided by various Objective-C based toolkits \19 and the Objective-C programmer transparent access to \20 Python based functionality.21 22 homepage http://pyobjc.sourceforge.net/23 master_sites http://pypi.python.org/packages/source/p/pyobjc-core/24 distname pyobjc-core-${version}25 26 checksums sha1 ef7c5489e86e5ff219e7ae15de84fe28bc1572f6 \27 rmd160 8c7b5ec7478035490bcb78193b7659ee6293c78528 29 depends_lib port:py27-distribute \30 path:${python.pkgd}/py2app/__init__.py:py27-py2app \31 port:libxml232 33 patchfiles setup.py.diff34 35 platform darwin 12 {36 patchfiles-append patch-Modules.diff37 }38 39 post-destroot {40 xinstall -m 644 -W ${worksrcpath} HISTORIC.txt Install.txt \41 License.txt NEWS.txt README.txt \42 ${destroot}${prefix}/share/doc/${name}43 copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${name}/html44 delete ${destroot}${prefix}/share/doc/${name}/examples45 copy ${worksrcpath}/Examples \46 ${destroot}${prefix}/share/doc/${name}/examples47 }48 49 if {${os.platform} == "darwin" && ${os.major} <= 8} {50 depends_lib51 pre-fetch {52 ui_error "${name} ${version} requires OS X 10.5 or greater."53 return -code error "incompatible OS X version"54 }55 }56 57 livecheck.type regex58 livecheck.url http://pypi.python.org/pypi/pyobjc-core/59 livecheck.regex {pyobjc-core ([0-9.]+)} -
deleted file dports/python/py27-pyobjc/files/patch-Modules.diff
diff --git a/dports/python/py27-pyobjc/files/patch-Modules.diff b/dports/python/py27-pyobjc/files/patch-Modules.diff deleted file mode 100644
+ - 1 diff -rupN Modules-original/objc/objc-runtime-compat.m Modules/objc/objc-runtime-compat.m2 --- Modules-original/objc/objc-runtime-compat.m 2009-05-25 03:56:04.000000000 +09003 +++ Modules/objc/objc-runtime-compat.m 2012-05-12 01:43:46.000000000 +09004 @@ -981,27 +981,4 @@ size_t PyObjC_methodlist_magic(Class cls5 6 #endif7 8 -#if defined(__x86_64__)9 10 -@implementation Protocol (NSOBjectCompat)11 -- self12 -{13 - return self;14 -}15 -@end16 -17 -@implementation Object (NSOBjectCompat)18 -- self19 -{20 - return self;21 -}22 -23 --doesNotRecognizeSelector:(SEL)sel24 -{25 - printf("--> %s\n", sel_getName(sel));26 - abort();27 -}28 -@end29 -30 -31 -#endif32 diff -rupN Modules-original/objc/objc_support.m Modules/objc/objc_support.m33 --- Modules-original/objc/objc_support.m 2010-06-30 05:28:09.000000000 +090034 +++ Modules/objc/objc_support.m 2012-05-12 01:46:11.000000000 +090035 @@ -150,68 +150,7 @@36 -(PyObject*)__pyobjc_PythonTransient__:(int*)cookie;37 @end /* PyObjCSupport */38 39 -@implementation Protocol (PyObjCSupport)40 41 --(PyObject*)__pyobjc_PythonObject__42 -{43 - PyObject *rval;44 -45 - rval = PyObjC_FindPythonProxy(self);46 - if (rval == NULL) {47 - rval = PyObjCFormalProtocol_ForProtocol(self);48 - }49 - return rval;50 -}51 -52 --(PyObject*)__pyobjc_PythonTransient__:(int*)cookie53 -{54 - PyObject *rval;55 -56 - *cookie = 0;57 - rval = PyObjC_FindPythonProxy(self);58 - if (rval == NULL) {59 - rval = PyObjCFormalProtocol_ForProtocol(self);60 - }61 - return rval;62 -}63 -64 -@end /* PyObjCSupport */65 -66 -@interface Object (PyObjCSupport)67 --(PyObject*)__pyobjc_PythonObject__;68 --(PyObject*)__pyobjc_PythonTransient__:(int*)cookie;69 -@end /* PyObjCSupport */70 -71 -@implementation Object (PyObjCSupport)72 -73 --(PyObject*)__pyobjc_PythonObject__74 -{75 - PyObject *rval;76 -77 - rval = PyObjC_FindPythonProxy(self);78 - if (rval == NULL) {79 - rval = (PyObject *)PyObjCObject_New(self,80 - PyObjCObject_kCLASSIC, NO);81 - PyObjC_RegisterPythonProxy(self, rval);82 - }83 - return rval;84 -}85 -86 --(PyObject*)__pyobjc_PythonTransient__:(int*)cookie87 -{88 - PyObject *rval;89 -90 - *cookie = 0;91 - rval = PyObjC_FindPythonProxy(self);92 - if (rval == NULL) {93 - rval = (PyObject *)PyObjCObject_New(self,94 - PyObjCObject_kCLASSIC, NO);95 - PyObjC_RegisterPythonProxy(self, rval);96 - }97 - return rval;98 -}99 -100 -@end /* PyObjCSupport */101 102 @interface NSString (PyObjCSupport)103 -(PyObject*)__pyobjc_PythonObject__;104 diff -rupN Modules-original/objc/selector.m Modules/objc/selector.m105 --- Modules-original/objc/selector.m 2010-06-24 17:53:29.000000000 +0900106 +++ Modules/objc/selector.m 2012-05-12 01:49:44.000000000 +0900107 @@ -798,9 +798,6 @@ PyObjCSelector_FindNative(PyObject* self108 }109 }110 111 - if (Object_class == nil) {112 - Object_class = [Object class];113 - }114 115 if (name[0] == '_' && name[1] == '_') {116 /* No known Objective-C class has methods whose name -
deleted file dports/python/py27-pyobjc/files/setup.py.diff
diff --git a/dports/python/py27-pyobjc/files/setup.py.diff b/dports/python/py27-pyobjc/files/setup.py.diff deleted file mode 100644
+ - 1 --- setup.py.orig 2010-07-25 00:38:17.000000000 +10002 +++ setup.py 2011-05-25 22:47:49.000000000 +10003 @@ -22,7 +22,7 @@4 # Set USE_SYSTEM_LIBXML to True to link to the system version5 # of libxml2 (defaults to False to avoid problems when building6 # on 10.6 and running on an earlier release)7 -USE_SYSTEM_LIBXML = False8 +USE_SYSTEM_LIBXML = True9 10 if sys.version_info < MIN_PYTHON:11 vstr = '.'.join(map(str, MIN_PYTHON))