You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2006-2011, 2015-2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-twisted
  9. PKG_VERSION:=20.3.0
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=Twisted
  12. PYPI_SOURCE_EXT:=tar.bz2
  13. PKG_HASH:=d72c55b5d56e176563b91d11952d13b01af8725c623e498db5507b6614fc1e10
  14. PKG_BUILD_DEPENDS:=libtirpc
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  18. PKG_CPE_ID:=cpe:/a:twistedmatrix:twisted
  19. include ../pypi.mk
  20. include $(INCLUDE_DIR)/package.mk
  21. include ../python3-package.mk
  22. define Package/python-twisted/Default
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. SUBMENU:=Python
  26. TITLE:=Asynchronous networking framework
  27. URL:=https://twistedmatrix.com/
  28. endef
  29. define Package/python3-twisted
  30. $(call Package/python-twisted/Default)
  31. DEPENDS:= \
  32. +PACKAGE_python3-twisted:python3-light \
  33. +PACKAGE_python3-twisted:python3-attrs \
  34. +PACKAGE_python3-twisted:python3-automat \
  35. +PACKAGE_python3-twisted:python3-constantly \
  36. +PACKAGE_python3-twisted:python3-incremental \
  37. +PACKAGE_python3-twisted:python3-hyperlink \
  38. +PACKAGE_python3-twisted:python3-setuptools \
  39. +PACKAGE_python3-twisted:python3-zope-interface
  40. VARIANT:=python3
  41. endef
  42. define Package/python3-twisted/description
  43. Twisted is a networking engine written in Python, supporting numerous
  44. protocols. It contains a web server, numerous chat clients, chat servers,
  45. mail servers, and more.
  46. .
  47. (Variant for Python3)
  48. endef
  49. define Py3Package/python3-twisted/filespec
  50. +|$(PYTHON3_PKG_DIR)
  51. -|$(PYTHON3_PKG_DIR)/twisted/conch/scripts/tkconch.py
  52. endef
  53. define Py3Package/python3-twisted/install
  54. $(INSTALL_DIR) $(1)/usr/bin
  55. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  56. for bin in $(1)/usr/bin/*; do \
  57. mv $$$$bin $$$${bin}3 ; \
  58. done
  59. endef
  60. $(eval $(call Py3Package,python3-twisted))
  61. $(eval $(call BuildPackage,python3-twisted))
  62. $(eval $(call BuildPackage,python3-twisted-src))