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-2011, 2015-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.4.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=Twisted-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/6b/23/8dbe86fc83215015e221fbd861a545c6ec5c9e9cd7514af114d1f64084ab \
  13. http://twistedmatrix.com/Releases/Twisted/16.4
  14. PKG_HASH:=1d8d73f006c990744effb35588359fd44d43608649ac0b6b7edc71176e88e816
  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))