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.

65 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.9.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:=294be2c6bf84ae776df2fc98e7af7d6537e1c5e60a46d33c3ce2a197677da395
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-twisted-$(PKG_VERSION)
  15. PKG_BUILD_DEPENDS:=libtirpc
  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-attrs \
  34. +PACKAGE_twisted:python-automat \
  35. +PACKAGE_twisted:python-constantly \
  36. +PACKAGE_twisted:python-incremental \
  37. +PACKAGE_twisted:python-hyperlink \
  38. +PACKAGE_twisted:python-zope-interface
  39. VARIANT:=python
  40. endef
  41. define Package/twisted/description
  42. Twisted is a networking engine written in Python, supporting numerous
  43. protocols. It contains a web server, numerous chat clients, chat servers,
  44. mail servers, and more.
  45. endef
  46. define PyPackage/twisted/filespec
  47. +|/usr/bin
  48. +|$(PYTHON_PKG_DIR)
  49. -|$(PYTHON_PKG_DIR)/twisted/conch/scripts/tkconch.py
  50. endef
  51. $(eval $(call PyPackage,twisted))
  52. $(eval $(call BuildPackage,twisted))
  53. $(eval $(call BuildPackage,twisted-src))