Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Copyright (C) 2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
- #
- # This is free software, licensed under the GNU General Public License v2.
- # See /LICENSE for more information.
- #
- include $(TOPDIR)/rules.mk
- PKG_NAME:=python-gevent
- PKG_VERSION:=22.10.2
- PKG_RELEASE:=1
- PYPI_NAME:=gevent
- PKG_HASH:=1ca01da176ee37b3527a2702f7d40dbc9ffb8cfc7be5a03bfa4f9eec45e55c46
- PKG_MAINTAINER:=Denis Bilenko
- PKG_LICENSE:=MIT
- PKG_LICENSE_FILES:=LICENSE
- # FIXME: remove when GCC10 is the oldest supported compiler, or the issue goes away
- PKG_USE_MIPS16:=0
- include ../pypi.mk
- include $(INCLUDE_DIR)/package.mk
- include ../python3-package.mk
- define Package/python3-gevent
- SUBMENU:=Python
- SECTION:=libs
- CATEGORY:=Libraries
- TITLE:=Gevent
- URL:=https://github.com/gevent/gevent/
- DEPENDS:= \
- +python3-light \
- +libstdcpp \
- @!arc
- endef
- define Package/python3-gevent/description
- Gevent
- endef
- # FIXME: remove when GCC10 is the oldest supported compiler, or the issue goes away
- # This is required in addition to PKG_USE_MIPS16:=0 because otherwise MIPS16
- # flags are inherited from the Python base package (via sysconfig module)
- ifdef CONFIG_USE_MIPS16
- TARGET_CFLAGS += -mno-mips16 -mno-interlink-mips16
- endif
- define Build/Configure
- (cd $(PKG_BUILD_DIR)/deps/libev; \
- $(TARGET_CONFIGURE_OPTS) \
- CFLAGS="$(TARGET_CFLAGS)" \
- CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
- LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
- $(PKG_BUILD_DIR)/deps/libev/configure \
- --target=$(GNU_TARGET_NAME) \
- --host=$(GNU_TARGET_NAME) \
- --build=$(GNU_HOST_NAME) \
- --prefix=/usr \
- --without-libiconv-prefix \
- --without-libintl-prefix \
- --disable-nls \
- );
- $(call Build/Compile/PyMod,., \
- install --prefix="/opt" --root="$(PKG_INSTALL_DIR)", \
- CYTHON="$(STAGING_DIR_HOST)/usr/bin/cython" \
- )
- endef
- define Package/python3-gevent/install
- $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
- $(CP) \
- $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
- $(1)$(PYTHON_PKG_DIR)
- endef
- $(eval $(call Py3Package,python3-gevent))
- $(eval $(call BuildPackage,python3-gevent))
- #$(eval $(call BuildPackage,python3-gevent-src))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement