b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/) |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=python-greenlet |
| 11 | PKG_VERSION:=3.0.2 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PYPI_NAME:=greenlet |
| 15 | PKG_HASH:=1c1129bc47266d83444c85a8e990ae22688cf05fb20d7951fd2866007c2ba9bc |
| 16 | |
| 17 | PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com> |
| 18 | PKG_LICENSE:=MIT |
| 19 | PKG_LICENSE_FILES:=LICENSE |
| 20 | # FIXME: remove when GCC10 is the oldest supported compiler, or the issue goes away |
| 21 | PKG_BUILD_FLAGS:=no-mips16 |
| 22 | |
| 23 | HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-wheel/host |
| 24 | |
| 25 | include ../pypi.mk |
| 26 | include $(INCLUDE_DIR)/package.mk |
| 27 | include $(INCLUDE_DIR)/host-build.mk |
| 28 | include ../python3-package.mk |
| 29 | include ../python3-host-build.mk |
| 30 | |
| 31 | define Package/python3-greenlet |
| 32 | SUBMENU:=Python |
| 33 | SECTION:=lang |
| 34 | CATEGORY:=Languages |
| 35 | TITLE:=Lightweight coroutines for in-process concurrent programming |
| 36 | URL:=https://github.com/python-greenlet/greenlet |
| 37 | DEPENDS:= \ |
| 38 | +python3-light \ |
| 39 | +libstdcpp \ |
| 40 | @!arc |
| 41 | endef |
| 42 | |
| 43 | define Package/python3-greenlet/description |
| 44 | The greenlet package is a spin-off of Stackless |
| 45 | a version of CPython that supports micro-threads called tasklets. |
| 46 | endef |
| 47 | |
| 48 | # FIXME: remove when GCC10 is the oldest supported compiler, or the issue goes away |
| 49 | # This is required in addition to PKG_BUILD_FLAGS:=no-mips16 because otherwise MIPS16 |
| 50 | # flags are inherited from the Python base package (via sysconfig module) |
| 51 | ifdef CONFIG_USE_MIPS16 |
| 52 | TARGET_CFLAGS += -mno-mips16 -mno-interlink-mips16 |
| 53 | endif |
| 54 | |
| 55 | $(eval $(call Py3Package,python3-greenlet)) |
| 56 | $(eval $(call BuildPackage,python3-greenlet)) |
| 57 | $(eval $(call BuildPackage,python3-greenlet-src)) |
| 58 | $(eval $(call HostBuild)) |