summaryrefslogtreecommitdiff
path: root/community/python-sympy
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/python-sympy
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/python-sympy')
-rw-r--r--community/python-sympy/PKGBUILD27
-rw-r--r--community/python-sympy/test.patch11
2 files changed, 38 insertions, 0 deletions
diff --git a/community/python-sympy/PKGBUILD b/community/python-sympy/PKGBUILD
new file mode 100644
index 000000000..bc3221a2a
--- /dev/null
+++ b/community/python-sympy/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
+# Contributor: Peter Garceau <RockyChimp@gmail.com>
+pkgname=python-sympy
+pkgver=0.6.7
+pkgrel=2
+pkgdesc="Symbolic manipulation package (Computer Algebra System), written in pure Python"
+url="http://code.google.com/p/sympy"
+license=('BSD')
+depends=('python2')
+conflicts=('sympy')
+provides=('sympy')
+arch=('i686' 'x86_64')
+source=(http://sympy.googlecode.com/files/sympy-${pkgver}.tar.gz)
+md5sums=('d73e0a5a128f38f930d566110f4b668b')
+
+build() {
+ cd "${srcdir}/sympy-${pkgver}"
+
+ # python2 fix
+ for file in sympy/galgebra/GA.py sympy/galgebra/tests/test_GA.py; do
+ sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' $file
+ done
+ sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' sympy/mpmath/tests/runtests.py
+
+ python2 setup.py install --root "${pkgdir}"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
diff --git a/community/python-sympy/test.patch b/community/python-sympy/test.patch
new file mode 100644
index 000000000..81e00f2db
--- /dev/null
+++ b/community/python-sympy/test.patch
@@ -0,0 +1,11 @@
+--- a/setup.py
++++ b/setup.py
+@@ -216,7 +216,7 @@ setup(
+ license = 'BSD',
+ url = 'http://code.google.com/p/sympy',
+ packages = ['sympy'] + modules + tests + pyglet_packages,
+- scripts = ['bin/isympy', 'bin/test', 'bin/doctest'],
++ scripts = ['bin/isympy'],
+ ext_modules = [],
+ package_data = { 'sympy.utilities.mathml' : ['data/*.xsl'] },
+ data_files = [('share/man/man1', ['doc/man/isympy.1'])],