noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[feed/packages.git] / lang / python / twisted / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=twisted
11 PKG_VERSION:=16.4.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=Twisted-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=https://pypi.python.org/packages/6b/23/8dbe86fc83215015e221fbd861a545c6ec5c9e9cd7514af114d1f64084ab \
16 http://twistedmatrix.com/Releases/Twisted/16.4
17 PKG_MD5SUM:=c6d09bdd681f538369659111f079c29d
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/Twisted-$(PKG_VERSION)
20 PKG_BUILD_DEPENDS:=python python-setuptools USE_MUSL:librpc
21
22 PKG_LICENSE:=MIT
23 PKG_LICENSE_FILES:=LICENSE
24 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
25
26 include $(INCLUDE_DIR)/package.mk
27 $(call include_mk, python-package.mk)
28
29 define Package/twisted
30 SUBMENU:=Python
31 SECTION:=lang
32 CATEGORY:=Languages
33 TITLE:=Python networking engine
34 URL:=http://twistedmatrix.com/
35 DEPENDS:=+python-light +zope-interface
36 endef
37
38 define Package/twisted/description
39 Twisted is a networking engine written in Python, supporting numerous
40 protocols. It contains a web server, numerous chat clients, chat servers,
41 mail servers, and more.
42 endef
43
44 define PyPackage/twisted/filespec
45 +|/usr/bin
46 -|/usr/bin/tkconch
47 +|$(PYTHON_PKG_DIR)
48 -|$(PYTHON_PKG_DIR)/twisted/conch/scripts/tkconch.py
49 endef
50
51 define Build/Compile
52 $(call Build/Compile/PyMod,, \
53 install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" --no-compile, \
54 )
55 endef
56
57 $(eval $(call PyPackage,twisted))
58 $(eval $(call BuildPackage,twisted))