# 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.8.2.ebuild,v 1.5 2013/09/18 14:58:28 jlec Exp $ EAPI=5 # pyamg missing py3 support #PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) 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="doc freeimage gtk qt4 test" RDEPEND=" sci-libs/scikits[${PYTHON_USEDEP}] sci-libs/scipy[sparse,${PYTHON_USEDEP}] freeimage? ( media-libs/freeimage ) gtk? ( dev-python/pygtk[$(python_gen_usedep 'python2*')] ) qt4? ( dev-python/PyQt4[${PYTHON_USEDEP}] )" DEPEND=" >=dev-python/cython-0.15[${PYTHON_USEDEP}] >=dev-python/numpy-1.6[${PYTHON_USEDEP}] dev-python/setuptools[${PYTHON_USEDEP}] test? ( dev-python/matplotlib[${PYTHON_USEDEP}] dev-python/nose[${PYTHON_USEDEP}] dev-python/pyamg[${PYTHON_USEDEP}] sci-libs/scipy[${PYTHON_USEDEP}] )" 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 cd "${T}/test-${EPYTHON}/$(python_get_sitedir)" || die echo "backend: Agg" > matplotlibrc || die MPLCONFIGDIR=. nosetests -v skimage || die }