1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
9 inherit distutils-r1 flag-o-matic
14 DESCRIPTION="Python networking library that uses greenlet to provide synchronous API"
15 HOMEPAGE="http://gevent.org/ https://pypi.python.org/pypi/gevent/"
16 SRC_URI="https://github.com/surfly/${PN}/releases/download/${MY_PV}/${MY_P}.tar.gz"
20 KEYWORDS="amd64 arm ~ppc ppc64 x86 ~amd64-linux ~x86-linux"
23 RDEPEND="dev-libs/libev
25 >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}]"
27 dev-python/setuptools[${PYTHON_USEDEP}]
28 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
30 # Tests take long and fail terribly a few times.
31 # It also seems that they require network access.
36 python_prepare_all() {
37 rm -r {libev,c-ares} || die
39 distutils-r1_python_prepare_all
42 python_configure_all() {
43 append-flags -fno-strict-aliasing
46 python_compile_all() {
47 use doc && emake -C doc html
52 "${PYTHON}" testrunner.py || die "Tests fail with ${EPYTHON}"
55 python_install_all() {
56 use doc && local HTML_DOCS=( doc/_build/html/. )
58 distutils-r1_python_install_all
64 docompress -x /usr/share/doc/${PF}/examples