2022-01-04 21:53:26 +01:00
|
|
|
# $NetBSD: Makefile,v 1.18 2022/01/04 20:54:27 wiz Exp $
|
2014-06-09 00:36:22 +02:00
|
|
|
|
2021-12-12 21:06:23 +01:00
|
|
|
DISTNAME= gevent-21.12.0
|
2014-06-09 00:36:22 +02:00
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
2022-01-04 21:53:26 +01:00
|
|
|
PKGREVISION= 1
|
2014-06-09 00:36:22 +02:00
|
|
|
CATEGORIES= net python
|
2015-11-08 10:20:06 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=g/gevent/}
|
2014-06-09 00:36:22 +02:00
|
|
|
|
|
|
|
MAINTAINER= kamel.derouiche@gmail.com
|
|
|
|
HOMEPAGE= http://www.gevent.org/
|
|
|
|
COMMENT= Python-gevent a coroutine-based Python networking library
|
|
|
|
LICENSE= mit
|
|
|
|
|
2018-07-09 09:51:16 +02:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-cffi>=1.11.5:../../devel/py-cffi
|
2018-08-19 11:44:28 +02:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-greenlet>=0.4.14:../../devel/py-greenlet
|
2021-08-24 12:42:50 +02:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-ZopeEvent-[0-9]*:../../devel/py-ZopeEvent
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-ZopeInterface-[0-9]*:../../devel/py-ZopeInterface
|
2018-08-19 11:44:28 +02:00
|
|
|
|
2021-08-24 12:42:50 +02:00
|
|
|
MAKE_ENV+= CARES_EMBED=0
|
|
|
|
MAKE_ENV+= LIBEV_EMBED=0
|
|
|
|
MAKE_ENV+= LIBUV_EMBED=0
|
2014-06-09 00:36:22 +02:00
|
|
|
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
|
2017-09-22 22:18:54 +02:00
|
|
|
# Explicitly disable inotify on SunOS, assumes Linux statfs.
|
|
|
|
MAKE_ENV.SunOS+= ac_cv_header_sys_inotify_h=no
|
|
|
|
|
2018-10-22 17:33:44 +02:00
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
|
2021-09-28 14:58:27 +02:00
|
|
|
.if !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-[6-9]*) || !empty(CC_VERSION:Mgcc-1[0-9].*)
|
2018-10-22 17:33:44 +02:00
|
|
|
BUILDLINK_TRANSFORM.SunOS+= opt:-D_XOPEN_SOURCE=500:-D_XOPEN_SOURCE=600
|
|
|
|
.endif
|
|
|
|
|
2014-06-09 00:36:22 +02:00
|
|
|
.include "../../devel/py-cython/buildlink3.mk"
|
1.2.2:
- Testing on Python 3.5 now uses Python 3.5.3 due to SSL changes. See
:issue:`943`.
- Linux CI has been updated from Ubuntu 12.04 to Ubuntu 14.04 since
the former has reached EOL.
- Linux CI now tests on PyPy2 5.7.1, updated from PyPy2 5.6.0.
- Linux CI now tests on PyPy3 3.5-5.7.1-beta, updated from PyPy3
3.3-5.5-alpha.
- Python 2 sockets are compatible with the ``SOCK_CLOEXEC`` flag found
on Linux. They no longer pass the socket type or protocol to
``getaddrinfo`` when ``connect`` is called. Reported in :issue:`944`
by Bernie Hackett.
- Replace ``optparse`` module with ``argparse``. See :issue:`947`.
- Update to version 1.3.1 of ``tblib`` to fix :issue:`954`,
reported by ml31415.
- Fix the name of the ``type`` parameter to
:func:`gevent.socket.getaddrinfo` to be correct on Python 3. This
would cause callers using keyword arguments to raise a :exc:`TypeError`.
Reported in :issue:`960` by js6626069. Likewise, correct the
argument names for ``fromfd`` and ``socketpair`` on Python 2,
although they cannot be called with keyword arguments under CPython.
.. note:: The ``gethost*`` functions take different argument names
under CPython and PyPy. gevent follows the CPython
convention, although these functions cannot be called with
keyword arguments on CPython.
- The previously-singleton exception objects ``FileObjectClosed`` and
``cancel_wait_ex`` were converted to classes. On Python 3, an
exception object is stateful, including references to its context
and possibly traceback, which could lead to objects remaining alive
longer than intended.
- Make sure that ``python -m gevent.monkey <script>`` runs code in the
global scope, not the scope of the ``main`` function.
2017-07-14 12:19:36 +02:00
|
|
|
.include "../../devel/libev/buildlink3.mk"
|
2021-08-24 12:42:50 +02:00
|
|
|
.include "../../devel/libuv/buildlink3.mk"
|
2014-06-09 00:36:22 +02:00
|
|
|
.include "../../lang/python/egg.mk"
|
1.2.2:
- Testing on Python 3.5 now uses Python 3.5.3 due to SSL changes. See
:issue:`943`.
- Linux CI has been updated from Ubuntu 12.04 to Ubuntu 14.04 since
the former has reached EOL.
- Linux CI now tests on PyPy2 5.7.1, updated from PyPy2 5.6.0.
- Linux CI now tests on PyPy3 3.5-5.7.1-beta, updated from PyPy3
3.3-5.5-alpha.
- Python 2 sockets are compatible with the ``SOCK_CLOEXEC`` flag found
on Linux. They no longer pass the socket type or protocol to
``getaddrinfo`` when ``connect`` is called. Reported in :issue:`944`
by Bernie Hackett.
- Replace ``optparse`` module with ``argparse``. See :issue:`947`.
- Update to version 1.3.1 of ``tblib`` to fix :issue:`954`,
reported by ml31415.
- Fix the name of the ``type`` parameter to
:func:`gevent.socket.getaddrinfo` to be correct on Python 3. This
would cause callers using keyword arguments to raise a :exc:`TypeError`.
Reported in :issue:`960` by js6626069. Likewise, correct the
argument names for ``fromfd`` and ``socketpair`` on Python 2,
although they cannot be called with keyword arguments under CPython.
.. note:: The ``gethost*`` functions take different argument names
under CPython and PyPy. gevent follows the CPython
convention, although these functions cannot be called with
keyword arguments on CPython.
- The previously-singleton exception objects ``FileObjectClosed`` and
``cancel_wait_ex`` were converted to classes. On Python 3, an
exception object is stateful, including references to its context
and possibly traceback, which could lead to objects remaining alive
longer than intended.
- Make sure that ``python -m gevent.monkey <script>`` runs code in the
global scope, not the scope of the ``main`` function.
2017-07-14 12:19:36 +02:00
|
|
|
.include "../../net/libcares/buildlink3.mk"
|
2014-06-09 00:36:22 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|