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
)
91 DESCRIPTION
:=zope-interface
94 TWISTED_SUPPROJECTS
:=core
98 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-conch
),)
99 TWISTED_SUBPROJECTS
+=conch
101 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-lore
),)
102 TWISTED_SUBPROJECTS
+=lore
104 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-mail
),)
105 TWISTED_SUBPROJECTS
+=mail
107 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-names
),)
108 TWISTED_SUBPROJECTS
+=names
110 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-news
),)
111 TWISTED_SUBPROJECTS
+=news
113 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-runner
),)
114 TWISTED_SUBPROJECTS
+=runner
116 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-web
),)
117 TWISTED_SUBPROJECTS
+=web
119 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-words
),)
120 TWISTED_SUBPROJECTS
+=words
124 define Build
/Configure
127 define PyPackage
/twisted
/filespec
130 +|
$(PYTHON_PKG_DIR
)/twisted
/application
131 +|
$(PYTHON_PKG_DIR
)/twisted
/copyright.py
132 +|
$(PYTHON_PKG_DIR
)/twisted
/cred
133 +|
$(PYTHON_PKG_DIR
)/twisted
/enterprise
134 +|
$(PYTHON_PKG_DIR
)/twisted
/im.py
135 +|
$(PYTHON_PKG_DIR
)/twisted
/__init__.py
136 +|
$(PYTHON_PKG_DIR
)/twisted
/internet
137 +|
$(PYTHON_PKG_DIR
)/twisted
/manhole
138 +|
$(PYTHON_PKG_DIR
)/twisted
/persisted
139 +|
$(PYTHON_PKG_DIR
)/twisted
/plugin.py
140 +|
$(PYTHON_PKG_DIR
)/twisted
/protocols
141 +|
$(PYTHON_PKG_DIR
)/twisted
/python
142 +|
$(PYTHON_PKG_DIR
)/twisted
/scripts
143 +|
$(PYTHON_PKG_DIR
)/twisted
/spread
144 +|
$(PYTHON_PKG_DIR
)/twisted
/tap
145 +|
$(PYTHON_PKG_DIR
)/twisted
/trial
146 -|
$(PYTHON_PKG_DIR
)/twisted
/trial
/test
147 +|
$(PYTHON_PKG_DIR
)/twisted
/_version.py
148 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/dropin.cache
149 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/__init__.py
150 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/notestplugin.py
151 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/testplugin.py
152 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_ftp.py
153 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_inet.py
154 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_manhole.py
155 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_portforward.py
156 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_reactors.py
157 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_socks.py
158 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_telnet.py
159 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_trial.py
162 define PyPackage
/twisted-conch
/filespec
163 +|
$(PYTHON_PKG_DIR
)/twisted
/conch
164 -|
$(PYTHON_PKG_DIR
)/twisted
/conch
/test
165 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_conch.py
168 define PyPackage
/twisted-lore
/filespec
169 +|
$(PYTHON_PKG_DIR
)/twisted
/lore
170 -|
$(PYTHON_PKG_DIR
)/twisted
/lore
/test
171 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_lore.py
174 define PyPackage
/twisted-mail
/filespec
175 +|
$(PYTHON_PKG_DIR
)/twisted
/mail
176 -|
$(PYTHON_PKG_DIR
)/twisted
/mail
/test
177 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_mail.py
180 define PyPackage
/twisted-names
/filespec
181 +|
$(PYTHON_PKG_DIR
)/twisted
/names
182 -|
$(PYTHON_PKG_DIR
)/twisted
/names
/test
183 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_names.py
186 define PyPackage
/twisted-news
/filespec
187 +|
$(PYTHON_PKG_DIR
)/twisted
/news
188 -|
$(PYTHON_PKG_DIR
)/twisted
/news
/test
189 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_news.py
192 define PyPackage
/twisted-runner
/filespec
193 +|
$(PYTHON_PKG_DIR
)/twisted
/runner
196 define PyPackage
/twisted-web
/filespec
197 +|
$(PYTHON_PKG_DIR
)/twisted
/web
198 -|
$(PYTHON_PKG_DIR
)/twisted
/web
/test
199 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_web.py
202 define PyPackage
/twisted-words
/filespec
203 +|
$(PYTHON_PKG_DIR
)/twisted
/words
204 -|
$(PYTHON_PKG_DIR
)/twisted
/words/test
205 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_words.py
208 define PyPackage
/zope-interface
/filespec
209 +|
$(PYTHON_PKG_DIR
)/zope
210 -|
$(PYTHON_PKG_DIR
)/zope
/interface
/tests
214 $(call Build
/Compile
/PyMod
,.
, \
215 install --prefix="$(PKG_INSTALL_DIR)/usr" --no-compile
, \
216 TWISTED_SUBPROJECTS
="$(TWISTED_SUBPROJECTS)" \
218 $(call Build
/Compile
/PyMod
,zope.interface-
$(ZOPE_IF_VER
), \
219 install --prefix="$(PKG_INSTALL_DIR)/usr" --no-compile
, \
221 $(SED
) 's,#!$(PYTHON),#!/usr/bin/python,' $(PKG_INSTALL_DIR
)/usr
/bin
/*
224 $(eval
$(call PyPackage
,twisted
))
225 $(eval
$(call PyPackage
,twisted-conch
))
226 $(eval
$(call PyPackage
,twisted-lore
))
227 $(eval
$(call PyPackage
,twisted-mail
))
228 $(eval
$(call PyPackage
,twisted-names
))
229 $(eval
$(call PyPackage
,twisted-news
))
230 $(eval
$(call PyPackage
,twisted-runner
))
231 $(eval
$(call PyPackage
,twisted-web
))
232 $(eval
$(call PyPackage
,twisted-words
))
233 $(eval
$(call PyPackage
,zope-interface
))