1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{3_5,3_6} )
9 DESCRIPTION="Ultra-fast implementation of asyncio event loop on top of libuv"
10 HOMEPAGE="https://github.com/magicstack/uvloop"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
12 KEYWORDS="~amd64 ~x86"
16 IUSE="doc examples test"
18 RDEPEND=">=dev-libs/libuv-1.11.0:="
21 dev-python/setuptools[${PYTHON_USEDEP}]
23 >=dev-python/alabaster-0.6.2[${PYTHON_USEDEP}]
24 dev-python/sphinx[${PYTHON_USEDEP}]
28 python_prepare_all() {
29 cat <<EOF >> setup.cfg
34 distutils-r1_python_prepare_all
37 python_compile_all() {
38 use doc && esetup.py build_ext --inplace build_sphinx
45 python_install_all() {
46 use examples && dodoc -r examples
47 use doc && local HTML_DOCS=( "${BUILD_DIR}/sphinx/html/." )
48 distutils-r1_python_install_all