view src/python-sympy.mk @ 6215:d18a5545df0d release

build-gettext: Don't build emacs bindings. * src/build-gettext.mk: The `emacs` installed on the build system might be incompatible with the STL built by build-gcc. We probably don't need the emacs bindings for the `gettext` build tool anyway. So skip building those bindings.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 07 May 2022 12:01:10 +0200
parents 05a745ca2e6e
children cd0d311a91d0
line wrap: on
line source

# 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-mpmath

ifeq ($(MXE_WINDOWS_BUILD),yes)
 $(PKG)_DEPS += msys2-python
 $(PKG)_PYTHON_PKG_DIR := $(MSYS2_DIR)/usr/lib/python$(call SHORT_PKG_VERSION,msys2-python)/site-packages/
else
 $(PKG)_PYTHON_PKG_DIR := $(3)$(HOST_PREFIX)/python
endif

define $(PKG)_UPDATE
    echo $($(PKG)_VERSION)
endef

define $(PKG)_BUILD
    rm -rf '$($(PKG)_PYTHON_PKG_DIR)/sympy*'

    mkdir -p '$($(PKG)_PYTHON_PKG_DIR)'
    cd '$(1)/sympy-$($(PKG)_VERSION)' && tar cf - sympy | ( cd '$($(PKG)_PYTHON_PKG_DIR)'; tar xpf - )
    cd '$(1)' && tar cf - --exclude=sympy-$($(PKG)_VERSION)/sympy . | ( cd '$($(PKG)_PYTHON_PKG_DIR)'; tar xpf - )
endef