Date: Sun, 4 Dec 2016 10:43:59 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r427765 - in head/devel/py-gevent: . files Message-ID: <201612041043.uB4AhxSR049121@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612041043.uB4AhxSR049121>