blob: 90befcf2bf41126ae3320aa889aaeadf20b5c4c3 (
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
51
52
53
54
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_image/scikits_image-0.7.2-r2.ebuild,v 1.1 2013/02/08 08:53:17 jlec Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} )
inherit distutils-r1
MYPN="${PN/scikits_/scikit-}"
DESCRIPTION="Image processing routines for SciPy"
HOMEPAGE="http://scikit-image.org/"
SRC_URI="mirror://pypi/${PN:0:1}/${MYPN}/${MYPN}-${PV}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="freeimage gtk qt4 test"
RDEPEND="
sci-libs/scikits[${PYTHON_USEDEP}]
sci-libs/scipy[umfpack,${PYTHON_USEDEP}]
freeimage? ( media-libs/freeimage )
gtk? ( dev-python/pygtk[${PYTHON_USEDEP}] )
qt4? ( dev-python/PyQt4[${PYTHON_USEDEP}] )"
DEPEND="
>=dev-python/cython-0.15
>=dev-python/numpy-1.6[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/pyamg[${PYTHON_USEDEP}] )"
# missing data files to generate doc in version 0.7.2
# doc? ( dev-python/matplotlib
# dev-python/sphinx
# media-libs/freeimage
# sci-libs/scipy
# dev-python/sphinx )"
S="${WORKDIR}/${MYPN}-${PV}"
DOCS=( CONTRIBUTORS.txt DEPENDS.txt DEVELOPMENT.txt RELEASE.txt TASKS.txt )
python_test() {
esetup.py \
install --root="${T}/test-${EPYTHON}" \
--no-compile || die "install test failed"
cd "${T}/test-${EPYTHON}/${EPREFIX}$(python_get_sitedir)" || die
echo "backend: Agg" > matplotlibrc
MPLCONFIGDIR=. PYTHONPATH=. nosetests-"${EPYTHON}" || die
}
|