2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=Twisted-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://tmrc.mit.edu/mirror/twisted/Twisted/2.5
17 PKG_MD5SUM:=56df2ae66db57932515a491c03bf514f
19 PKG_BUILD_DIR:=$(BUILD_DIR)/Twisted-$(PKG_VERSION)
21 include $(INCLUDE_DIR)/package.mk
22 include ../python/python-package.mk
24 define PyPackage/twisted/default
25 URL:=http://twistedmatrix.com/
28 define PyPackage/twisted/default/description
29 Twisted is a networking engine written in Python, supporting numerous
30 protocols. It contains a web server, numerous chat clients, chat servers,
31 mail servers, and more.
34 define PyPackage/twisted
35 $(call PyPackage/twisted/default)
36 TITLE:=Python networking engine
37 DEPENDS+= +zope-interface
40 define PyPackage/twisted-conch
41 $(call PyPackage/twisted/default)
42 TITLE:=Twisted - Conch
46 define PyPackage/twisted-lore
47 $(call PyPackage/twisted/default)
52 define PyPackage/twisted-mail
53 $(call PyPackage/twisted/default)
58 define PyPackage/twisted-names
59 $(call PyPackage/twisted/default)
60 TITLE:=Twisted - Names
64 define PyPackage/twisted-news
65 $(call PyPackage/twisted/default)
70 define PyPackage/twisted-runner
71 $(call PyPackage/twisted/default)
72 TITLE:=Twisted - Runner
76 define PyPackage/twisted-web
77 $(call PyPackage/twisted/default)
82 define PyPackage/twisted-words
83 $(call PyPackage/twisted/default)
84 TITLE:=Twisted - Words
88 define PyPackage/zope-interface
89 $(call PyPackage/twisted/default)
93 TWISTED_SUPPROJECTS:=core
97 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-conch),)
98 TWISTED_SUBPROJECTS+=conch
100 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-lore),)
101 TWISTED_SUBPROJECTS+=lore
103 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-mail),)
104 TWISTED_SUBPROJECTS+=mail
106 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-names),)
107 TWISTED_SUBPROJECTS+=names
109 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-news),)
110 TWISTED_SUBPROJECTS+=news
112 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-runner),)
113 TWISTED_SUBPROJECTS+=runner
115 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-web),)
116 TWISTED_SUBPROJECTS+=web
118 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-words),)
119 TWISTED_SUBPROJECTS+=words
123 define Build/Configure
126 define PyPackage/twisted/filespec
129 +|$(PYTHON_PKG_DIR)/twisted/application
130 +|$(PYTHON_PKG_DIR)/twisted/copyright.py
131 +|$(PYTHON_PKG_DIR)/twisted/cred
132 +|$(PYTHON_PKG_DIR)/twisted/enterprise
133 +|$(PYTHON_PKG_DIR)/twisted/im.py
134 +|$(PYTHON_PKG_DIR)/twisted/__init__.py
135 +|$(PYTHON_PKG_DIR)/twisted/internet
136 +|$(PYTHON_PKG_DIR)/twisted/manhole
137 +|$(PYTHON_PKG_DIR)/twisted/persisted
138 +|$(PYTHON_PKG_DIR)/twisted/plugin.py
139 +|$(PYTHON_PKG_DIR)/twisted/protocols
140 +|$(PYTHON_PKG_DIR)/twisted/python
141 +|$(PYTHON_PKG_DIR)/twisted/scripts
142 +|$(PYTHON_PKG_DIR)/twisted/spread
143 +|$(PYTHON_PKG_DIR)/twisted/tap
144 +|$(PYTHON_PKG_DIR)/twisted/trial
145 -|$(PYTHON_PKG_DIR)/twisted/trial/test
146 +|$(PYTHON_PKG_DIR)/twisted/_version.py
147 +|$(PYTHON_PKG_DIR)/twisted/plugins/dropin.cache
148 +|$(PYTHON_PKG_DIR)/twisted/plugins/__init__.py
149 +|$(PYTHON_PKG_DIR)/twisted/plugins/notestplugin.py
150 +|$(PYTHON_PKG_DIR)/twisted/plugins/testplugin.py
151 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_ftp.py
152 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_inet.py
153 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_manhole.py
154 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_portforward.py
155 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_reactors.py
156 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_socks.py
157 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_telnet.py
158 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_trial.py
161 define PyPackage/twisted-conch/filespec
162 +|$(PYTHON_PKG_DIR)/twisted/conch
163 -|$(PYTHON_PKG_DIR)/twisted/conch/test
164 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_conch.py
167 define PyPackage/twisted-lore/filespec
168 +|$(PYTHON_PKG_DIR)/twisted/lore
169 -|$(PYTHON_PKG_DIR)/twisted/lore/test
170 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_lore.py
173 define PyPackage/twisted-mail/filespec
174 +|$(PYTHON_PKG_DIR)/twisted/mail
175 -|$(PYTHON_PKG_DIR)/twisted/mail/test
176 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_mail.py
179 define PyPackage/twisted-names/filespec
180 +|$(PYTHON_PKG_DIR)/twisted/names
181 -|$(PYTHON_PKG_DIR)/twisted/names/test
182 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_names.py
185 define PyPackage/twisted-news/filespec
186 +|$(PYTHON_PKG_DIR)/twisted/news
187 -|$(PYTHON_PKG_DIR)/twisted/news/test
188 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_news.py
191 define PyPackage/twisted-runner/filespec
192 +|$(PYTHON_PKG_DIR)/twisted/runner
195 define PyPackage/twisted-web/filespec
196 +|$(PYTHON_PKG_DIR)/twisted/web
197 -|$(PYTHON_PKG_DIR)/twisted/web/test
198 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_web.py
201 define PyPackage/twisted-words/filespec
202 +|$(PYTHON_PKG_DIR)/twisted/words
203 -|$(PYTHON_PKG_DIR)/twisted/words/test
204 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_words.py
207 define PyPackage/zope-interface/filespec
208 +|$(PYTHON_PKG_DIR)/zope
209 -|$(PYTHON_PKG_DIR)/zope/interface/tests
213 $(call Build/Compile/PyMod,., \
214 install --prefix="$(PKG_INSTALL_DIR)/usr" --no-compile, \
215 TWISTED_SUBPROJECTS="$(TWISTED_SUBPROJECTS)" \
217 $(call Build/Compile/PyMod,zope.interface-$(ZOPE_IF_VER), \
218 install --prefix="$(PKG_INSTALL_DIR)/usr" --no-compile, \
220 $(SED) 's,#!$(PYTHON),#!/usr/bin/python,' $(PKG_INSTALL_DIR)/usr/bin/*
223 $(eval $(call PyPackage,twisted))
224 $(eval $(call PyPackage,twisted-conch))
225 $(eval $(call PyPackage,twisted-lore))
226 $(eval $(call PyPackage,twisted-mail))
227 $(eval $(call PyPackage,twisted-names))
228 $(eval $(call PyPackage,twisted-news))
229 $(eval $(call PyPackage,twisted-runner))
230 $(eval $(call PyPackage,twisted-web))
231 $(eval $(call PyPackage,twisted-words))
232 $(eval $(call PyPackage,zope-interface))