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.6 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.0.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=Twisted-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/source/T/Twisted \
  13. http://twistedmatrix.com/Releases/Twisted/16.0
  14. PKG_MD5SUM:=c6aa35e9a1e40fce6797247f39647d2a
  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/manhole
  38. -|/usr/bin/tap2deb
  39. -|/usr/bin/tap2rpm
  40. -|/usr/bin/tkconch
  41. +|$(PYTHON_PKG_DIR)
  42. -|$(PYTHON_PKG_DIR)/twisted/conch/scripts/tkconch.py
  43. -|$(PYTHON_PKG_DIR)/twisted/scripts/manhole.py
  44. -|$(PYTHON_PKG_DIR)/twisted/scripts/tap2deb.py
  45. -|$(PYTHON_PKG_DIR)/twisted/scripts/tap2rpm.py
  46. endef
  47. define Build/Compile
  48. $(call Build/Compile/PyMod,, \
  49. install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" --no-compile, \
  50. )
  51. endef
  52. $(eval $(call PyPackage,twisted))
  53. $(eval $(call BuildPackage,twisted))