svn commit: r427765 - in head/devel/py-gevent: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Dec 4 10:44:01 UTC 2016
Author: sunpoet
Date: Sun Dec 4 10:43:59 2016
New Revision: 427765
URL: https://svnweb.freebsd.org/changeset/ports/427765
Log:
- Fix _util_py2 build failure with Python 3
- Bump PORTREVISION for package change
Deleted:
head/devel/py-gevent/files/
Modified:
head/devel/py-gevent/Makefile
Modified: head/devel/py-gevent/Makefile
==============================================================================
--- head/devel/py-gevent/Makefile Sun Dec 4 10:30:47 2016 (r427764)
+++ head/devel/py-gevent/Makefile Sun Dec 4 10:43:59 2016 (r427765)
@@ -3,6 +3,7 @@
PORTNAME= gevent
PORTVERSION= 1.1.2
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -26,7 +27,15 @@ TEST_WRKSRC= ${WRKSRC}/greentest
USE_PYTHON= autoplist concurrent distutils
USES= localbase python
+.include <bsd.port.pre.mk>
+
+.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 <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-head
mailing list