blob: e928a50ec4a459448b2c95f6bebdf38c06bf515e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# 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.13.ebuild,v 1.2 2010/02/07 20:57:23 pva Exp $
EAPI=2
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="~amd64 ~x86"
IUSE="doc examples gmp test"
RDEPEND="gmp? ( dev-python/gmpy )"
DEPEND="doc? ( dev-python/sphinx )
test? ( dev-python/py )"
src_compile() {
distutils_src_compile
if use doc; then
cd doc
"${python}" build.py
cd ..
fi
}
src_install() {
DOCS="CHANGES"
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
}
src_test() {
cd mpmath/tests
py.test || die "tests failed"
}
|