1
0

Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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:=17.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:=0da1a7e35d5fcae37bc9c7978970b5feb3bc82822155b8654ec63925c05af75c
  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))