Index: head/devel/py-gevent/files/patch-gevent-_util_py2.py =================================================================== --- head/devel/py-gevent/files/patch-gevent-_util_py2.py (revision 427764) +++ head/devel/py-gevent/files/patch-gevent-_util_py2.py (nonexistent) @@ -1,8 +0,0 @@ ---- gevent/_util_py2.py.orig 2015-12-11 14:42:42 UTC -+++ gevent/_util_py2.py -@@ -5,4 +5,4 @@ __all__ = ['reraise'] - - - def reraise(type, value, tb): -- raise type, value, tb -+ raise type(value).with_traceback(tb) Property changes on: head/devel/py-gevent/files/patch-gevent-_util_py2.py ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/devel/py-gevent/Makefile =================================================================== --- head/devel/py-gevent/Makefile (revision 427764) +++ head/devel/py-gevent/Makefile (revision 427765) @@ -1,32 +1,41 @@ # Created by: Peter Schuller # $FreeBSD$ PORTNAME= gevent PORTVERSION= 1.1.2 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Python co-routine networking library based on greenlet LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libcares.so:dns/c-ares \ libev.so:devel/libev RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}greenlet>=0.4.9:devel/py-greenlet TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}greenlet>=0.4.9:devel/py-greenlet \ ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3 DO_MAKE_TEST= ${SETENV} PYTHONPATH=../ ${PYTHON_CMD} MAKE_ENV= CARES_EMBED=0 LIBEV_EMBED=0 TEST_TARGET= testrunner.py TEST_WRKSRC= ${WRKSRC}/greentest USE_PYTHON= autoplist concurrent distutils USES= localbase python +.include + +.if ${PYTHON_REL} >= 3000 +post-patch: + @${RM} ${WRKSRC}/gevent/_util_py2.py + @${REINPLACE_CMD} -e '/gevent._util_py2/d' ${WRKSRC}/gevent/hub.py +.endif + post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/gevent/*.so -.include +.include