changeset 5300:561da151205e

Add python sympy package * src/python-sympy.mk: new file * dist-files.mk, index.html: add reference to new package
author John Donoghue
date Mon, 10 Feb 2020 15:40:21 -0500
parents 47b1ea174cb0
children 3c10ce089d7c
files dist-files.mk index.html src/python-sympy.mk
diffstat 3 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dist-files.mk	Mon Feb 10 15:40:20 2020 -0500
+++ b/dist-files.mk	Mon Feb 10 15:40:21 2020 -0500
@@ -587,6 +587,7 @@
   pthreads.mk \
   python-embedded.mk \
   python-mpmath.mk \
+  python-sympy.mk \
   qdbm-test.c \
   qdbm.mk \
   qhull-1-fixes.patch \
--- a/index.html	Mon Feb 10 15:40:20 2020 -0500
+++ b/index.html	Mon Feb 10 15:40:21 2020 -0500
@@ -2518,6 +2518,10 @@
         <td class="website"><a href="https://mpmath.org/">python mpmath</a></td>
     </tr>
     <tr>
+        <td class="package">python-sympy</td>
+        <td class="website"><a href="https://sympy.org/">python sympy</a></td>
+    </tr>
+    <tr>
         <td class="package">qdbm</td>
         <td class="website"><a href="http://fallabs.com/qdbm/">QDBM</a></td>
     </tr>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/python-sympy.mk	Mon Feb 10 15:40:21 2020 -0500
@@ -0,0 +1,20 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG             := python-sympy
+$(PKG)_VERSION  := 1.5
+$(PKG)_CHECKSUM := be2e740860f7900f0ee2a8102d2943fded44125c
+$(PKG)_SUBDIR   := 
+$(PKG)_FILE     := sympy-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL      := https://github.com/sympy/sympy/releases/download/sympy-$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS += python-embedded python-mpmath
+
+define $(PKG)_UPDATE
+    echo $($(PKG)_VERSION)
+endef
+
+define $(PKG)_BUILD
+    mkdir -p '$(3)$(HOST_PREFIX)/python'
+    cd '$(1)/sympy-$($(PKG)_VERSION)' && tar cf - sympy | ( cd '$(3)$(HOST_PREFIX)/python'; tar xpf - )
+    cd '$(1)' && tar cf - --exclude=sympy-$($(PKG)_VERSION)/sympy . | ( cd '$(3)$(HOST_PREFIX)/python'; tar xpf - )
+endef