diff options
Diffstat (limited to 'dev-python/mpmath/mpmath-0.15.ebuild')
-rw-r--r-- | dev-python/mpmath/mpmath-0.15.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/mpmath/mpmath-0.15.ebuild b/dev-python/mpmath/mpmath-0.15.ebuild new file mode 100644 index 000000000000..6fbcebf1e9e0 --- /dev/null +++ b/dev-python/mpmath/mpmath-0.15.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/mpmath/mpmath-0.15.ebuild,v 1.1 2010/06/07 16:47:26 grozin Exp $ + +EAPI="2" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +DISTUTILS_SRC_TEST="py.test" + +inherit distutils + +DESCRIPTION="A python library for arbitrary-precision floating-point arithmetic" +HOMEPAGE="http://code.google.com/p/mpmath/ http://pypi.python.org/pypi/mpmath/" +SRC_URI="http://mpmath.googlecode.com/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples gmp" + +RDEPEND="gmp? ( dev-python/gmpy )" +DEPEND="doc? ( dev-python/sphinx )" +RESTRICT_PYTHON_ABIS="3.*" + +DOCS="CHANGES" + +src_compile() { + distutils_src_compile + if use doc; then + cd doc + "$(PYTHON -f)" build.py + fi +} + +src_test() { + cd mpmath/tests + distutils_src_test +} + +src_install() { + distutils_src_install + + if use doc; then + cd doc + dohtml -r build/* + cd .. + fi + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins demo/* + fi +} |