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.

64 lines
1.7 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:=twisted
  9. PKG_VERSION:=18.4.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=Twisted-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/T/Twisted
  13. PKG_HASH:=a4cc164a781859c74de47f17f0e85f4bce8a3321a9d0892c015c8f80c4158ad9
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-twisted-$(PKG_VERSION)
  15. PKG_BUILD_DEPENDS:=USE_MUSL:librpc
  16. PKG_LICENSE:=MIT
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  19. include $(INCLUDE_DIR)/package.mk
  20. include ../python-package.mk
  21. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xjf $(DL_DIR)/$(PKG_SOURCE)
  22. define Package/twisted/Default
  23. SUBMENU:=Python
  24. SECTION:=lang
  25. CATEGORY:=Languages
  26. URL:=http://twistedmatrix.com/
  27. endef
  28. define Package/twisted
  29. $(call Package/twisted/Default)
  30. TITLE:=Python networking engine
  31. DEPENDS:= \
  32. +PACKAGE_twisted:python-light \
  33. +PACKAGE_twisted:python-automat \
  34. +PACKAGE_twisted:python-constantly \
  35. +PACKAGE_twisted:python-incremental \
  36. +PACKAGE_twisted:python-hyperlink \
  37. +PACKAGE_twisted:python-zope-interface
  38. VARIANT:=python
  39. endef
  40. define Package/twisted/description
  41. Twisted is a networking engine written in Python, supporting numerous
  42. protocols. It contains a web server, numerous chat clients, chat servers,
  43. mail servers, and more.
  44. endef
  45. define PyPackage/twisted/filespec
  46. +|/usr/bin
  47. +|$(PYTHON_PKG_DIR)
  48. -|$(PYTHON_PKG_DIR)/twisted/conch/scripts/tkconch.py
  49. endef
  50. $(eval $(call PyPackage,twisted))
  51. $(eval $(call BuildPackage,twisted))
  52. $(eval $(call BuildPackage,twisted-src))