opendreambox.conf: bump distro version to 2.4
[opendreambox.git] / meta-opendreambox / recipes-devtools / python / python-twisted_14.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;md5=872e64ea61a612636eeec7a18af1323b"
10
11 SRC_URI = "https://pypi.python.org/packages/source/T/Twisted/Twisted-${PV}.tar.bz2"
12 SRC_URI[md5sum] = "9625c094e0a18da77faa4627b98c9815"
13 SRC_URI[sha256sum] = "bdfd961ac2216f5c65b07f2c3a5e5116f6713b8c1cf076c40010c64810d26963"
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 -f {} \;
22 }
23
24 PACKAGES += "\
25     ${PN}-zsh \
26     ${PN}-test \
27     ${PN}-conch \
28     ${PN}-lore \
29     ${PN}-mail \
30     ${PN}-names \
31     ${PN}-news \
32     ${PN}-runner \
33     ${PN}-web \
34     ${PN}-words \
35     ${PN}-flow \
36     ${PN}-pair \
37     ${PN}-positioning \
38     ${PN}-core \
39 "
40
41 RDEPENDS_${PN} = "\
42     ${PN}-conch \
43     ${PN}-lore \
44     ${PN}-mail \
45     ${PN}-names \
46     ${PN}-news \
47     ${PN}-runner \
48     ${PN}-web \
49     ${PN}-words \
50 "
51
52 RDEPENDS_${PN}-core = "python-compression python-core python-numbers python-zopeinterface"
53
54 RDEPENDS_${PN}-conch = "${PN}-core python-pycrypto python-pyasn1"
55 RDEPENDS_${PN}-flow  = "${PN}-core"
56 RDEPENDS_${PN}-lore = "${PN}-web"
57 RDEPENDS_${PN}-mail = "${PN}-core python-pyopenssl"
58 RDEPENDS_${PN}-names = "${PN}-core"
59 RDEPENDS_${PN}-news = "${PN}-core"
60 RDEPENDS_${PN}-pair = "${PN}-core"
61 RDEPENDS_${PN}-positioning = "${PN}-core"
62 RDEPENDS_${PN}-runner = "${PN}-core"
63 RDEPENDS_${PN}-web = "${PN}-core"
64 RDEPENDS_${PN}-words = "${PN}-core python-pyopenssl"
65
66 ALLOW_EMPTY_${PN} = "1"
67 FILES_${PN} = ""
68
69 FILES_${PN}-test = " \
70     ${libdir}/${PYTHON_DIR}/site-packages/twisted/test \
71     ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/test \
72 "
73
74 FILES_${PN}-zsh = " \
75     ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zsh \
76     ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zshcomp.* \
77     ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/twisted-completion.zsh \
78 "
79
80 FILES_${PN}-conch = " \
81     ${bindir}/ckeygen \
82     ${bindir}/tkconch \
83     ${bindir}/conch \
84     ${bindir}/conchftp \
85     ${bindir}/cftp \
86     ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_conch.py* \
87     ${libdir}/${PYTHON_DIR}/site-packages/twisted/conch  \
88 "
89
90 FILES_${PN}-core = " \
91 ${bindir}/manhole \
92 ${bindir}/mktap \
93 ${bindir}/twistd \
94 ${bindir}/tap2deb \
95 ${bindir}/tap2rpm \
96 ${bindir}/tapconvert \
97 ${bindir}/tkmktap \
98 ${bindir}/trial \
99 ${bindir}/easy_install* \
100 ${bindir}/pyhtmlizer \
101 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/*.so \
102 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py* \
103 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__init__.py* \
104 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/notestplugin.py* \
105 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/testplugin.py* \
106 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_ftp.py* \
107 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_inet.py* \
108 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_manhole.py* \
109 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_portforward.py* \
110 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_socks.py* \
111 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_telnet.py* \
112 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_trial.py* \
113 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/dropin.cache \
114 ${libdir}/${PYTHON_DIR}/site-packages/twisted/application \
115 ${libdir}/${PYTHON_DIR}/site-packages/twisted/cred \
116 ${libdir}/${PYTHON_DIR}/site-packages/twisted/enterprise \
117 ${libdir}/${PYTHON_DIR}/site-packages/twisted/internet \
118 ${libdir}/${PYTHON_DIR}/site-packages/twisted/manhole \
119 ${libdir}/${PYTHON_DIR}/site-packages/twisted/manhole \
120 ${libdir}/${PYTHON_DIR}/site-packages/twisted/persisted \
121 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols \
122 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python \
123 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/timeoutqueue.py* \
124 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/filepath.py* \
125 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dxprofile.py* \
126 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/plugin.py* \
127 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/htmlizer.py* \
128 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/__init__.py* \
129 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dispatch.py* \
130 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/hook.py* \
131 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/threadpool.py* \
132 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/otp.py* \
133 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/usage.py* \
134 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/roots.py* \
135 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/versions.py* \
136 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/urlpath.py* \
137 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/util.py* \
138 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/components.py* \
139 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/logfile.py* \
140 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/runtime.py* \
141 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/reflect.py* \
142 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/context.py* \
143 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/threadable.py* \
144 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/rebuild.py* \
145 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/failure.py* \
146 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/lockfile.py* \
147 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/formmethod.py* \
148 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/finalize.py* \
149 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/win32.py* \
150 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dist.py* \
151 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/shortcut.py* \
152 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zipstream.py* \
153 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/release.py* \
154 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/syslog.py* \
155 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/log.py* \
156 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/compat.py* \
157 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zshcomp.py* \
158 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/procutils.py* \
159 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/text.py* \
160 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_twisted_zsh_stub \
161 ${libdir}/${PYTHON_DIR}/site-packages/twisted/scripts/ \
162 ${libdir}/${PYTHON_DIR}/site-packages/twisted/spread/ \
163 ${libdir}/${PYTHON_DIR}/site-packages/twisted/tap/ \
164 ${libdir}/${PYTHON_DIR}/site-packages/twisted/trial/ \
165 ${libdir}/${PYTHON_DIR}/site-packages/twisted/__init__.py* \
166 ${libdir}/${PYTHON_DIR}/site-packages/twisted/_version.py* \
167 ${libdir}/${PYTHON_DIR}/site-packages/twisted/copyright.py* \
168 ${libdir}/${PYTHON_DIR}/site-packages/twisted/im.py* \
169 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py* \
170 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/*.py* \
171 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/*.py* \
172 ${libdir}/${PYTHON_DIR}/site-packages/twisted/topfiles \
173 ${libdir}/${PYTHON_DIR}/site-packages/Twisted*egg-info \
174 "
175
176 FILES_${PN}-lore = " \
177 ${bindir}/bookify \
178 ${bindir}/lore \
179 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_lore.py* \
180 ${libdir}/${PYTHON_DIR}/site-packages/twisted/lore \
181 "
182
183 FILES_${PN}-mail = " \
184 ${bindir}/mailmail \
185 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_mail.py* \
186 ${libdir}/${PYTHON_DIR}/site-packages/twisted/mail \
187 "
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
194 FILES_${PN}-news = " \
195 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_news.py* \
196 ${libdir}/${PYTHON_DIR}/site-packages/twisted/news \
197 "
198
199 FILES_${PN}-runner = " \
200 ${libdir}/site-packages/twisted/runner/portmap.so \
201 ${libdir}/${PYTHON_DIR}/site-packages/twisted/runner\
202 "
203
204 FILES_${PN}-web = " \
205 ${bindir}/websetroot \
206 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_web.py* \
207 ${libdir}/${PYTHON_DIR}/site-packages/twisted/web\
208 "
209
210 FILES_${PN}-words = " \
211 ${bindir}/im \
212 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_words.py* \
213 ${libdir}/${PYTHON_DIR}/site-packages/twisted/words\
214 "
215
216 FILES_${PN}-flow = " \
217 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_flow.py* \
218 ${libdir}/${PYTHON_DIR}/site-packages/twisted/flow \"
219
220 FILES_${PN}-pair = " \
221 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_pair.py* \
222 ${libdir}/${PYTHON_DIR}/site-packages/twisted/pair \
223 "
224
225 FILES_${PN}-positioning = " \
226 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_positioning.py* \
227 ${libdir}/${PYTHON_DIR}/site-packages/twisted/positioning \
228 "
229
230 FILES_${PN}-dbg += " \
231 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/.debug \
232 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*/.debug \
233 "
234
235 RPROVIDES_${PN}-core = "${PN}-protocols"
236 RREPLACES_${PN}-core = "${PN}-protocols"
237 RCONFLICTS_${PN}-core = "${PN}-protocols"