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.

58 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2006-2016 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:=16.3.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=Twisted-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/c0/7c/c1e5b61e30b7ffc96576d2a922615c8068e6996a622be813fc626cef07aa \
  13. http://twistedmatrix.com/Releases/Twisted/16.3
  14. PKG_MD5SUM:=e044af844623e9fbcbe29f578db6053a
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/Twisted-$(PKG_VERSION)
  16. PKG_BUILD_DEPENDS:=python python-setuptools USE_MUSL:librpc
  17. PKG_LICENSE:=MIT
  18. PKG_LICENSE_FILES:=LICENSE
  19. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  20. include $(INCLUDE_DIR)/package.mk
  21. $(call include_mk, python-package.mk)
  22. define Package/twisted
  23. SUBMENU:=Python
  24. SECTION:=lang
  25. CATEGORY:=Languages
  26. TITLE:=Python networking engine
  27. URL:=http://twistedmatrix.com/
  28. DEPENDS:=+python-light +zope-interface
  29. endef
  30. define Package/twisted/description
  31. Twisted is a networking engine written in Python, supporting numerous
  32. protocols. It contains a web server, numerous chat clients, chat servers,
  33. mail servers, and more.
  34. endef
  35. define PyPackage/twisted/filespec
  36. +|/usr/bin
  37. -|/usr/bin/tkconch
  38. +|$(PYTHON_PKG_DIR)
  39. -|$(PYTHON_PKG_DIR)/twisted/conch/scripts/tkconch.py
  40. endef
  41. define Build/Compile
  42. $(call Build/Compile/PyMod,, \
  43. install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" --no-compile, \
  44. )
  45. endef
  46. $(eval $(call PyPackage,twisted))
  47. $(eval $(call BuildPackage,twisted))