packagegroup-net-ifupdown: remove
[opendreambox.git] / meta-opendreambox / recipes-devtools / python / python-twisted_12.0.0.bb
1 DESCRIPTION = "Twisted is an event-driven networking framework written in Python and licensed under the LGPL. \
2 Twisted supports TCP, UDP, SSL/TLS, multicast, Unix sockets, a large number of protocols                   \
3 (including HTTP, NNTP, IMAP, SSH, IRC, FTP, and others), and much more."
4 HOMEPAGE = "http://www.twistedmatrix.com"
5 SECTION = "console/network"
6
7 #twisted/topfiles/NEWS:655: - Relicensed: Now under the MIT license, rather than LGPL.
8 LICENSE = "MIT"
9 LIC_FILES_CHKSUM = "file://LICENSE;beginline=40;md5=3fced11d6df719b47505837a51c16ae5"
10
11 SRC_URI = "http://twistedmatrix.com/Releases/Twisted/12.0/Twisted-${PV}.tar.bz2"
12 SRC_URI[md5sum] = "cf49a8676c21c50faf1b42b528049471"
13 SRC_URI[sha256sum] = "e5561c9714583fd052ea9e0b10331609a719b3878f9d2593e4c57eab0ba0effd"
14
15 S = "${WORKDIR}/Twisted-${PV}"
16
17 inherit setuptools
18
19 do_install_append() {
20     # remove some useless files before packaging
21     find ${D} -name "*.bat" -o -name "*.c" -o -name "*.h" -exec rm {} \;
22 }
23
24 PACKAGES += "\
25   ${PN}-zsh \
26   ${PN}-test \
27   ${PN}-protocols \
28   ${PN}-bin \
29   ${PN}-conch \
30   ${PN}-lore \
31   ${PN}-mail \
32   ${PN}-names \
33   ${PN}-news \
34   ${PN}-runner \
35   ${PN}-web \
36   ${PN}-words \
37   ${PN}-flow \
38   ${PN}-pair \
39   ${PN}-core \
40 "
41
42 RDEPENDS_${PN} += "\
43   ${PN}-bin \
44   ${PN}-conch \
45   ${PN}-lore \
46   ${PN}-mail \
47   ${PN}-names \
48   ${PN}-news \
49   ${PN}-runner \
50   ${PN}-web \
51   ${PN}-words \
52 "
53
54 ALLOW_EMPTY_${PN} = "1"
55 FILES_${PN} = ""
56
57 FILES_${PN}-test = " \
58   ${libdir}/${PYTHON_DIR}/site-packages/twisted/test \
59   ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/test \
60 "
61 RDEPENDS_${PN}-test = "${PN}"
62
63 FILES_${PN}-protocols = " \
64   ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/ \
65 "
66
67 FILES_${PN}-zsh = " \
68   ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zsh \
69   ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zshcomp.* \
70 "
71
72 FILES_${PN}-bin = " \
73   ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/_c_urlarg.so \
74   ${libdir}/${PYTHON_DIR}/site-packages/twisted/spread/cBanana.so \
75 "
76
77 FILES_${PN}-conch = " \
78   ${bindir}/ckeygen \
79   ${bindir}/tkconch \
80   ${bindir}/conch \
81   ${bindir}/conchftp \
82   ${bindir}/cftp \
83   ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_conch.py* \
84   ${libdir}/${PYTHON_DIR}/site-packages/twisted/conch  \
85 "
86 RDEPENDS_${PN}-conch = "${PN}-core ${PN}-protocols"
87
88 FILES_${PN}-core = " \
89 ${bindir}/manhole \
90 ${bindir}/mktap \
91 ${bindir}/twistd \
92 ${bindir}/tap2deb \
93 ${bindir}/tap2rpm \
94 ${bindir}/tapconvert \
95 ${bindir}/tkmktap \
96 ${bindir}/trial \
97 ${bindir}/easy_install* \
98 ${bindir}/pyhtmlizer \
99 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py* \
100 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__init__.py* \
101 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/notestplugin.py* \
102 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/testplugin.py* \
103 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_ftp.py* \
104 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_inet.py* \
105 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_manhole.py* \
106 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_portforward.py* \
107 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_socks.py* \
108 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_telnet.py* \
109 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_trial.py* \
110 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/dropin.cache \
111 ${libdir}/${PYTHON_DIR}/site-packages/twisted/application \
112 ${libdir}/${PYTHON_DIR}/site-packages/twisted/cred \
113 ${libdir}/${PYTHON_DIR}/site-packages/twisted/enterprise \
114 ${libdir}/${PYTHON_DIR}/site-packages/twisted/internet \
115 ${libdir}/${PYTHON_DIR}/site-packages/twisted/manhole \
116 ${libdir}/${PYTHON_DIR}/site-packages/twisted/manhole \
117 ${libdir}/${PYTHON_DIR}/site-packages/twisted/persisted \
118 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols\
119 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python\
120 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/timeoutqueue.py* \
121 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/filepath.py* \
122 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dxprofile.py* \
123 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/plugin.py* \
124 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/htmlizer.py* \
125 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/__init__.py* \
126 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dispatch.py* \
127 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/hook.py* \
128 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/threadpool.py* \
129 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/otp.py* \
130 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/usage.py* \
131 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/roots.py* \
132 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/versions.py* \
133 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/urlpath.py* \
134 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/util.py* \
135 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/components.py* \
136 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/logfile.py* \
137 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/runtime.py* \
138 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/reflect.py* \
139 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/context.py* \
140 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/threadable.py* \
141 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/rebuild.py* \
142 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/failure.py* \
143 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/lockfile.py* \
144 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/formmethod.py* \
145 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/finalize.py* \
146 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/win32.py* \
147 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dist.py* \
148 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/shortcut.py* \
149 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zipstream.py* \
150 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/release.py* \
151 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/syslog.py* \
152 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/log.py* \
153 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/compat.py* \
154 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zshcomp.py* \
155 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/procutils.py* \
156 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/text.py* \
157 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_twisted_zsh_stub \
158 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_epoll.so \
159 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_initgroups.so \
160 ${libdir}/${PYTHON_DIR}/site-packages/twisted/scripts/ \
161 ${libdir}/${PYTHON_DIR}/site-packages/twisted/spread/ \
162 ${libdir}/${PYTHON_DIR}/site-packages/twisted/tap/ \
163 ${libdir}/${PYTHON_DIR}/site-packages/twisted/trial/ \
164 ${libdir}/${PYTHON_DIR}/site-packages/twisted/__init__.py* \
165 ${libdir}/${PYTHON_DIR}/site-packages/twisted/_version.py* \
166 ${libdir}/${PYTHON_DIR}/site-packages/twisted/copyright.py* \
167 ${libdir}/${PYTHON_DIR}/site-packages/twisted/im.py* \
168 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py* \
169 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/*.py* \
170 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/*.py* \
171 "
172 RDEPENDS_${PN}-core = "python-core python-zopeinterface"
173
174 FILES_${PN}-lore = " \
175 ${bindir}/bookify \
176 ${bindir}/lore \
177 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_lore.py* \
178 ${libdir}/${PYTHON_DIR}/site-packages/twisted/lore \
179 "
180 RDEPENDS_${PN}-lore = "${PN}-core"
181
182 FILES_${PN}-mail = " \
183 ${bindir}/mailmail \
184 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_mail.py* \
185 ${libdir}/${PYTHON_DIR}/site-packages/twisted/mail \
186 "
187 RDEPENDS_${PN}-mail = "${PN}-core ${PN}-protocols"
188
189 FILES_${PN}-names = " \
190 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_names.py* \
191 ${libdir}/${PYTHON_DIR}/site-packages/twisted/names \
192 "
193 RDEPENDS_${PN}-names = "${PN}-core"
194
195 FILES_${PN}-news = " \
196 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_news.py* \
197 ${libdir}/${PYTHON_DIR}/site-packages/twisted/news \
198 "
199 RDEPENDS_${PN}-news = "${PN}-core ${PN}-protocols"
200
201 FILES_${PN}-runner = " \
202 ${libdir}/site-packages/twisted/runner/portmap.so \
203 ${libdir}/${PYTHON_DIR}/site-packages/twisted/runner\
204 "
205 RDEPENDS_${PN}-runner = "${PN}-core ${PN}-protocols"
206
207 FILES_${PN}-web = " \
208 ${bindir}/websetroot \
209 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_web.py* \
210 ${libdir}/${PYTHON_DIR}/site-packages/twisted/web\
211 "
212 RDEPENDS_${PN}-web += "${PN}-core ${PN}-protocols"
213
214 FILES_${PN}-words = " \
215 ${bindir}/im \
216 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_words.py* \
217 ${libdir}/${PYTHON_DIR}/site-packages/twisted/words\
218 "
219 RDEPENDS_${PN}-words += "${PN}-core"
220
221 FILES_${PN}-flow = " \
222 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_flow.py* \
223 ${libdir}/${PYTHON_DIR}/site-packages/twisted/flow \"
224 RDEPENDS_${PN}-flow += "${PN}-core"
225
226 FILES_${PN}-pair = " \
227 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_pair.py* \
228 ${libdir}/${PYTHON_DIR}/site-packages/twisted/pair \
229 "
230 RDEPENDS_${PN}-pair += "${PN}-core"
231
232 FILES_${PN}-dbg += " \
233 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/.debug \
234 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*/.debug \
235 "
236 RDEPENDS_${PN}-dbg = "${PN}"