summaryrefslogtreecommitdiff
path: root/dev-python/gevent
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/gevent
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/gevent')
-rw-r--r--dev-python/gevent/Manifest7
-rw-r--r--dev-python/gevent/gevent-1.0.1.ebuild65
-rw-r--r--dev-python/gevent/gevent-1.2.1.ebuild73
-rw-r--r--dev-python/gevent/metadata.xml12
4 files changed, 157 insertions, 0 deletions
diff --git a/dev-python/gevent/Manifest b/dev-python/gevent/Manifest
new file mode 100644
index 000000000000..5ec9110579f0
--- /dev/null
+++ b/dev-python/gevent/Manifest
@@ -0,0 +1,7 @@
+DIST gevent-1.0.1.tar.gz 1455636 SHA256 4627e215d058f71d95e6b26d9e7be4c263788a4756bd2858a93775f6c072df43 SHA512 4790e06b49536ad15856cf551c7ad4d717be2ceda8bc7d39fc35a0132d21f302e033f3294da426be4f6c0476554163776e5ffd82d89962503a720c453ff96461 WHIRLPOOL a1d552f89e9d3db1720fd0db1dbfb6ffc7ed4db87ee5816e5c44843f3c5bba9afbfc21ab2cfcf5bfc84ea70fea3caf6f8fbdbc2807c868b27105bce7e58d6290
+DIST gevent-1.2.1.tar.gz 2808619 SHA256 3de300d0e32c31311e426e4d5d73b36777ed99c2bac3f8fbad939eeb2c29fa7c SHA512 22740e8e114869c1f53bcfd6796226927a3a726d4fd49d104b947f0c97546c7490eabea98b4492db794e21d26d0aee85f1e40b01d386a47063b042a719e61726 WHIRLPOOL db0055610130df7d5c4e914364a2bacedb2f3567db0bff730ebdc285cdb45c5409da5bea665d6776c92299eaa0b189a8815b57eafd5ce44e853ccfa20824d7b0
+EBUILD gevent-1.0.1.ebuild 1458 SHA256 9f71f1f80a6ae4028d80effbc906c3224387b1ef5806f2e3e990edf6c26f95c4 SHA512 02942b4376c8ec3a387005a4c5b20cf3611b25710ffa3c74f8cb0e929a72da51bf5a721ab091cb2b4ad6370d4b2405ce0750905c8d325042e4111dbd18d4f0ea WHIRLPOOL f982dc3769487d68ad001149bf0f3318176376880508a263cd52c4fa9d6e379326cfd993bb21581627c874d5df7b3e168e557bda9d0cabd43acd8ebaadb8eae0
+EBUILD gevent-1.2.1.ebuild 1857 SHA256 55eb14e2d5e88a10a506e3c7844fc29fc5a717b274513b94c1f7892343c731bf SHA512 a62a64dc4ffae21c853f90660d854cb013363a656c4e6b9348e7a45ef38481e2e30b3fd38fef74990f377c3411b51f2a7f90fcf902da220cf46e06e9c1c5afa6 WHIRLPOOL 38dcf22015549d3998a6585b5549a0e6aa3307bf01fec0069c3b2e4b1e1454b7481e2122e62a511b398cf02d7a616f7d4809f3ea32a634a6c58eb7cef1f05a5e
+MISC ChangeLog 4893 SHA256 d86a05c310fbd61df452b3fbaa5cd6a632a7f9d0c8168dc80897736119b68c7f SHA512 e4c76ca7d8b28b71d25529b0ca0df7be947700839f71a3e88be365d8bd147fa334ada0e188f8f9886526164f0e9cba1fe907aa057865e0e847f25d3987d09a5e WHIRLPOOL 2e349ec80a0ba150dc64af91625c934647a05614c76f1e600aecc0a47a45f624315cd85d1bf91573c574b64791d326688a5b1d20760ca8067e91abe8f780fdf2
+MISC ChangeLog-2015 4157 SHA256 50fa0c3ba77ea3bb4b511d7ca039a23dfe73a728a8bd4d5849e8e5cdb2d1733e SHA512 32469e0ce7d6d183dd9862eaa89aad109d9e64e5ba46042d758020b7d91c806aa4cccefcc1e60b4b5030e72d07c0491a3bbce141dfbfc64f174c22a09cdb269a WHIRLPOOL 1086b4859a88056d8548a7fb1ff158e4d8e303bcd411e9d4b626589b2220cbaac8fb361fd9815dbac20bb768e250c4f32d610ff4a0f45e91c3df0d3984a42136
+MISC metadata.xml 374 SHA256 c672648793ab05ee22aa134d2da3e74c7937a9ead321dd854f09ba877302870b SHA512 443f847333d35cd55f9c33624664569ecc8c2d0b7c74a358a716e0e133072edb0f29abfc36d6fb446db6890ae1319ad9d719a6e65e2bb35f9c9e9259379241fc WHIRLPOOL b5854e50ce75d59af88f8fee22b775dfc2a31225dd837c43b6667309ee1f79ef6a484edd848883dd507b7c475f2bdd9abb80533aecff2603c56a0ad4679d370d
diff --git a/dev-python/gevent/gevent-1.0.1.ebuild b/dev-python/gevent/gevent-1.0.1.ebuild
new file mode 100644
index 000000000000..6bda4c53e109
--- /dev/null
+++ b/dev-python/gevent/gevent-1.0.1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="ssl,threads(+)"
+
+inherit distutils-r1 flag-o-matic
+
+MY_PV=${PV/_/}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Python networking library that uses greenlet to provide synchronous API"
+HOMEPAGE="http://gevent.org/ https://pypi.python.org/pypi/gevent/"
+SRC_URI="https://github.com/surfly/${PN}/releases/download/${MY_PV}/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 arm ppc ppc64 x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples"
+
+RDEPEND="dev-libs/libev
+ net-dns/c-ares
+ >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
+
+# Tests take long and fail terribly a few times.
+# It also seems that they require network access.
+RESTRICT="test"
+
+S=${WORKDIR}/${MY_P}
+
+python_prepare_all() {
+ rm -r {libev,c-ares} || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_configure_all() {
+ append-flags -fno-strict-aliasing
+}
+
+python_compile_all() {
+ use doc && emake -C doc html
+}
+
+python_test() {
+ cd greentest || die
+ "${PYTHON}" testrunner.py || die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( doc/_build/html/. )
+
+ distutils-r1_python_install_all
+
+ dodoc changelog.rst
+
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
diff --git a/dev-python/gevent/gevent-1.2.1.ebuild b/dev-python/gevent/gevent-1.2.1.ebuild
new file mode 100644
index 000000000000..8d9af07ca111
--- /dev/null
+++ b/dev-python/gevent/gevent-1.2.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# http://www.gevent.org/whatsnew_1_1.html#broader-platform-support
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
+PYTHON_REQ_USE="ssl(+),threads(+)"
+
+inherit distutils-r1 flag-o-matic
+
+MY_PV=${PV/_beta/b}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Coroutine-based network library"
+HOMEPAGE="http://gevent.org/ https://pypi.python.org/pypi/gevent/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples"
+
+RDEPEND="
+ >=dev-libs/libev-4.23
+ >=net-dns/c-ares-1.12
+ >=dev-python/greenlet-0.4.10
+ virtual/python-greenlet[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
+
+# Tests take long and fail terribly a few times.
+# It also seems that they require network access.
+RESTRICT="test"
+
+S=${WORKDIR}/${MY_P}
+
+python_prepare_all() {
+ export LIBEV_EMBED="false"
+ export CARES_EMBED="false"
+ export EMBED="false"
+
+ distutils-r1_python_prepare_all
+}
+
+python_configure_all() {
+ append-flags -fno-strict-aliasing
+}
+
+python_compile_all() {
+ use doc && emake -C doc html
+}
+
+python_test() {
+ cd greentest || die
+
+ GEVENT_RESOLVER=thread \
+ "${PYTHON}" testrunner.py --config ../known_failures.py || die
+ GEVENT_RESOLVER=ares GEVENTARES_SERVERS=8.8.8.8 \
+ "${PYTHON}" testrunner.py --config ../known_failures.py \
+ --ignore tests_that_dont_use_resolver.txt || die
+ GEVENT_FILE=thread \
+ "${PYTHON}" testrunner.py --config ../known_failures.py $(grep -l subprocess test_*.py) || die
+}
+
+python_install_all() {
+ local DOCS=( AUTHORS README.rst )
+ use doc && local HTML_DOCS=( doc/_build/html/. )
+ use examples && dodoc -r examples
+
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/gevent/metadata.xml b/dev-python/gevent/metadata.xml
new file mode 100644
index 000000000000..d0c159e3da9c
--- /dev/null
+++ b/dev-python/gevent/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">surfly/gevent</remote-id>
+ <remote-id type="pypi">gevent</remote-id>
+ </upstream>
+</pkgmetadata>