diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2012-04-23 18:21:05 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2012-04-23 18:21:05 +0000 |
commit | 0dfd518fedf85a92ce21f5a43a427b5f337451b8 (patch) | |
tree | ebcacd51d16c12fe6573678b6d44e4256595ecca /dev-python/pyamg/pyamg-2.0.4.ebuild | |
parent | Package removal. (diff) | |
download | gentoo-2-0dfd518fedf85a92ce21f5a43a427b5f337451b8.tar.gz gentoo-2-0dfd518fedf85a92ce21f5a43a427b5f337451b8.tar.bz2 gentoo-2-0dfd518fedf85a92ce21f5a43a427b5f337451b8.zip |
Version bump
(Portage version: 2.1.10.56/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pyamg/pyamg-2.0.4.ebuild')
-rw-r--r-- | dev-python/pyamg/pyamg-2.0.4.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/pyamg/pyamg-2.0.4.ebuild b/dev-python/pyamg/pyamg-2.0.4.ebuild new file mode 100644 index 000000000000..95af1cd482d1 --- /dev/null +++ b/dev-python/pyamg/pyamg-2.0.4.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyamg/pyamg-2.0.4.ebuild,v 1.1 2012/04/23 18:21:05 bicatali Exp $ + +EAPI=4 +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*" + +inherit distutils eutils + +DESCRIPTION="Algebraic multigrid solvers in Python" +HOMEPAGE="http://code.google.com/p/pyamg/" +SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RESTRICT="test" # quite buggy + +RDEPEND="sci-libs/scipy" +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx ) + test? ( dev-python/nose )" + +S="${WORKDIR}/${PN}" + +src_compile() { + distutils_src_compile + if use doc; then + cd "${S}/Docs" + PYTHONPATH=$(ls -d "${S}"/build-$(PYTHON -f --ABI)/lib*) emake html + fi +} + +src_test() { + testing() { + "$(PYTHON)" setup.py \ + build -b "build-${PYTHON_ABI}" \ + install --home="${S}/test-${PYTHON_ABI}" + pushd "${S}/test-${PYTHON_ABI}/lib/python" > /dev/null + PYTHONPATH=. "$(PYTHON)" -c "import pyamg; pyamg.test()" 2>&1 | tee test.log + grep -Eq "^(ERROR|FAIL):" test.log && return 1 + popd > /dev/null + rm -fr test-${PYTHON_ABI} + } + python_execute_function testing +} + +src_install() { + distutils_src_install + use doc && dohtml -r Docs/build/html/* +} |