[arch-commits] Commit in python-sympy/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Sep 15 05:49:43 UTC 2018


    Date: Saturday, September 15, 2018 @ 05:49:42
  Author: felixonmars
Revision: 381129

archrelease: copy trunk to community-testing-any

Added:
  python-sympy/repos/community-testing-any/
  python-sympy/repos/community-testing-any/PKGBUILD
    (from rev 381127, python-sympy/trunk/PKGBUILD)

----------+
 PKGBUILD |   64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)

Copied: python-sympy/repos/community-testing-any/PKGBUILD (from rev 381127, python-sympy/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-09-15 05:49:42 UTC (rev 381129)
@@ -0,0 +1,64 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>  
+# Contributor: Peter Garceau <RockyChimp at gmail.com>
+
+pkgbase=python-sympy
+pkgname=('python-sympy' 'python2-sympy')
+pkgver=1.3
+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-mpmath' 'python-mpmath' 'python-setuptools' 'python2-setuptools')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/sympy/sympy/archive/sympy-$pkgver.tar.gz")
+sha512sums=('153af141b2fa30a9fcea94630bfe985cda279380f789be745c29f23be253bcff1a40a9eacf8c81621b2eed05d4d32d1918e5a00563fcabe4b354ec15a7e1d0fa')
+
+prepare() {
+  cp -a sympy-sympy-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/sympy-sympy-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/sympy-sympy-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/sympy-sympy-$pkgver
+  python setup.py test || warning "Tests failed"
+
+  cd "$srcdir"/sympy-sympy-$pkgver-py2
+  python2 setup.py test || warning "Tests failed"
+}
+
+package_python-sympy() {
+  depends=('python-mpmath')
+  optdepends=('ipython: user friendly interface for isympy')
+
+  cd sympy-sympy-$pkgver
+
+  python setup.py install --root "$pkgdir" --optimize=1
+
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-sympy() {
+  depends=('python2-mpmath')
+  optdepends=('python2-pyglet: plotting'
+              'ipython2: user friendly interface for isympy')
+
+  cd sympy-sympy-$pkgver-py2
+
+  python2 setup.py install --root "$pkgdir" --optimize=1
+
+  # rename files that exists in both 'python-sympy' and 'python2-sympy'
+  mv "$pkgdir"/usr/bin/isympy{,2}
+  mv "$pkgdir"/usr/share/man/man1/isympy{,2}.1
+
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list