changeset 5299:47b1ea174cb0

Add python mppath package * src/python-mpmath.mk: new file * dist-files.mk, index.html: add ref to new package
author John Donoghue
date Mon, 10 Feb 2020 15:40:20 -0500
parents 69f25be92c64
children 561da151205e
files dist-files.mk index.html src/python-mpmath.mk
diffstat 3 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dist-files.mk	Mon Feb 10 15:40:19 2020 -0500
+++ b/dist-files.mk	Mon Feb 10 15:40:20 2020 -0500
@@ -586,6 +586,7 @@
   pthreads-test.c \
   pthreads.mk \
   python-embedded.mk \
+  python-mpmath.mk \
   qdbm-test.c \
   qdbm.mk \
   qhull-1-fixes.patch \
--- a/index.html	Mon Feb 10 15:40:19 2020 -0500
+++ b/index.html	Mon Feb 10 15:40:20 2020 -0500
@@ -2512,6 +2512,11 @@
     <tr>
         <td class="package">python-embedded</td>
         <td class="website"><a href="https://www.python.org/downloads/windows/">python-embedded</a></td>
+    </tr>
+    <tr>
+        <td class="package">python-mpmath</td>
+        <td class="website"><a href="https://mpmath.org/">python mpmath</a></td>
+    </tr>
     <tr>
         <td class="package">qdbm</td>
         <td class="website"><a href="http://fallabs.com/qdbm/">QDBM</a></td>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/python-mpmath.mk	Mon Feb 10 15:40:20 2020 -0500
@@ -0,0 +1,20 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG             := python-mpmath
+$(PKG)_VERSION  := 1.1.0
+$(PKG)_CHECKSUM := 3f479408ea65b08bc23eeebe5dac2f2293dfec9d
+$(PKG)_SUBDIR   := 
+$(PKG)_FILE     := mpmath-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL      := https://files.pythonhosted.org/packages/ca/63/3384ebb3b51af9610086b23ea976e6d27d6d97bf140a76a365bd77a3eb32/$($(PKG)_FILE)
+$(PKG)_DEPS += python-embedded
+
+define $(PKG)_UPDATE
+    echo $($(PKG)_VERSION)
+endef
+
+define $(PKG)_BUILD
+    mkdir -p '$(3)$(HOST_PREFIX)/python'
+    cd '$(1)/mpmath-$($(PKG)_VERSION)' && tar cf - mpmath | ( cd '$(3)$(HOST_PREFIX)/python'; tar xpf - )
+    cd '$(1)' && tar cf - --exclude=mpmath-$($(PKG)_VERSION)/mpmath . | ( cd '$(3)$(HOST_PREFIX)/python'; tar xpf - )
+endef