zmq-py stable port information

Info2: <<
Package: zmq-py%type_pkg[python]
Version: 2.1.9
Revision: 1
Type: python(2.6 2.7 3.2)
Description: ZeroMQ networking (0MQ)
License: LGPL
HomePage: http://pypi.python.org/pypi/pyzmq/
Maintainer: Kurt Schwehr

Depends: python%type_pkg[python], libzmq2-shlibs
BuildDepends: python%type_pkg[python], libzmq2

Source: http://pypi.python.org/packages/source/p/pyzmq/pyzmq-%v.tar.gz
Source-MD5: 44efd9e7dd041b9f779e3026d189f870
PatchFile: %{ni}.patch
PatchFile-MD5: b1f92c6e346140d4df3cc07db80e20cc

CompileScript: <<
python%type_raw[python] setup.py configure --zmq=%p
<<
InstallScript: python%type_raw[python] setup.py install --root=%d
DocFiles: README.rst COPYING.LESSER
# FIX: build the docs with sphinx

DescDetail: <<
This package contains Python bindings for 0ZQ. 0MQ is a lightweight
and fast messaging implementation.
<<
DescPort: <<
dmacks disabled autodetection (and use if detected) of
MacPorts -I/-L paths

dmacks removed hardcoding of compiler flags specific to intel
CPU based on detection of wordsize that also matches powerpc
(not needed at all on fink--compiler wrappers have appropriate
arch flags)
<<

# Info2
<<

zmq-py stable port .patch

diff -Nurd -x'*~' pyzmq-2.1.9.orig/buildutils.py pyzmq-2.1.9/buildutils.py
--- pyzmq-2.1.9.orig/buildutils.py 2011-06-30 00:30:05.000000000 -0400
+++ pyzmq-2.1.9/buildutils.py 2012-02-11 11:23:17.000000000 -0500
@@ -113,8 +113,7 @@
if sys.platform == 'darwin':
# use appropriate arch for comiler
if platform.architecture()[0]=='32bit':
- cpreargs = ['-arch','i386']
- lpreargs = ['-arch', 'i386', '-undefined', 'dynamic_lookup']
+ lpreargs = ['-undefined', 'dynamic_lookup']
else:
# allow for missing UB arch, since it will still work:
lpreargs = ['-undefined', 'dynamic_lookup']
diff -Nurd -x'*~' pyzmq-2.1.9.orig/setup.py pyzmq-2.1.9/setup.py
--- pyzmq-2.1.9.orig/setup.py 2011-08-22 18:19:18.000000000 -0400
+++ pyzmq-2.1.9/setup.py 2012-02-11 11:24:00.000000000 -0500
@@ -126,10 +126,6 @@
if ZMQ is not None:
COMPILER_SETTINGS['include_dirs'] += [pjoin(ZMQ, 'include')]
COMPILER_SETTINGS['library_dirs'] += [pjoin(ZMQ, 'lib')]
- elif sys.platform == 'darwin' and os.path.isdir('/opt/local/lib'):
- # allow macports default
- COMPILER_SETTINGS['include_dirs'] += ['/opt/local/include']
- COMPILER_SETTINGS['library_dirs'] += ['/opt/local/lib']

if doing_bdist:
# bdist should link against bundled libzmq

zmq-py _unstable_ port .patch