summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2011-08-05 11:21:17 +0000
committerAndrey Grozin <grozin@gentoo.org>2011-08-05 11:21:17 +0000
commitab67b2d7d7ed907f7dd5722e4c6a1eb9760722ff (patch)
tree8002b7b349733f6a13dcce5a640798439fa0f433 /dev-python/sympy
parentAdd ~x86-fbsd. (diff)
downloadhistorical-ab67b2d7d7ed907f7dd5722e4c6a1eb9760722ff.tar.gz
historical-ab67b2d7d7ed907f7dd5722e4c6a1eb9760722ff.tar.bz2
historical-ab67b2d7d7ed907f7dd5722e4c6a1eb9760722ff.zip
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.
Package-Manager: portage-2.2.0_alpha50/cvs/Linux i686
Diffstat (limited to 'dev-python/sympy')
-rw-r--r--dev-python/sympy/ChangeLog10
-rw-r--r--dev-python/sympy/Manifest15
-rw-r--r--dev-python/sympy/files/sympy-0.7.1-mpmath.patch23
-rw-r--r--dev-python/sympy/sympy-0.7.1.ebuild115
4 files changed, 151 insertions, 12 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/Manifest b/dev-python/sympy/Manifest
index acca75dc11f2..b79ee08093a1 100644
--- a/dev-python/sympy/Manifest
+++ b/dev-python/sympy/Manifest
@@ -1,18 +1,11 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX sympy-0.6.6-sphinx.patch 1579 RMD160 5d5afa6e06c5ae4a2060942f8e9a5d3889339e76 SHA1 5683bad90d20cc7dc30edb9be8caa2d8348a80d0 SHA256 877fa9bff1307116556638fbfbb11258407bf1b05e8f60a99a33fd8b23aaa535
AUX sympy-0.6.7-python-2.7.patch 965 RMD160 383a889313b359f257eea3a7920ab6d89e8856ad SHA1 8e23323615e88329ba12c420635ff55fdbc1e6bf SHA256 19d85668cdf728e51acd7d203a9c784c203bb35c0dda40a8567a1e0cb35ee3f7
+AUX sympy-0.7.1-mpmath.patch 662 RMD160 3be23f713cf06ad7a571f5aedf2398ba753584f5 SHA1 e47e21adfd0d83aeb4f8a0b8a0660142f3644877 SHA256 6ba573ef53171d837cb1a7b7aee2710c1b92673dfa51954e3d2a6b8e59fdd94a
DIST sympy-0.6.7.tar.gz 2939278 RMD160 8184b697f7d371d17f35c9a80bd020ae887bb7e3 SHA1 b50b1a256269df02b19c74c8a1491b5e42d6f26b SHA256 802264fea36b9e3bd42df18422f1b26e6d4d962764bd2ab10f4b8b6a0b189791
DIST sympy-0.7.0.tar.gz 4126131 RMD160 21df1e843865c52a51210542f93840e256366c3d SHA1 b95030d8901486d51692d1dd4fe689fb569c7ff7 SHA256 d204407cfdbeeed476243625d836fe751bf134ca97820b70cd9972ad7589a63e
+DIST sympy-0.7.1.tar.gz 3573079 RMD160 ba6f95435d72708a12e4c4285d82d5e51d38bce4 SHA1 b8609cc7e08d2883f96526ee8a4afdc90d77b911 SHA256 b4ad418d4301a8a26999f91eb816a0136ffae92007f6deb14eb329b6fbd7350b
EBUILD sympy-0.6.7.ebuild 1812 RMD160 2d0df7dc3f5b5f97d6aeb040c9222e9cf4be2a0c SHA1 723d40f8fd1cf038765cf6b4a37157aaf02cbba4 SHA256 e432dea44dafa9d11123a0239c7a6f4d8a990e706ea8cc37f12be56736b4e50f
EBUILD sympy-0.7.0.ebuild 1619 RMD160 d992a45b509423f9c396e53e3c8c160df6dcdd7e SHA1 e38a1ec3bf49222adee1f9f13cae08cda023c975 SHA256 8714cd5d01bdbe3dc468c9dac65c44d26d787d7f519491d7fa24955a1cb83324
-MISC ChangeLog 2646 RMD160 2b16c11fe89f485a8cba3c5fd932189317cb697f SHA1 3d6d0f8628cc898a5954a9763f77d6970299942c SHA256 8ec6edef5aca4fb1e4f5c082b67130bf060c080f4b72cb35aa199afa4cab735c
+EBUILD sympy-0.7.1.ebuild 3133 RMD160 6f2d4b3d9d39d942e316172d83d5e56f72ac8997 SHA1 cc7c7bb1262b26a83eba66ee0d622c8829488d67 SHA256 e2cde10c16dba967ab0e9817fe2e4c3520093828d5d8ba5be1b2c167a69b2a99
+MISC ChangeLog 2971 RMD160 94c7b616b2578b434385dba5d937163187603885 SHA1 049ee40e5c9633047ac6bb4812cbb3e842f235e2 SHA256 9370b9a37a1b5cd65cbb44ef23fca080a579c02a95b89c43a21f98a98934fbe7
MISC metadata.xml 633 RMD160 1e2a9802af567bd541d0ad500ec400b9203460c4 SHA1 9e0d449759a132552a9e8d1c10ab9271db8e1191 SHA256 0ffbbb6a597b7ef6a01e51d3cea66de7ec0b600b6b34b8f2c8fdf4f30ce53612
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.16 (GNU/Linux)
-
-iEYEARECAAYFAk4u53YACgkQdIssYB9vBoNoJACggSif/ey5H+9gmGj0CVnHiplI
-0BEAniaPKtUyeT/OZwKqbV5EdrYrxEV6
-=xvGx
------END PGP SIGNATURE-----
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
+}