# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 PYTHON_DEPEND="*" SUPPORT_PYTHON_ABIS=1 RESTRICT_PYTHON_ABIS="*-pypy-* *-jython" DISTUTILS_SRC_TEST=py.test inherit distutils DESCRIPTION="Lightweight in-process concurrent programming" HOMEPAGE="http://pypi.python.org/pypi/greenlet/" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" KEYWORDS="~amd64" IUSE="doc" LICENSE="MIT" SLOT="0" REDEPEND="" DEPEND="${REDEPEND} dev-python/setuptools doc? ( dev-python/sphinx )" src_compile() { use doc && emake -C doc text || return 1 rm -f docs/_build/doctrees/environment.pickle || die distutils_src_compile } src_install() { if use doc; then docompress -x usr/share/doc/${P}/{doctrees,text} insinto usr/share/doc/${P}/ doins -r doc/_build/{doctrees,text} fi distutils_src_install }