blob: 01616b168b7bcb8c5768a89d3b7ba6d802bc49c9 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001DESCRIPTION = "Twisted is an event-driven networking framework written in Python and licensed under the LGPL. \
2Twisted 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."
4HOMEPAGE = "http://www.twistedmatrix.com"
5
6#twisted/topfiles/NEWS:655: - Relicensed: Now under the MIT license, rather than LGPL.
7LICENSE = "MIT"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08008LIC_FILES_CHKSUM = "file://LICENSE;md5=04e7730aecedc79d805625a91bc06145"
Brad Bishopd7bf8c12018-02-25 22:55:05 -05009
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080010SRC_URI[sha256sum] = "a4cc164a781859c74de47f17f0e85f4bce8a3321a9d0892c015c8f80c4158ad9"
11SRC_URI[md5sum] = "da8142ad4e9971a75fe751ac96a33b95"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050012
13PYPI_PACKAGE = "Twisted"
14PYPI_PACKAGE_EXT = "tar.bz2"
15
16do_install_append() {
17 # remove some useless files before packaging
18 find ${D} \( -name "*.bat" -o -name "*.c" -o -name "*.h" \) -exec rm -f {} \;
19}
20
21PACKAGES += "\
22 ${PN}-zsh \
23 ${PN}-test \
24 ${PN}-protocols \
25 ${PN}-conch \
26 ${PN}-mail \
27 ${PN}-names \
28 ${PN}-news \
29 ${PN}-runner \
30 ${PN}-web \
31 ${PN}-words \
32 ${PN}-flow \
33 ${PN}-pair \
34 ${PN}-core \
35"
36
37PACKAGES =+ "\
38 ${PN}-src \
39 ${PN}-bin \
40"
41
Brad Bishop316dfdd2018-06-25 12:45:53 -040042DEPENDS += " \
43 ${PYTHON_PN}-incremental-native \
44"
45
Brad Bishopd7bf8c12018-02-25 22:55:05 -050046RDEPENDS_${PN} = "\
47 ${PN}-bin \
48 ${PN}-core \
49 ${PN}-conch \
50 ${PN}-mail \
51 ${PN}-names \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080052 ${PN}-pair \
53 ${PN}-protocols \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050054 ${PN}-runner \
55 ${PN}-web \
56 ${PN}-words \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080057 ${PN}-zsh \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050058"
59
60RDEPENDS_${PN}-core = "${PYTHON_PN}-core ${PYTHON_PN}-zopeinterface ${PYTHON_PN}-incremental ${PYTHON_PN}-constantly ${PYTHON_PN}-hyperlink ${PYTHON_PN}-automat"
61RDEPENDS_${PN}-test = "${PN}"
62RDEPENDS_${PN}-conch = "${PN}-core ${PN}-protocols"
63RDEPENDS_${PN}-mail = "${PN}-core ${PN}-protocols"
64RDEPENDS_${PN}-names = "${PN}-core"
65RDEPENDS_${PN}-news = "${PN}-core ${PN}-protocols"
66RDEPENDS_${PN}-runner = "${PN}-core ${PN}-protocols"
67RDEPENDS_${PN}-web += "${PN}-core ${PN}-protocols"
68RDEPENDS_${PN}-words += "${PN}-core"
69RDEPENDS_${PN}-flow += "${PN}-core"
70RDEPENDS_${PN}-pair += "${PN}-core"
71RDEPENDS_${PN}-dbg = "${PN}"
72
73ALLOW_EMPTY_${PN} = "1"
74FILES_${PN} = ""
75
76FILES_${PN}-test = " \
77 ${libdir}/${PYTHON_DIR}/site-packages/twisted/test \
78 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/test \
79 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/haproxy/test/ \
80"
81
82FILES_${PN}-protocols = " \
83 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/*.py* \
84 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/gps/ \
85 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/mice/ \
86 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/haproxy \
87"
88
89FILES_${PN}-zsh = " \
90 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zsh \
91 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zshcomp.* \
92 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/twisted-completion.zsh \
93"
94
95FILES_${PN}-conch = " \
96 ${bindir}/ckeygen \
97 ${bindir}/tkconch \
98 ${bindir}/conch \
99 ${bindir}/conchftp \
100 ${bindir}/cftp \
101 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_conch.py* \
102 ${libdir}/${PYTHON_DIR}/site-packages/twisted/conch \
103"
104
105FILES_${PN}-core = " \
106${bindir}/manhole \
107${bindir}/mktap \
108${bindir}/twistd \
109${bindir}/tap2deb \
110${bindir}/tap2rpm \
111${bindir}/tapconvert \
112${bindir}/tkmktap \
113${bindir}/trial \
114${bindir}/easy_install* \
115${bindir}/pyhtmlizer \
116${libdir}/${PYTHON_DIR}/site-packages/twisted/python/*.so \
117${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py* \
118${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__init__.py* \
119${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/notestplugin.py* \
120${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/testplugin.py* \
121${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_ftp.py* \
122${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_inet.py* \
123${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_manhole.py* \
124${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_portforward.py* \
125${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_socks.py* \
126${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_telnet.py* \
127${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_trial.py* \
128${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/dropin.cache \
129${libdir}/${PYTHON_DIR}/site-packages/twisted/application \
130${libdir}/${PYTHON_DIR}/site-packages/twisted/cred \
131${libdir}/${PYTHON_DIR}/site-packages/twisted/enterprise \
132${libdir}/${PYTHON_DIR}/site-packages/twisted/internet \
133${libdir}/${PYTHON_DIR}/site-packages/twisted/manhole \
134${libdir}/${PYTHON_DIR}/site-packages/twisted/manhole \
135${libdir}/${PYTHON_DIR}/site-packages/twisted/persisted \
136${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols\
137${libdir}/${PYTHON_DIR}/site-packages/twisted/python\
138${libdir}/${PYTHON_DIR}/site-packages/twisted/python/timeoutqueue.py* \
139${libdir}/${PYTHON_DIR}/site-packages/twisted/python/filepath.py* \
140${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dxprofile.py* \
141${libdir}/${PYTHON_DIR}/site-packages/twisted/python/plugin.py* \
142${libdir}/${PYTHON_DIR}/site-packages/twisted/python/htmlizer.py* \
143${libdir}/${PYTHON_DIR}/site-packages/twisted/python/__init__.py* \
144${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dispatch.py* \
145${libdir}/${PYTHON_DIR}/site-packages/twisted/python/hook.py* \
146${libdir}/${PYTHON_DIR}/site-packages/twisted/python/threadpool.py* \
147${libdir}/${PYTHON_DIR}/site-packages/twisted/python/otp.py* \
148${libdir}/${PYTHON_DIR}/site-packages/twisted/python/usage.py* \
149${libdir}/${PYTHON_DIR}/site-packages/twisted/python/roots.py* \
150${libdir}/${PYTHON_DIR}/site-packages/twisted/python/versions.py* \
151${libdir}/${PYTHON_DIR}/site-packages/twisted/python/urlpath.py* \
152${libdir}/${PYTHON_DIR}/site-packages/twisted/python/util.py* \
153${libdir}/${PYTHON_DIR}/site-packages/twisted/python/components.py* \
154${libdir}/${PYTHON_DIR}/site-packages/twisted/python/logfile.py* \
155${libdir}/${PYTHON_DIR}/site-packages/twisted/python/runtime.py* \
156${libdir}/${PYTHON_DIR}/site-packages/twisted/python/reflect.py* \
157${libdir}/${PYTHON_DIR}/site-packages/twisted/python/context.py* \
158${libdir}/${PYTHON_DIR}/site-packages/twisted/python/threadable.py* \
159${libdir}/${PYTHON_DIR}/site-packages/twisted/python/rebuild.py* \
160${libdir}/${PYTHON_DIR}/site-packages/twisted/python/failure.py* \
161${libdir}/${PYTHON_DIR}/site-packages/twisted/python/lockfile.py* \
162${libdir}/${PYTHON_DIR}/site-packages/twisted/python/formmethod.py* \
163${libdir}/${PYTHON_DIR}/site-packages/twisted/python/finalize.py* \
164${libdir}/${PYTHON_DIR}/site-packages/twisted/python/win32.py* \
165${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dist.py* \
166${libdir}/${PYTHON_DIR}/site-packages/twisted/python/shortcut.py* \
167${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zipstream.py* \
168${libdir}/${PYTHON_DIR}/site-packages/twisted/python/release.py* \
169${libdir}/${PYTHON_DIR}/site-packages/twisted/python/syslog.py* \
170${libdir}/${PYTHON_DIR}/site-packages/twisted/python/log.py* \
171${libdir}/${PYTHON_DIR}/site-packages/twisted/python/compat.py* \
172${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zshcomp.py* \
173${libdir}/${PYTHON_DIR}/site-packages/twisted/python/procutils.py* \
174${libdir}/${PYTHON_DIR}/site-packages/twisted/python/text.py* \
175${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_twisted_zsh_stub \
176${libdir}/${PYTHON_DIR}/site-packages/twisted/scripts/ \
177${libdir}/${PYTHON_DIR}/site-packages/twisted/spread/ \
178${libdir}/${PYTHON_DIR}/site-packages/twisted/tap/ \
179${libdir}/${PYTHON_DIR}/site-packages/twisted/trial/ \
180${libdir}/${PYTHON_DIR}/site-packages/twisted/__init__.py* \
181${libdir}/${PYTHON_DIR}/site-packages/twisted/_version.py* \
182${libdir}/${PYTHON_DIR}/site-packages/twisted/copyright.py* \
183${libdir}/${PYTHON_DIR}/site-packages/twisted/im.py* \
184${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py* \
185${libdir}/${PYTHON_DIR}/site-packages/twisted/python/*.py* \
186${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/*.py* \
187${libdir}/${PYTHON_DIR}/site-packages/twisted/topfiles \
188${libdir}/${PYTHON_DIR}/site-packages/Twisted*egg-info \
189${libdir}/${PYTHON_DIR}/site-packages/twisted/logger/ \
190${libdir}/${PYTHON_DIR}/site-packages/twisted/_threads/ \
191${libdir}/${PYTHON_DIR}/site-packages/twisted/positioning/ \
192"
193
194FILES_${PN}-mail = " \
195${bindir}/mailmail \
196${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_mail.py* \
197${libdir}/${PYTHON_DIR}/site-packages/twisted/mail \
198"
199
200FILES_${PN}-names = " \
201${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_names.py* \
202${libdir}/${PYTHON_DIR}/site-packages/twisted/names \
203"
204
205FILES_${PN}-news = " \
206${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_news.py* \
207${libdir}/${PYTHON_DIR}/site-packages/twisted/news \
208"
209
210FILES_${PN}-runner = " \
211${libdir}/site-packages/twisted/runner/portmap.so \
212${libdir}/${PYTHON_DIR}/site-packages/twisted/runner\
213"
214
215FILES_${PN}-web = " \
216${bindir}/websetroot \
217${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_web.py* \
218${libdir}/${PYTHON_DIR}/site-packages/twisted/web\
219"
220
221FILES_${PN}-words = " \
222${bindir}/im \
223${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_words.py* \
224${libdir}/${PYTHON_DIR}/site-packages/twisted/words\
225"
226
227FILES_${PN}-flow = " \
228${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_flow.py* \
229${libdir}/${PYTHON_DIR}/site-packages/twisted/flow \"
230
231FILES_${PN}-pair = " \
232${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_pair.py* \
233${libdir}/${PYTHON_DIR}/site-packages/twisted/pair \
234"
235
236FILES_${PN}-dbg += " \
237${libdir}/${PYTHON_DIR}/site-packages/twisted/*/.debug \
238${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*/.debug \
239"
240
241FILES_${PN}-doc += " \
242 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_pydoctortemplates/ \
243"
244
245RDEPENDS_{PN}-src = "${PN}"
246FILES_${PN}-src = " \
247 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py \
248 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*.py \
249 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*/*.py \
250"