blob: 3095d8f32525b804f18ba32342ec684e0699d897 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
SUPPORT_PYTHON_ABIS="1"
inherit distutils
MY_P="${P/scikits_/scikits.}"
DESCRIPTION="Image processing routines for SciPy"
HOMEPAGE="http://stefanv.github.com/scikits.image"
SRC_URI="http://pypi.python.org/packages/source/s/scikits.image/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RDEPEND="dev-python/numpy"
DEPEND="${RDEPEND}
dev-python/setuptools
doc? ( dev-python/sphinx )"
RESTRICT_PYTHON_ABIS="3.*"
S="${WORKDIR}/${MY_P}"
src_compile() {
distutils_src_compile
if use doc; then
"$(PYTHON -f)" setup.py build_sphinx || die "Generation of documentation failed"
fi
}
src_test() {
testing() {
PYTHONPATH="$(dir -d build-${PYTHON_ABI}/lib*)" "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" test
}
python_execute_function testing
}
src_install() {
distutils_src_install
dodoc *.txt
insinto /usr/share/doc/${PF}
if use doc; then
doins -r build/sphinx/html || die
fi
}
|