2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=Twisted-
$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://tmrc.mit.edu
/mirror
/twisted
/Twisted
/2.5
16 PKG_MD5SUM
:=56df2ae66db57932515a491c03bf514f
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/Twisted-
$(PKG_VERSION
)
19 PKG_BUILD_DEPENDS
:=python USE_UCLIBC
:librpc
21 include $(INCLUDE_DIR
)/package.mk
22 $(call include_mk
, python-package.mk
)
24 define Package
/twisted
/default
28 URL
:=http
://twistedmatrix.com
/
32 define Package
/twisted
/default
/description
33 Twisted is a networking engine written in Python
, supporting numerous
34 protocols. It contains a web server
, numerous chat clients
, chat servers
,
35 mail servers
, and more.
38 define Package
/twisted
39 $(call Package
/twisted
/default
)
40 TITLE
:=Python networking engine
41 DEPENDS
+= +zope-interface
44 define Package
/twisted-conch
45 $(call Package
/twisted
/default
)
46 TITLE
:=Twisted
- Conch
50 define Package
/twisted-lore
51 $(call Package
/twisted
/default
)
56 define Package
/twisted-mail
57 $(call Package
/twisted
/default
)
62 define Package
/twisted-names
63 $(call Package
/twisted
/default
)
64 TITLE
:=Twisted
- Names
68 define Package
/twisted-news
69 $(call Package
/twisted
/default
)
74 define Package
/twisted-runner
75 $(call Package
/twisted
/default
)
76 TITLE
:=Twisted
- Runner
80 define Package
/twisted-web
81 $(call Package
/twisted
/default
)
86 define Package
/twisted-words
87 $(call Package
/twisted
/default
)
88 TITLE
:=Twisted
- Words
92 define Package
/zope-interface
93 $(call Package
/twisted
/default
)
97 TWISTED_SUPPROJECTS
:=core
101 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-conch
),)
102 TWISTED_SUBPROJECTS
+=conch
104 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-lore
),)
105 TWISTED_SUBPROJECTS
+=lore
107 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-mail
),)
108 TWISTED_SUBPROJECTS
+=mail
110 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-names
),)
111 TWISTED_SUBPROJECTS
+=names
113 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-news
),)
114 TWISTED_SUBPROJECTS
+=news
116 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-runner
),)
117 TWISTED_SUBPROJECTS
+=runner
119 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-web
),)
120 TWISTED_SUBPROJECTS
+=web
122 ifneq ($(SDK
)$(CONFIG_PACKAGE_twisted-words
),)
123 TWISTED_SUBPROJECTS
+=words
127 define Build
/Configure
130 define PyPackage
/twisted
/filespec
133 +|
$(PYTHON_PKG_DIR
)/twisted
/application
134 +|
$(PYTHON_PKG_DIR
)/twisted
/copyright.py
135 +|
$(PYTHON_PKG_DIR
)/twisted
/cred
136 +|
$(PYTHON_PKG_DIR
)/twisted
/enterprise
137 +|
$(PYTHON_PKG_DIR
)/twisted
/im.py
138 +|
$(PYTHON_PKG_DIR
)/twisted
/__init__.py
139 +|
$(PYTHON_PKG_DIR
)/twisted
/internet
140 +|
$(PYTHON_PKG_DIR
)/twisted
/manhole
141 +|
$(PYTHON_PKG_DIR
)/twisted
/persisted
142 +|
$(PYTHON_PKG_DIR
)/twisted
/plugin.py
143 +|
$(PYTHON_PKG_DIR
)/twisted
/protocols
144 +|
$(PYTHON_PKG_DIR
)/twisted
/python
145 +|
$(PYTHON_PKG_DIR
)/twisted
/scripts
146 +|
$(PYTHON_PKG_DIR
)/twisted
/spread
147 +|
$(PYTHON_PKG_DIR
)/twisted
/tap
148 +|
$(PYTHON_PKG_DIR
)/twisted
/trial
149 -|
$(PYTHON_PKG_DIR
)/twisted
/trial
/test
150 +|
$(PYTHON_PKG_DIR
)/twisted
/_version.py
151 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/dropin.cache
152 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/__init__.py
153 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/notestplugin.py
154 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/testplugin.py
155 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_ftp.py
156 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_inet.py
157 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_manhole.py
158 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_portforward.py
159 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_reactors.py
160 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_socks.py
161 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_telnet.py
162 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_trial.py
165 define PyPackage
/twisted-conch
/filespec
166 +|
$(PYTHON_PKG_DIR
)/twisted
/conch
167 -|
$(PYTHON_PKG_DIR
)/twisted
/conch
/test
168 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_conch.py
171 define PyPackage
/twisted-lore
/filespec
172 +|
$(PYTHON_PKG_DIR
)/twisted
/lore
173 -|
$(PYTHON_PKG_DIR
)/twisted
/lore
/test
174 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_lore.py
177 define PyPackage
/twisted-mail
/filespec
178 +|
$(PYTHON_PKG_DIR
)/twisted
/mail
179 -|
$(PYTHON_PKG_DIR
)/twisted
/mail
/test
180 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_mail.py
183 define PyPackage
/twisted-names
/filespec
184 +|
$(PYTHON_PKG_DIR
)/twisted
/names
185 -|
$(PYTHON_PKG_DIR
)/twisted
/names
/test
186 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_names.py
189 define PyPackage
/twisted-news
/filespec
190 +|
$(PYTHON_PKG_DIR
)/twisted
/news
191 -|
$(PYTHON_PKG_DIR
)/twisted
/news
/test
192 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_news.py
195 define PyPackage
/twisted-runner
/filespec
196 +|
$(PYTHON_PKG_DIR
)/twisted
/runner
199 define PyPackage
/twisted-web
/filespec
200 +|
$(PYTHON_PKG_DIR
)/twisted
/web
201 -|
$(PYTHON_PKG_DIR
)/twisted
/web
/test
202 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_web.py
205 define PyPackage
/twisted-words
/filespec
206 +|
$(PYTHON_PKG_DIR
)/twisted
/words
207 -|
$(PYTHON_PKG_DIR
)/twisted
/words/test
208 +|
$(PYTHON_PKG_DIR
)/twisted
/plugins
/twisted_words.py
211 define PyPackage
/zope-interface
/filespec
212 +|
$(PYTHON_PKG_DIR
)/zope
213 -|
$(PYTHON_PKG_DIR
)/zope
/interface
/tests
217 $(if
$(Build
/Compile
/PyMod
),,@echo Python packaging code not found.
; false
)
218 $(call Build
/Compile
/PyMod
,.
, \
219 install --prefix="/usr" --root
="$(PKG_INSTALL_DIR)" --no-compile
, \
220 TWISTED_SUBPROJECTS
="$(TWISTED_SUBPROJECTS)" \
222 $(call Build
/Compile
/PyMod
,zope.interface-
$(ZOPE_IF_VER
), \
223 install --prefix="/usr" --root
="$(PKG_INSTALL_DIR)" --no-compile
, \
225 $(SED
) 's,#!$(PYTHON),#!/usr/bin/python,' $(PKG_INSTALL_DIR
)/usr
/bin
/*
228 $(eval
$(call PyPackage
,twisted
))
229 $(eval
$(call PyPackage
,twisted-conch
))
230 $(eval
$(call PyPackage
,twisted-lore
))
231 $(eval
$(call PyPackage
,twisted-mail
))
232 $(eval
$(call PyPackage
,twisted-names
))
233 $(eval
$(call PyPackage
,twisted-news
))
234 $(eval
$(call PyPackage
,twisted-runner
))
235 $(eval
$(call PyPackage
,twisted-web
))
236 $(eval
$(call PyPackage
,twisted-words
))
237 $(eval
$(call PyPackage
,zope-interface
))
239 $(eval
$(call BuildPackage
,twisted
))
240 $(eval
$(call BuildPackage
,twisted-conch
))
241 $(eval
$(call BuildPackage
,twisted-lore
))
242 $(eval
$(call BuildPackage
,twisted-mail
))
243 $(eval
$(call BuildPackage
,twisted-names
))
244 $(eval
$(call BuildPackage
,twisted-news
))
245 $(eval
$(call BuildPackage
,twisted-runner
))
246 $(eval
$(call BuildPackage
,twisted-web
))
247 $(eval
$(call BuildPackage
,twisted-words
))
248 $(eval
$(call BuildPackage
,zope-interface
))