# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ # TODO: also the test USE flag for running tests/ # h2's pypi tarballs don't include docs (probably because it's not in # MANIFEST.in), so I have to use the github tarball for now EAPI=5 PYTHON_COMPAT=(python2_7 python3_3 python3_4 python3_5) inherit distutils-r1 DESCRIPTION="An http/2 implementation written in Python" HOMEPAGE="http://python-hyper.org/h2/en/stable/" SRC_URI="https://github.com/python-hyper/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" IUSE="doc" RDEPEND="virtual/python-enum34 >=dev-python/hpack-2.1.1 >=dev-python/hyperframe-4.0.1" DEPEND="${RDEPEND} doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" DOCS=(README.rst CONTRIBUTORS.rst HISTORY.rst) python_compile_all() { use doc && emake -C docs html } python_install_all() { use doc && local HTML_DOCS=( docs/build/html/. ) distutils-r1_python_install_all }