# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/mpmath/mpmath-0.8.ebuild,v 1.1 2008/07/08 04:10:15 grozin Exp $ NEED_PYTHON=2.4 inherit distutils DESCRIPTION="A python library for arbitrary-precision floating-point arithmetic" HOMEPAGE="http://code.google.com/p/mpmath/" SRC_URI="http://mpmath.googlecode.com/files/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~x86" IUSE="doc examples test" DEPEND="doc? ( dev-python/sphinx ) test? ( dev-python/py )" src_install() { DOCS="CHANGES" distutils_src_install if use doc; then cd doc "${python}" build.py dohtml -r build/* cd .. fi if use examples; then insinto /usr/share/doc/${PF}/examples doins demo/* fi } src_test() { cd mpmath/tests py.test || die "tests failed" }