aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/scikits_image/scikits_image-0.2.2.ebuild')
-rw-r--r--sci-libs/scikits_image/scikits_image-0.2.2.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/sci-libs/scikits_image/scikits_image-0.2.2.ebuild b/sci-libs/scikits_image/scikits_image-0.2.2.ebuild
new file mode 100644
index 000000000..3095d8f32
--- /dev/null
+++ b/sci-libs/scikits_image/scikits_image-0.2.2.ebuild
@@ -0,0 +1,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
+}