summaryrefslogtreecommitdiff
path: root/pcr/mathics
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-01-18 15:15:22 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-01-18 15:15:22 -0300
commit875e0b3b8ff52cfcdea7df9ecf421ab0464934eb (patch)
treece5ba85cf375459b83cd3343c6954fbf51262677 /pcr/mathics
parent642290b30a7595b0a99abdb6221841e8838405d4 (diff)
mathics: add new package to [pcr] -> https://labs.parabola.nu/issues/904
Diffstat (limited to 'pcr/mathics')
-rw-r--r--pcr/mathics/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/pcr/mathics/PKGBUILD b/pcr/mathics/PKGBUILD
new file mode 100644
index 000000000..662a99274
--- /dev/null
+++ b/pcr/mathics/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer (Arch): sn6uv mathics@angusgriffith.com
+# Contributor (Arch): Lex Black <autumn-wind at web dot de>
+# Contributor (Arch): rnestler
+# Contributor (Arch): mefistofeles
+
+pkgname=mathics
+pkgver=0.8
+pkgrel=1
+arch=('any')
+pkgdesc='General-purpose online computer algebra system featuring Mathematica-compatible syntax and functions'
+url='http://www.mathics.org/'
+license=('GPL3')
+depends=('python2' 'python2-setuptools' 'python2-dateutil' 'python2-ply>=3.4' 'python2-six' 'python2-sympy>=0.7.3' 'python2-django>=1.6' 'python2-colorama' 'python2-argparse' 'python2-interruptingcow')
+optdepends=(
+ 'cython2: cython optimisations'
+)
+
+source=("https://github.com/mathics/Mathics/releases/download/v${pkgver}/mathics-${pkgver}.tar.gz")
+md5sums=('05d6d1f0af9dc20f267a1d9b1b7b1831')
+
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ # mathics supports sympy==0.7.6 but works (with minor errors) for >=0.7.6
+ sed -i 's/sympy==0.7.6/sympy>=0.7.3/' setup.py
+ sed -i 's/django >= 1.6, < 1.7/django>=1.6/' setup.py
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ python2 setup.py build
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ python2 setup.py install --root=${pkgdir}
+}