[arch-commits] Commit in python-sympy/trunk (PKGBUILD)

Felix Yan fyan at nymeria.archlinux.org
Sun Feb 23 02:02:21 UTC 2014


    Date: Sunday, February 23, 2014 @ 03:02:20
  Author: fyan
Revision: 106108

upgpkg: python-sympy 0.7.5-1

Modified:
  python-sympy/trunk/PKGBUILD

----------+
 PKGBUILD |   36 +++++++++++++++++++++---------------
 1 file changed, 21 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-02-23 01:03:44 UTC (rev 106107)
+++ PKGBUILD	2014-02-23 02:02:20 UTC (rev 106108)
@@ -7,37 +7,43 @@
 
 pkgbase=python-sympy
 pkgname=('python2-sympy' 'python-sympy')
-pkgver=0.7.4.1
+pkgver=0.7.5
 pkgrel=1
 arch=('any')
 pkgdesc='Symbolic manipulation package (Computer Algebra System), written in pure Python'
 url='http://sympy.org/en/index.html'
 license=('BSD')
-makedepends=('python2' 'python')
-optdepends=('pyglet: plotting'
-            'ipython2: user friendly interface for isympy')
-source=("https://github.com/sympy/sympy/releases/download/sympy-${pkgver}/sympy-${pkgver}.tar.gz")
+makedepends=('python2' 'python' 'git')
+source=("git+https://github.com/sympy/sympy.git#tag=sympy-${pkgver}")
 
 prepare() {
-  cp -r sympy-${pkgver} py3-sympy-${pkgver}
+  cp -r sympy py3-sympy
 
-  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' sympy-${pkgver}/sympy/mpmath/tests/runtests.py sympy-${pkgver}/sympy/utilities/tests/diagnose_imports.py
-  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' py3-sympy-${pkgver}/sympy/mpmath/tests/runtests.py py3-sympy-${pkgver}/sympy/utilities/tests/diagnose_imports.py
+  sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+         -e 's|#!/usr/bin/python|#!/usr/bin/python2|' \
+    sympy/sympy/mpmath/tests/{runtests.py,test_eigen.py,test_levin.py,test_eigen_symmetric.py} \
+    sympy/sympy/mpmath/matrices/{eigen.py,eigen_symmetric.py} \
+    sympy/sympy/utilities/tests/diagnose_imports.py
+  sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
+         -e 's|#!/usr/bin/python|#!/usr/bin/python3|' \
+    py3-sympy/sympy/mpmath/tests/{runtests.py,test_eigen.py,test_levin.py,test_eigen_symmetric.py} \
+    py3-sympy/sympy/mpmath/matrices/{eigen.py,eigen_symmetric.py} \
+    py3-sympy/sympy/utilities/tests/diagnose_imports.py
 }
 
 build() {
-  cd sympy-${pkgver}
+  cd sympy
   python2 setup.py build
 
-  cd ../py3-sympy-${pkgver}
+  cd ../py3-sympy
   python3 setup.py build
 }
 
 #check() {
-#  cd sympy-${pkgver}
+#  cd sympy
 #  python2 setup.py test
 #
-#  cd ../py3-sympy-${pkgver}
+#  cd ../py3-sympy
 #  python3 setup.py test
 #}
 
@@ -46,7 +52,7 @@
   optdepends=('python2-pyglet: plotting'
               'ipython2: user friendly interface for isympy')
 
-  cd sympy-${pkgver}
+  cd sympy
 
   python2 setup.py install --root "${pkgdir}" --optimize=1
 
@@ -57,7 +63,7 @@
   depends=('python>=3.3')
   optdepends=('ipython: user friendly interface for isympy')
 
-  cd py3-sympy-${pkgver}
+  cd py3-sympy
 
   python3 setup.py install --root "${pkgdir}" --optimize=1
 
@@ -68,4 +74,4 @@
   install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
 }
 
-sha512sums=('8d4d87428c202407ff364ef503634529500c1656cf5ddbb4de19b838499593c58d227f0b619541ce86cdc15157e3a5b48a95c906a5d05d4606ef95f1aa8fa2dc')
+sha512sums=('SKIP')




More information about the arch-commits mailing list