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
)
37 TITLE
:=Python networking engine
38 DEPENDS
+= +zope-interface
41 define PyPackage
/twisted-conch
42 $(call PyPackage
/twisted
/default
)
43 TITLE
:=Twisted
- Conch
47 define PyPackage
/twisted-lore
48 $(call PyPackage
/twisted
/default
)
53 define PyPackage
/twisted-mail
54 $(call PyPackage
/twisted
/default
)
59 define PyPackage
/twisted-names
60 $(call PyPackage
/twisted
/default
)
61 TITLE
:=Twisted
- Names
65 define PyPackage
/twisted-news
66 $(call PyPackage
/twisted
/default
)
71 define PyPackage
/twisted-runner
72 $(call PyPackage
/twisted
/default
)
73 TITLE
:=Twisted
- Runner
77 define PyPackage
/twisted-web
78 $(call PyPackage
/twisted
/default
)
83 define PyPackage
/twisted-words
84 $(call PyPackage
/twisted
/default
)
85 TITLE
:=Twisted
- Words
89 define PyPackage
/zope-interface
90 $(call PyPackage
/twisted
/default
)
92 DESCRIPTION
:=zope-interface
95 TWISTED_SUPPROJECTS
:=core
99 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-conch
),)
100 TWISTED_SUBPROJECTS
+=conch
102 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-lore
),)
103 TWISTED_SUBPROJECTS
+=lore
105 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-mail
),)
106 TWISTED_SUBPROJECTS
+=mail
108 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-names
),)
109 TWISTED_SUBPROJECTS
+=names
111 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-news
),)
112 TWISTED_SUBPROJECTS
+=news
114 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-runner
),)
115 TWISTED_SUBPROJECTS
+=runner
117 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-web
),)
118 TWISTED_SUBPROJECTS
+=web
120 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-words
),)
121 TWISTED_SUBPROJECTS
+=words
125 define Build
/Configure
128 define PyPackage
/twisted
/filespec
131 +|
$(PYTHON_PKG_DIR
)/twisted
/application
132 +|
$(PYTHON_PKG_DIR
)/twisted
/copyright.py
133 +|
$(PYTHON_PKG_DIR
)/twisted
/cred
134 +|
$(PYTHON_PKG_DIR
)/twisted
/enterprise
135 +|
$(PYTHON_PKG_DIR
)/twisted
/im.py
136 +|
$(PYTHON_PKG_DIR
)/twisted
/__init__.py
137 +|
$(PYTHON_PKG_DIR
)/twisted
/internet
138 +|
$(PYTHON_PKG_DIR
)/twisted
/manhole
139 +|
$(PYTHON_PKG_DIR
)/twisted
/persisted
140 +|
$(PYTHON_PKG_DIR
)/twisted
/plugin.py
141 +|
$(PYTHON_PKG_DIR
)/twisted
/protocols
142 +|
$(PYTHON_PKG_DIR
)/twisted
/python
143 +|
$(PYTHON_PKG_DIR
)/twisted
/scripts
144 +|
$(PYTHON_PKG_DIR
)/twisted
/spread
145 +|
$(PYTHON_PKG_DIR
)/twisted
/tap
146 +|
$(PYTHON_PKG_DIR
)/twisted
/trial
147 -|
$(PYTHON_PKG_DIR
)/twisted
/trial
/test
148 +|
$(PYTHON_PKG_DIR
)/twisted
/_version.py
149 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/dropin.cache
150 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/__init__.py
151 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/notestplugin.py
152 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/testplugin.py
153 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_ftp.py
154 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_inet.py
155 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_manhole.py
156 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_portforward.py
157 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_reactors.py
158 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_socks.py
159 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_telnet.py
160 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_trial.py
163 define PyPackage
/twisted-conch
/filespec
164 +|
$(PYTHON_PKG_DIR
)/twisted
/conch
165 -|
$(PYTHON_PKG_DIR
)/twisted
/conch
/test
166 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_conch.py
169 define PyPackage
/twisted-lore
/filespec
170 +|
$(PYTHON_PKG_DIR
)/twisted
/lore
171 -|
$(PYTHON_PKG_DIR
)/twisted
/lore
/test
172 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_lore.py
175 define PyPackage
/twisted-mail
/filespec
176 +|
$(PYTHON_PKG_DIR
)/twisted
/mail
177 -|
$(PYTHON_PKG_DIR
)/twisted
/mail
/test
178 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_mail.py
181 define PyPackage
/twisted-names
/filespec
182 +|
$(PYTHON_PKG_DIR
)/twisted
/names
183 -|
$(PYTHON_PKG_DIR
)/twisted
/names
/test
184 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_names.py
187 define PyPackage
/twisted-news
/filespec
188 +|
$(PYTHON_PKG_DIR
)/twisted
/news
189 -|
$(PYTHON_PKG_DIR
)/twisted
/news
/test
190 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_news.py
193 define PyPackage
/twisted-runner
/filespec
194 +|
$(PYTHON_PKG_DIR
)/twisted
/runner
197 define PyPackage
/twisted-web
/filespec
198 +|
$(PYTHON_PKG_DIR
)/twisted
/web
199 -|
$(PYTHON_PKG_DIR
)/twisted
/web
/test
200 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_web.py
203 define PyPackage
/twisted-words
/filespec
204 +|
$(PYTHON_PKG_DIR
)/twisted
/words
205 -|
$(PYTHON_PKG_DIR
)/twisted
/words/test
206 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_words.py
209 define PyPackage
/zope-interface
/filespec
210 +|
$(PYTHON_PKG_DIR
)/zope
211 -|
$(PYTHON_PKG_DIR
)/zope
/interface
/tests
215 $(call Build
/Compile
/PyMod
,.
, \
216 install --prefix="$(PKG_INSTALL_DIR)/usr" --no-compile
, \
217 TWISTED_SUBPROJECTS
="$(TWISTED_SUBPROJECTS)" \
219 $(call Build
/Compile
/PyMod
,zope.interface-
$(ZOPE_IF_VER
), \
220 install --prefix="$(PKG_INSTALL_DIR)/usr" --no-compile
, \
222 $(SED
) 's,#!$(PYTHON),#!/usr/bin/python,' $(PKG_INSTALL_DIR
)/usr
/bin
/*
225 $(eval
$(call PyPackage
,twisted
))
226 $(eval
$(call PyPackage
,twisted-conch
))
227 $(eval
$(call PyPackage
,twisted-lore
))
228 $(eval
$(call PyPackage
,twisted-mail
))
229 $(eval
$(call PyPackage
,twisted-names
))
230 $(eval
$(call PyPackage
,twisted-news
))
231 $(eval
$(call PyPackage
,twisted-runner
))
232 $(eval
$(call PyPackage
,twisted-web
))
233 $(eval
$(call PyPackage
,twisted-words
))
234 $(eval
$(call PyPackage
,zope-interface
))