blob: 62a9cb4031b37bd14fa5f185efefe4e294ced044 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# 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 test"
LICENSE="MIT"
SLOT="0"
REDEPEND=""
DEPEND="${REDEPEND} dev-python/setuptools"
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
}
|