opkg: hopefully improve conflicts handling, link statically
[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 PR = "r1"
17
18 inherit setuptools
19
20 do_install_append() {
21     # remove some useless files before packaging
22     find ${D} -name "*.bat" -o -name "*.c" -o -name "*.h" -exec rm {} \;
23 }
24
25 PACKAGES += "\
26   ${PN}-zsh \
27   ${PN}-test \
28   ${PN}-protocols \
29   ${PN}-bin \
30   ${PN}-conch \
31   ${PN}-lore \
32   ${PN}-mail \
33   ${PN}-names \
34   ${PN}-news \
35   ${PN}-runner \
36   ${PN}-web \
37   ${PN}-words \
38   ${PN}-flow \
39   ${PN}-pair \
40   ${PN}-core \
41 "
42
43 RDEPENDS_${PN} += "\
44   ${PN}-bin \
45   ${PN}-conch \
46   ${PN}-lore \
47   ${PN}-mail \
48   ${PN}-names \
49   ${PN}-news \
50   ${PN}-runner \
51   ${PN}-web \
52   ${PN}-words \
53 "
54
55 ALLOW_EMPTY_${PN} = "1"
56 FILES_${PN} = ""
57
58 FILES_${PN}-test = " \
59   ${libdir}/${PYTHON_DIR}/site-packages/twisted/test \
60   ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/test \
61 "
62 RDEPENDS_${PN}-test = "${PN}"
63
64 FILES_${PN}-protocols = " \
65   ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/ \
66 "
67
68 FILES_${PN}-zsh = " \
69   ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zsh \
70   ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zshcomp.* \
71 "
72
73 FILES_${PN}-bin = " \
74   ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/_c_urlarg.so \
75   ${libdir}/${PYTHON_DIR}/site-packages/twisted/spread/cBanana.so \
76 "
77
78 FILES_${PN}-conch = " \
79   ${bindir}/ckeygen \
80   ${bindir}/tkconch \
81   ${bindir}/conch \
82   ${bindir}/conchftp \
83   ${bindir}/cftp \
84   ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_conch.py* \
85   ${libdir}/${PYTHON_DIR}/site-packages/twisted/conch  \
86 "
87 RDEPENDS_${PN}-conch = "${PN}-core ${PN}-protocols"
88
89 FILES_${PN}-core = " \
90 ${bindir}/manhole \
91 ${bindir}/mktap \
92 ${bindir}/twistd \
93 ${bindir}/tap2deb \
94 ${bindir}/tap2rpm \
95 ${bindir}/tapconvert \
96 ${bindir}/tkmktap \
97 ${bindir}/trial \
98 ${bindir}/easy_install* \
99 ${bindir}/pyhtmlizer \
100 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py* \
101 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__init__.py* \
102 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/notestplugin.py* \
103 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/testplugin.py* \
104 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_ftp.py* \
105 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_inet.py* \
106 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_manhole.py* \
107 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_portforward.py* \
108 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_socks.py* \
109 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_telnet.py* \
110 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_trial.py* \
111 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/dropin.cache \
112 ${libdir}/${PYTHON_DIR}/site-packages/twisted/application \
113 ${libdir}/${PYTHON_DIR}/site-packages/twisted/cred \
114 ${libdir}/${PYTHON_DIR}/site-packages/twisted/enterprise \
115 ${libdir}/${PYTHON_DIR}/site-packages/twisted/internet \
116 ${libdir}/${PYTHON_DIR}/site-packages/twisted/manhole \
117 ${libdir}/${PYTHON_DIR}/site-packages/twisted/manhole \
118 ${libdir}/${PYTHON_DIR}/site-packages/twisted/persisted \
119 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols\
120 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python\
121 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/timeoutqueue.py* \
122 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/filepath.py* \
123 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dxprofile.py* \
124 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/plugin.py* \
125 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/htmlizer.py* \
126 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/__init__.py* \
127 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dispatch.py* \
128 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/hook.py* \
129 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/threadpool.py* \
130 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/otp.py* \
131 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/usage.py* \
132 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/roots.py* \
133 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/versions.py* \
134 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/urlpath.py* \
135 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/util.py* \
136 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/components.py* \
137 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/logfile.py* \
138 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/runtime.py* \
139 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/reflect.py* \
140 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/context.py* \
141 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/threadable.py* \
142 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/rebuild.py* \
143 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/failure.py* \
144 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/lockfile.py* \
145 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/formmethod.py* \
146 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/finalize.py* \
147 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/win32.py* \
148 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dist.py* \
149 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/shortcut.py* \
150 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zipstream.py* \
151 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/release.py* \
152 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/syslog.py* \
153 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/log.py* \
154 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/compat.py* \
155 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zshcomp.py* \
156 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/procutils.py* \
157 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/text.py* \
158 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_twisted_zsh_stub \
159 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_epoll.so \
160 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_initgroups.so \
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 "
173 RDEPENDS_${PN}-core = "python-core python-zopeinterface"
174
175 FILES_${PN}-lore = " \
176 ${bindir}/bookify \
177 ${bindir}/lore \
178 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_lore.py* \
179 ${libdir}/${PYTHON_DIR}/site-packages/twisted/lore \
180 "
181 RDEPENDS_${PN}-lore = "${PN}-core"
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 RDEPENDS_${PN}-mail = "${PN}-core ${PN}-protocols"
189
190 FILES_${PN}-names = " \
191 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_names.py* \
192 ${libdir}/${PYTHON_DIR}/site-packages/twisted/names \
193 "
194 RDEPENDS_${PN}-names = "${PN}-core"
195
196 FILES_${PN}-news = " \
197 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_news.py* \
198 ${libdir}/${PYTHON_DIR}/site-packages/twisted/news \
199 "
200 RDEPENDS_${PN}-news = "${PN}-core ${PN}-protocols"
201
202 FILES_${PN}-runner = " \
203 ${libdir}/site-packages/twisted/runner/portmap.so \
204 ${libdir}/${PYTHON_DIR}/site-packages/twisted/runner\
205 "
206 RDEPENDS_${PN}-runner = "${PN}-core ${PN}-protocols"
207
208 FILES_${PN}-web = " \
209 ${bindir}/websetroot \
210 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_web.py* \
211 ${libdir}/${PYTHON_DIR}/site-packages/twisted/web\
212 "
213 RDEPENDS_${PN}-web += "${PN}-core ${PN}-protocols"
214
215 FILES_${PN}-words = " \
216 ${bindir}/im \
217 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_words.py* \
218 ${libdir}/${PYTHON_DIR}/site-packages/twisted/words\
219 "
220 RDEPENDS_${PN}-words += "${PN}-core"
221
222 FILES_${PN}-flow = " \
223 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_flow.py* \
224 ${libdir}/${PYTHON_DIR}/site-packages/twisted/flow \"
225 RDEPENDS_${PN}-flow += "${PN}-core"
226
227 FILES_${PN}-pair = " \
228 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_pair.py* \
229 ${libdir}/${PYTHON_DIR}/site-packages/twisted/pair \
230 "
231 RDEPENDS_${PN}-pair += "${PN}-core"
232
233 FILES_${PN}-dbg += " \
234 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/.debug \
235 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*/.debug \
236 "
237 RDEPENDS_${PN}-dbg = "${PN}"