Advertisement
boriss

Untitled

Jan 25th, 2023
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | Software | 0 0
  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-gevent
  11. PKG_VERSION:=22.10.2
  12. PKG_RELEASE:=1
  13.  
  14. PYPI_NAME:=gevent
  15. PKG_HASH:=1ca01da176ee37b3527a2702f7d40dbc9ffb8cfc7be5a03bfa4f9eec45e55c46
  16.  
  17. PKG_MAINTAINER:=Denis Bilenko
  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_USE_MIPS16:=0
  22.  
  23. include ../pypi.mk
  24. include $(INCLUDE_DIR)/package.mk
  25. include ../python3-package.mk
  26.  
  27. define Package/python3-gevent
  28. SUBMENU:=Python
  29. SECTION:=libs
  30. CATEGORY:=Libraries
  31. TITLE:=Gevent
  32. URL:=https://github.com/gevent/gevent/
  33. DEPENDS:= \
  34. +python3-light \
  35. +libstdcpp \
  36. @!arc
  37. endef
  38.  
  39. define Package/python3-gevent/description
  40. Gevent
  41. endef
  42.  
  43. # FIXME: remove when GCC10 is the oldest supported compiler, or the issue goes away
  44. # This is required in addition to PKG_USE_MIPS16:=0 because otherwise MIPS16
  45. # flags are inherited from the Python base package (via sysconfig module)
  46. ifdef CONFIG_USE_MIPS16
  47. TARGET_CFLAGS += -mno-mips16 -mno-interlink-mips16
  48. endif
  49.  
  50. define Build/Configure
  51. (cd $(PKG_BUILD_DIR)/deps/libev; \
  52. $(TARGET_CONFIGURE_OPTS) \
  53. CFLAGS="$(TARGET_CFLAGS)" \
  54. CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
  55. LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
  56. $(PKG_BUILD_DIR)/deps/libev/configure \
  57. --target=$(GNU_TARGET_NAME) \
  58. --host=$(GNU_TARGET_NAME) \
  59. --build=$(GNU_HOST_NAME) \
  60. --prefix=/usr \
  61. --without-libiconv-prefix \
  62. --without-libintl-prefix \
  63. --disable-nls \
  64. );
  65. $(call Build/Compile/PyMod,., \
  66. install --prefix="/opt" --root="$(PKG_INSTALL_DIR)", \
  67. CYTHON="$(STAGING_DIR_HOST)/usr/bin/cython" \
  68. )
  69. endef
  70. define Package/python3-gevent/install
  71. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  72. $(CP) \
  73. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  74. $(1)$(PYTHON_PKG_DIR)
  75. endef
  76.  
  77. $(eval $(call Py3Package,python3-gevent))
  78. $(eval $(call BuildPackage,python3-gevent))
  79. #$(eval $(call BuildPackage,python3-gevent-src))
  80.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement