From e30e2260b1ac1a18828961973098b35d7a172966 Mon Sep 17 00:00:00 2001 From: landry Date: Tue, 17 Jul 2012 19:23:31 +0000 Subject: [PATCH] Import py-gevent 0.13.7 gevent is a Python networking library that uses greenlet to provide synchronous API on top of libevent event loop. * Fast event loop based on libevent. * Lightweight execution units based on greenlet. * Familiar API that re-uses concepts from the Python standard library. * Cooperative sockets with ssl support. * DNS queries performed through libevent-dns. * Ability to use standard library and 3rd party modules written for standard blocking sockets * Fast WSGI server based on libevent-http. Requirement of upcoming firefox sync port. ok rpointel@ --- devel/py-gevent/Makefile | 29 +++++++++++++++++++ devel/py-gevent/distinfo | 5 ++++ devel/py-gevent/pkg/DESCR | 11 +++++++ devel/py-gevent/pkg/PLIST | 61 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 106 insertions(+) create mode 100644 devel/py-gevent/Makefile create mode 100644 devel/py-gevent/distinfo create mode 100644 devel/py-gevent/pkg/DESCR create mode 100644 devel/py-gevent/pkg/PLIST diff --git a/devel/py-gevent/Makefile b/devel/py-gevent/Makefile new file mode 100644 index 00000000000..1d1fd0a737b --- /dev/null +++ b/devel/py-gevent/Makefile @@ -0,0 +1,29 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2012/07/17 19:23:31 landry Exp $ + +COMMENT = network library for easy and scalable concurrency + +MODPY_EGG_VERSION = 0.13.7 +DISTNAME = gevent-${MODPY_EGG_VERSION} +PKGNAME = py-${DISTNAME} + +CATEGORIES = devel +HOMEPAGE = http://www.gevent.org/ + +# MPL +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM =Yes +PERMIT_DISTFILES_FTP = Yes + +MASTER_SITES = ${MASTER_SITE_PYPI:=g/gevent/} + +MODULES = lang/python + +MODPY_SETUPTOOLS = Yes +MODPY_DISTUTILS_BUILD= build --build-base=${WRKSRC} --libevent ${LOCALBASE} + +LIB_DEPENDS = devel/libeventextra +WANTLIB = ${MODPY_WANTLIB} event +RUN_DEPENDS = devel/py-greenlet + +.include diff --git a/devel/py-gevent/distinfo b/devel/py-gevent/distinfo new file mode 100644 index 00000000000..38e937055db --- /dev/null +++ b/devel/py-gevent/distinfo @@ -0,0 +1,5 @@ +MD5 (gevent-0.13.7.tar.gz) = x0AEcwwlQyYLdRsKp4KYfA== +RMD160 (gevent-0.13.7.tar.gz) = iEF4Mobz/JZSteqxZtiA4mfy6Io= +SHA1 (gevent-0.13.7.tar.gz) = K5xjuE4ho24kSnyCW5vbqpi37GY= +SHA256 (gevent-0.13.7.tar.gz) = B1TxQdKIn6hhkY63VIK5VydjvWYUebv8c6jCUPTqtsU= +SIZE (gevent-0.13.7.tar.gz) = 288284 diff --git a/devel/py-gevent/pkg/DESCR b/devel/py-gevent/pkg/DESCR new file mode 100644 index 00000000000..17b6eef6468 --- /dev/null +++ b/devel/py-gevent/pkg/DESCR @@ -0,0 +1,11 @@ +gevent is a Python networking library that uses greenlet to provide +synchronous API on top of libevent event loop. + +* Fast event loop based on libevent. +* Lightweight execution units based on greenlet. +* Familiar API that re-uses concepts from the Python standard library. +* Cooperative sockets with ssl support. +* DNS queries performed through libevent-dns. +* Ability to use standard library and 3rd party modules written for + standard blocking sockets +* Fast WSGI server based on libevent-http. diff --git a/devel/py-gevent/pkg/PLIST b/devel/py-gevent/pkg/PLIST new file mode 100644 index 00000000000..d3ed900b9eb --- /dev/null +++ b/devel/py-gevent/pkg/PLIST @@ -0,0 +1,61 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2012/07/17 19:23:31 landry Exp $ +lib/python${MODPY_VERSION}/site-packages/gevent/ +lib/python${MODPY_VERSION}/site-packages/gevent-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ +lib/python${MODPY_VERSION}/site-packages/gevent-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO +lib/python${MODPY_VERSION}/site-packages/gevent-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt +lib/python${MODPY_VERSION}/site-packages/gevent-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt +lib/python${MODPY_VERSION}/site-packages/gevent-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt +lib/python${MODPY_VERSION}/site-packages/gevent-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt +lib/python${MODPY_VERSION}/site-packages/gevent/__init__.py +lib/python${MODPY_VERSION}/site-packages/gevent/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/backdoor.py +lib/python${MODPY_VERSION}/site-packages/gevent/backdoor.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/baseserver.py +lib/python${MODPY_VERSION}/site-packages/gevent/baseserver.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/core.so +lib/python${MODPY_VERSION}/site-packages/gevent/coros.py +lib/python${MODPY_VERSION}/site-packages/gevent/coros.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/dns.py +lib/python${MODPY_VERSION}/site-packages/gevent/dns.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/event.py +lib/python${MODPY_VERSION}/site-packages/gevent/event.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/greenlet.py +lib/python${MODPY_VERSION}/site-packages/gevent/greenlet.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/http.py +lib/python${MODPY_VERSION}/site-packages/gevent/http.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/httplib.py +lib/python${MODPY_VERSION}/site-packages/gevent/httplib.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/hub.py +lib/python${MODPY_VERSION}/site-packages/gevent/hub.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/local.py +lib/python${MODPY_VERSION}/site-packages/gevent/local.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/monkey.py +lib/python${MODPY_VERSION}/site-packages/gevent/monkey.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/pool.py +lib/python${MODPY_VERSION}/site-packages/gevent/pool.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/pywsgi.py +lib/python${MODPY_VERSION}/site-packages/gevent/pywsgi.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/queue.py +lib/python${MODPY_VERSION}/site-packages/gevent/queue.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/rawgreenlet.py +lib/python${MODPY_VERSION}/site-packages/gevent/rawgreenlet.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/select.py +lib/python${MODPY_VERSION}/site-packages/gevent/select.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/server.py +lib/python${MODPY_VERSION}/site-packages/gevent/server.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/socket.py +lib/python${MODPY_VERSION}/site-packages/gevent/socket.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/ssl.py +lib/python${MODPY_VERSION}/site-packages/gevent/ssl.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/sslold.py +lib/python${MODPY_VERSION}/site-packages/gevent/sslold.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/thread.py +lib/python${MODPY_VERSION}/site-packages/gevent/thread.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/timeout.py +lib/python${MODPY_VERSION}/site-packages/gevent/timeout.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/util.py +lib/python${MODPY_VERSION}/site-packages/gevent/util.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/win32util.py +lib/python${MODPY_VERSION}/site-packages/gevent/win32util.pyc +lib/python${MODPY_VERSION}/site-packages/gevent/wsgi.py +lib/python${MODPY_VERSION}/site-packages/gevent/wsgi.pyc