aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/py-gevent-zeromq/Makefile13
-rw-r--r--devel/py-gevent-zeromq/files/patch-gevent_zeromq__core.pyx16
-rw-r--r--devel/py-gevent-zeromq/pkg-plist14
3 files changed, 25 insertions, 18 deletions
diff --git a/devel/py-gevent-zeromq/Makefile b/devel/py-gevent-zeromq/Makefile
index ae865593fc51..ac94665b00d3 100644
--- a/devel/py-gevent-zeromq/Makefile
+++ b/devel/py-gevent-zeromq/Makefile
@@ -2,6 +2,7 @@
PORTNAME= gevent-zeromq
PORTVERSION= 0.2.5
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -10,15 +11,19 @@ DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION}
MAINTAINER= olivierd@FreeBSD.org
COMMENT= Gevent compatibility layer for pyzmq
-BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/Cython/__init__.py:${PORTSDIR}/lang/cython
-RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gevent/__init__.py:${PORTSDIR}/devel/py-gevent \
- ${PYTHON_SITELIBDIR}/zmq/__init__.py:${PORTSDIR}/devel/py-pyzmq
+BUILD_DEPENDS= cython:${PORTSDIR}/lang/cython
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gevent>=1.0:${PORTSDIR}/devel/py-gevent \
+ ${PYTHON_PKGNAMEPREFIX}pyzmq>=14.0.1:${PORTSDIR}/devel/py-pyzmq
+
+IGNORE= Does not run properly with devel/py-pyzmq >= 13.0
+DEPRECATED= devel/py-pyzmq has gevent support built in
+EXPIRATION_DATE= 2014-01-06
USE_PYTHON= 2.7
USE_PYDISTUTILS= yes
+PYDISTUTILS_AUTOPLIST= yes
# Avoid warning
-NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's|install_requires|#install_requires|' \
${WRKSRC}/setup.py
diff --git a/devel/py-gevent-zeromq/files/patch-gevent_zeromq__core.pyx b/devel/py-gevent-zeromq/files/patch-gevent_zeromq__core.pyx
new file mode 100644
index 000000000000..62cc7d98131b
--- /dev/null
+++ b/devel/py-gevent-zeromq/files/patch-gevent_zeromq__core.pyx
@@ -0,0 +1,16 @@
+Adjust import of context.pxd and socket.pxd files after update of
+devel/py-pyzmg (>= 14.x).
+
+--- ./gevent_zeromq/core.pyx.orig 2012-07-13 21:43:35.000000000 +0000
++++ ./gevent_zeromq/core.pyx 2013-12-04 21:54:31.000000000 +0000
+@@ -10,8 +10,8 @@
+ from gevent.event import AsyncResult
+ from gevent.hub import get_hub
+
+-from zmq.core.context cimport Context as _Context
+-from zmq.core.socket cimport Socket as _Socket
++from zmq.backend.cython.context cimport Context as _Context
++from zmq.backend.cython.socket cimport Socket as _Socket
+
+
+ cdef class GreenSocket(_Socket):
diff --git a/devel/py-gevent-zeromq/pkg-plist b/devel/py-gevent-zeromq/pkg-plist
deleted file mode 100644
index 209d2b0d3e75..000000000000
--- a/devel/py-gevent-zeromq/pkg-plist
+++ /dev/null
@@ -1,14 +0,0 @@
-%%PYTHON_SITELIBDIR%%/gevent_zeromq/__init__.py
-%%PYTHON_SITELIBDIR%%/gevent_zeromq/__init__.pyc
-%%PYTHON_SITELIBDIR%%/gevent_zeromq/__init__.pyo
-%%PYTHON_SITELIBDIR%%/gevent_zeromq/core.py
-%%PYTHON_SITELIBDIR%%/gevent_zeromq/core.pyc
-%%PYTHON_SITELIBDIR%%/gevent_zeromq/core.pyo
-%%PYTHON_SITELIBDIR%%/gevent_zeromq/core.so
-%%PYTHON_SITELIBDIR%%/gevent_zeromq/poll.py
-%%PYTHON_SITELIBDIR%%/gevent_zeromq/poll.pyc
-%%PYTHON_SITELIBDIR%%/gevent_zeromq/poll.pyo
-%%PYTHON_SITELIBDIR%%/gevent_zeromq/tests.py
-%%PYTHON_SITELIBDIR%%/gevent_zeromq/tests.pyc
-%%PYTHON_SITELIBDIR%%/gevent_zeromq/tests.pyo
-@dirrm %%PYTHON_SITELIBDIR%%/gevent_zeromq