You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/scikits_image/scikits_image-0.7.2-r2.ebuild

55 lines
1.5 KiB

# 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
}