summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/sympy/ChangeLog10
-rw-r--r--dev-python/sympy/files/sympy-0.7.1-mpmath.patch23
-rw-r--r--dev-python/sympy/sympy-0.7.1.ebuild115
3 files changed, 147 insertions, 1 deletions
diff --git a/dev-python/sympy/ChangeLog b/dev-python/sympy/ChangeLog
index 69ab5aac62cf..7e2f149a09e1 100644
--- a/dev-python/sympy/ChangeLog
+++ b/dev-python/sympy/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for dev-python/sympy
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/sympy/ChangeLog,v 1.15 2011/07/26 16:11:57 neurogeek Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sympy/ChangeLog,v 1.16 2011/08/05 11:21:17 grozin Exp $
+
+*sympy-0.7.1 (05 Aug 2011)
+
+ 05 Aug 2011; Andrey Grozin <grozin@gentoo.org> +sympy-0.7.1.ebuild,
+ +files/sympy-0.7.1-mpmath.patch:
+ Version bump, now uses system mpmath, does not embed pyglet (system pyglet is
+ a recommended soft dependence). Thanks to Francois Bissey
+ <francois.bissey@canterbury.ac.nz> for this ebuild.
26 Jul 2011; Jesus Rivero <neurogeek@gentoo.org> sympy-0.7.0.ebuild:
Added test DEPEND
diff --git a/dev-python/sympy/files/sympy-0.7.1-mpmath.patch b/dev-python/sympy/files/sympy-0.7.1-mpmath.patch
new file mode 100644
index 000000000000..13d2939e3650
--- /dev/null
+++ b/dev-python/sympy/files/sympy-0.7.1-mpmath.patch
@@ -0,0 +1,23 @@
+--- setup.py.orig 2011-08-02 15:03:59.748288474 +1200
++++ setup.py 2011-08-02 15:05:17.825461742 +1200
+@@ -59,12 +59,6 @@
+ 'sympy.logic.algorithms',
+ 'sympy.logic.utilities',
+ 'sympy.matrices',
+- 'sympy.mpmath',
+- 'sympy.mpmath.calculus',
+- 'sympy.mpmath.functions',
+- 'sympy.mpmath.libmp',
+- 'sympy.mpmath.matrices',
+- 'sympy.mpmath.tests',
+ 'sympy.ntheory',
+ 'sympy.parsing',
+ 'sympy.physics',
+@@ -208,7 +202,6 @@
+ 'sympy.integrals.tests',
+ 'sympy.logic.tests',
+ 'sympy.matrices.tests',
+- 'sympy.mpmath.tests',
+ 'sympy.ntheory.tests',
+ 'sympy.parsing.tests',
+ 'sympy.physics.quantum.tests',
diff --git a/dev-python/sympy/sympy-0.7.1.ebuild b/dev-python/sympy/sympy-0.7.1.ebuild
new file mode 100644
index 000000000000..ebabb17291f3
--- /dev/null
+++ b/dev-python/sympy/sympy-0.7.1.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sympy/sympy-0.7.1.ebuild,v 1.1 2011/08/05 11:21:17 grozin Exp $
+
+EAPI="3"
+
+PYTHON_DEPEND="2:2.5"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="2.4 3.*"
+DISTUTILS_SRC_TEST="setup.py"
+
+inherit distutils eutils
+
+DESCRIPTION="Computer algebra system (CAS) in Python"
+HOMEPAGE="http://code.google.com/p/sympy/"
+SRC_URI="http://sympy.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-macos"
+IUSE="doc examples gtk imaging ipython latex mathml opengl pdf png test texmacs"
+
+# FIXME: pyglet has been removed and is now a soft dep. Find out how to deal with this.
+RDEPEND="
+ mathml? (
+ dev-libs/libxml2:2[python]
+ dev-libs/libxslt[python]
+ gtk? ( x11-libs/gtkmathview[gtk] ) )
+ latex? (
+ virtual/latex-base
+ png? ( app-text/dvipng )
+ pdf? ( app-text/ghostscript-gpl ) )
+ texmacs? ( app-office/texmacs )
+ ipython? ( dev-python/ipython )
+ opengl? ( dev-python/pyopengl )
+ imaging? ( dev-python/imaging )
+ >=dev-python/pexpect-2.0
+ ~dev-python/mpmath-0.17"
+DEPEND="doc? ( dev-python/sphinx )
+ test? ( >=dev-python/py-0.9.0 )
+ ~dev-python/mpmath-0.17"
+
+pkg_setup() {
+ export DOT_SAGE="${S}"
+}
+
+src_prepare() {
+ # Remove mpmath
+ rm -rf sympy/mpmath/*
+ sed -i \
+ -e "s:sympy\.mpmath:mpmath:g" \
+ -e "s:from sympy import mpmath:import mpmath:g" \
+ sympy/core/function.py \
+ sympy/core/numbers.py \
+ sympy/core/tests/test_sets.py \
+ sympy/core/tests/test_evalf.py \
+ sympy/core/tests/test_sympify.py \
+ sympy/core/tests/test_numbers.py \
+ sympy/core/power.py \
+ sympy/core/evalf.py \
+ sympy/core/sets.py \
+ sympy/external/tests/test_numpy.py \
+ sympy/functions/combinatorial/numbers.py \
+ sympy/functions/special/bessel.py \
+ sympy/functions/special/gamma_functions.py \
+ sympy/ntheory/partitions_.py \
+ sympy/physics/quantum/constants.py \
+ sympy/polys/domains/groundtypes.py \
+ sympy/polys/numberfields.py \
+ sympy/polys/rootoftools.py \
+ sympy/polys/polytools.py \
+ sympy/printing/repr.py \
+ sympy/printing/str.py \
+ sympy/printing/latex.py \
+ sympy/simplify/simplify.py \
+ sympy/solvers/solvers.py \
+ sympy/solvers/tests/test_numeric.py \
+ sympy/statistics/distributions.py \
+ sympy/statistics/tests/test_statistics.py \
+ sympy/utilities/lambdify.py \
+ sympy/utilities/tests/test_lambdify.py \
+ || die "failed to patch mpmath imports"
+ epatch "${FILESDIR}/${PN}"-0.7.1-mpmath.patch
+}
+
+src_compile() {
+ PYTHONPATH="." distutils_src_compile
+
+ if use doc; then
+ cd doc
+ emake html || die "emake html failed"
+ fi
+}
+
+src_install() {
+ PYTHONPATH="." distutils_src_install
+
+ rm -f "${ED}usr/bin/"{doctest,test} || die "rm doctest test failed"
+
+ if use doc; then
+ dohtml -r doc/_build/html/*
+ fi
+
+ if use examples; then
+ insinto /usr/share/doc/${P}
+ doins -r examples
+ fi
+
+ if use texmacs; then
+ exeinto /usr/libexec/TeXmacs/bin/
+ doexe data/TeXmacs/bin/tm_sympy
+ insinto /usr/share/TeXmacs/plugins/sympy/
+ doins -r data/TeXmacs/progs
+ fi
+}