freebsd-ports/devel/py-gevent/Makefile
Dmitry Marakasov 77d68471ad */*: rename CHEESESHOP to PYPI in MASTER_SITES
PR:			267994
Differential revision:	D37518
Approved by:		bapt
2023-01-11 18:58:34 +03:00

42 lines
1.3 KiB
Makefile

PORTNAME= gevent
PORTVERSION= 22.10.2
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Python co-routine networking library based on greenlet
WWW= https://www.gevent.org/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= c-ares>=1.15.0:dns/c-ares \
libev>=4.31:devel/libev \
libuv>=1.34.0:devel/libuv \
${RUN_DEPENDS}
LIB_DEPENDS= libcares.so:dns/c-ares \
libev.so:devel/libev \
libuv.so:devel/libuv
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}greenlet>=2.0.0:devel/py-greenlet@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}zope.event>=0:devel/py-zope.event@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}zope.interface>=0:devel/py-zope.interface@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR}
USES= compiler:c11 localbase python:3.6+
USE_PYTHON= autoplist concurrent distutils
MAKE_ENV= GEVENTSETUP_EMBED_CARES=0 GEVENTSETUP_EMBED_LIBEV=0 GEVENTSETUP_EMBED_LIBUV=0
post-patch:
@${RM} ${WRKSRC}/src/gevent/_util_py2.py
# Clean up bundled libraries
@${RM} -r ${WRKSRC}/deps/
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
do-test:
cd ${WRKSRC} && ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} ${PYTHON_CMD} -m gevent.tests --config known_failures.py
.include <bsd.port.mk>