blob: 7537bafd3a323d82f4c83562780bae87f6aec2e6 [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 Bishop0f291cc2019-09-01 15:16:57 -04008LIC_FILES_CHKSUM = "file://LICENSE;md5=1743f12d8b8f5aec625c0569a058f0a6"
Brad Bishopd7bf8c12018-02-25 22:55:05 -05009
Brad Bishope42b3e32020-01-15 22:08:42 -050010# allow for common patches for python- and python3-twisted
11FILESEXTRAPATHS_prepend := "${THISDIR}/python-twisted:"
12
13SRC_URI += "file://0001-fix-MemoryReactor-import-in-test_runner-to-be-from-t.patch"
14
Brad Bishop8410d612019-11-25 09:40:59 -050015SRC_URI[sha256sum] = "7394ba7f272ae722a74f3d969dcf599bc4ef093bc392038748a490f1724a515d"
16SRC_URI[md5sum] = "f2d70f7a66ecdf54152310164cceadfe"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050017
18PYPI_PACKAGE = "Twisted"
19PYPI_PACKAGE_EXT = "tar.bz2"
20
21do_install_append() {
22 # remove some useless files before packaging
23 find ${D} \( -name "*.bat" -o -name "*.c" -o -name "*.h" \) -exec rm -f {} \;
24}
25
26PACKAGES += "\
27 ${PN}-zsh \
28 ${PN}-test \
29 ${PN}-protocols \
30 ${PN}-conch \
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
42PACKAGES =+ "\
Brad Bishopd7bf8c12018-02-25 22:55:05 -050043 ${PN}-bin \
44"
45
Brad Bishop316dfdd2018-06-25 12:45:53 -040046DEPENDS += " \
47 ${PYTHON_PN}-incremental-native \
48"
49
Brad Bishopd7bf8c12018-02-25 22:55:05 -050050RDEPENDS_${PN} = "\
51 ${PN}-bin \
52 ${PN}-core \
53 ${PN}-conch \
54 ${PN}-mail \
55 ${PN}-names \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080056 ${PN}-pair \
57 ${PN}-protocols \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050058 ${PN}-runner \
59 ${PN}-web \
60 ${PN}-words \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080061 ${PN}-zsh \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050062"
63
Andrew Geissler82c905d2020-04-13 13:39:40 -050064RDEPENDS_${PN}-core = "${PYTHON_PN}-appdirs \
65 ${PYTHON_PN}-automat \
66 ${PYTHON_PN}-constantly \
67 ${PYTHON_PN}-core \
68 ${PYTHON_PN}-debugger \
69 ${PYTHON_PN}-hyperlink \
70 ${PYTHON_PN}-incremental \
71 ${PYTHON_PN}-pyhamcrest \
72 ${PYTHON_PN}-pyserial \
73 ${PYTHON_PN}-unixadmin \
74 ${PYTHON_PN}-zopeinterface \
75"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050076RDEPENDS_${PN}-test = "${PN}"
Brad Bishope42b3e32020-01-15 22:08:42 -050077RDEPENDS_${PN}-conch = "${PN}-core ${PN}-protocols ${PYTHON_PN}-bcrypt ${PYTHON_PN}-cryptography ${PYTHON_PN}-pyasn1 ${PYTHON_PN}-pickle"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050078RDEPENDS_${PN}-mail = "${PN}-core ${PN}-protocols"
79RDEPENDS_${PN}-names = "${PN}-core"
80RDEPENDS_${PN}-news = "${PN}-core ${PN}-protocols"
81RDEPENDS_${PN}-runner = "${PN}-core ${PN}-protocols"
82RDEPENDS_${PN}-web += "${PN}-core ${PN}-protocols"
83RDEPENDS_${PN}-words += "${PN}-core"
84RDEPENDS_${PN}-flow += "${PN}-core"
85RDEPENDS_${PN}-pair += "${PN}-core"
86RDEPENDS_${PN}-dbg = "${PN}"
87
88ALLOW_EMPTY_${PN} = "1"
89FILES_${PN} = ""
90
91FILES_${PN}-test = " \
92 ${libdir}/${PYTHON_DIR}/site-packages/twisted/test \
93 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/test \
94 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/haproxy/test/ \
95"
96
97FILES_${PN}-protocols = " \
98 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/*.py* \
99 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/gps/ \
100 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/mice/ \
101 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/haproxy \
102"
103
104FILES_${PN}-zsh = " \
105 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zsh \
106 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zshcomp.* \
107 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/twisted-completion.zsh \
108"
109
110FILES_${PN}-conch = " \
111 ${bindir}/ckeygen \
112 ${bindir}/tkconch \
113 ${bindir}/conch \
114 ${bindir}/conchftp \
115 ${bindir}/cftp \
116 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_conch.py* \
117 ${libdir}/${PYTHON_DIR}/site-packages/twisted/conch \
118"
119
120FILES_${PN}-core = " \
121${bindir}/manhole \
122${bindir}/mktap \
123${bindir}/twistd \
124${bindir}/tap2deb \
125${bindir}/tap2rpm \
126${bindir}/tapconvert \
127${bindir}/tkmktap \
128${bindir}/trial \
129${bindir}/easy_install* \
130${bindir}/pyhtmlizer \
131${libdir}/${PYTHON_DIR}/site-packages/twisted/python/*.so \
132${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py* \
133${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__init__.py* \
134${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/notestplugin.py* \
135${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/testplugin.py* \
136${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_ftp.py* \
137${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_inet.py* \
138${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_manhole.py* \
139${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_portforward.py* \
140${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_socks.py* \
141${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_telnet.py* \
142${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_trial.py* \
143${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/dropin.cache \
144${libdir}/${PYTHON_DIR}/site-packages/twisted/application \
145${libdir}/${PYTHON_DIR}/site-packages/twisted/cred \
146${libdir}/${PYTHON_DIR}/site-packages/twisted/enterprise \
147${libdir}/${PYTHON_DIR}/site-packages/twisted/internet \
148${libdir}/${PYTHON_DIR}/site-packages/twisted/manhole \
149${libdir}/${PYTHON_DIR}/site-packages/twisted/manhole \
150${libdir}/${PYTHON_DIR}/site-packages/twisted/persisted \
151${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols\
152${libdir}/${PYTHON_DIR}/site-packages/twisted/python\
153${libdir}/${PYTHON_DIR}/site-packages/twisted/python/timeoutqueue.py* \
154${libdir}/${PYTHON_DIR}/site-packages/twisted/python/filepath.py* \
155${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dxprofile.py* \
156${libdir}/${PYTHON_DIR}/site-packages/twisted/python/plugin.py* \
157${libdir}/${PYTHON_DIR}/site-packages/twisted/python/htmlizer.py* \
158${libdir}/${PYTHON_DIR}/site-packages/twisted/python/__init__.py* \
159${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dispatch.py* \
160${libdir}/${PYTHON_DIR}/site-packages/twisted/python/hook.py* \
161${libdir}/${PYTHON_DIR}/site-packages/twisted/python/threadpool.py* \
162${libdir}/${PYTHON_DIR}/site-packages/twisted/python/otp.py* \
163${libdir}/${PYTHON_DIR}/site-packages/twisted/python/usage.py* \
164${libdir}/${PYTHON_DIR}/site-packages/twisted/python/roots.py* \
165${libdir}/${PYTHON_DIR}/site-packages/twisted/python/versions.py* \
166${libdir}/${PYTHON_DIR}/site-packages/twisted/python/urlpath.py* \
167${libdir}/${PYTHON_DIR}/site-packages/twisted/python/util.py* \
168${libdir}/${PYTHON_DIR}/site-packages/twisted/python/components.py* \
169${libdir}/${PYTHON_DIR}/site-packages/twisted/python/logfile.py* \
170${libdir}/${PYTHON_DIR}/site-packages/twisted/python/runtime.py* \
171${libdir}/${PYTHON_DIR}/site-packages/twisted/python/reflect.py* \
172${libdir}/${PYTHON_DIR}/site-packages/twisted/python/context.py* \
173${libdir}/${PYTHON_DIR}/site-packages/twisted/python/threadable.py* \
174${libdir}/${PYTHON_DIR}/site-packages/twisted/python/rebuild.py* \
175${libdir}/${PYTHON_DIR}/site-packages/twisted/python/failure.py* \
176${libdir}/${PYTHON_DIR}/site-packages/twisted/python/lockfile.py* \
177${libdir}/${PYTHON_DIR}/site-packages/twisted/python/formmethod.py* \
178${libdir}/${PYTHON_DIR}/site-packages/twisted/python/finalize.py* \
179${libdir}/${PYTHON_DIR}/site-packages/twisted/python/win32.py* \
180${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dist.py* \
181${libdir}/${PYTHON_DIR}/site-packages/twisted/python/shortcut.py* \
182${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zipstream.py* \
183${libdir}/${PYTHON_DIR}/site-packages/twisted/python/release.py* \
184${libdir}/${PYTHON_DIR}/site-packages/twisted/python/syslog.py* \
185${libdir}/${PYTHON_DIR}/site-packages/twisted/python/log.py* \
186${libdir}/${PYTHON_DIR}/site-packages/twisted/python/compat.py* \
187${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zshcomp.py* \
188${libdir}/${PYTHON_DIR}/site-packages/twisted/python/procutils.py* \
189${libdir}/${PYTHON_DIR}/site-packages/twisted/python/text.py* \
190${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_twisted_zsh_stub \
191${libdir}/${PYTHON_DIR}/site-packages/twisted/scripts/ \
192${libdir}/${PYTHON_DIR}/site-packages/twisted/spread/ \
193${libdir}/${PYTHON_DIR}/site-packages/twisted/tap/ \
194${libdir}/${PYTHON_DIR}/site-packages/twisted/trial/ \
195${libdir}/${PYTHON_DIR}/site-packages/twisted/__init__.py* \
196${libdir}/${PYTHON_DIR}/site-packages/twisted/_version.py* \
197${libdir}/${PYTHON_DIR}/site-packages/twisted/copyright.py* \
198${libdir}/${PYTHON_DIR}/site-packages/twisted/im.py* \
199${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py* \
200${libdir}/${PYTHON_DIR}/site-packages/twisted/python/*.py* \
201${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/*.py* \
202${libdir}/${PYTHON_DIR}/site-packages/twisted/topfiles \
203${libdir}/${PYTHON_DIR}/site-packages/Twisted*egg-info \
204${libdir}/${PYTHON_DIR}/site-packages/twisted/logger/ \
205${libdir}/${PYTHON_DIR}/site-packages/twisted/_threads/ \
206${libdir}/${PYTHON_DIR}/site-packages/twisted/positioning/ \
207"
208
209FILES_${PN}-mail = " \
210${bindir}/mailmail \
211${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_mail.py* \
212${libdir}/${PYTHON_DIR}/site-packages/twisted/mail \
213"
214
215FILES_${PN}-names = " \
216${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_names.py* \
217${libdir}/${PYTHON_DIR}/site-packages/twisted/names \
218"
219
220FILES_${PN}-news = " \
221${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_news.py* \
222${libdir}/${PYTHON_DIR}/site-packages/twisted/news \
223"
224
225FILES_${PN}-runner = " \
226${libdir}/site-packages/twisted/runner/portmap.so \
227${libdir}/${PYTHON_DIR}/site-packages/twisted/runner\
228"
229
230FILES_${PN}-web = " \
231${bindir}/websetroot \
232${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_web.py* \
233${libdir}/${PYTHON_DIR}/site-packages/twisted/web\
234"
235
236FILES_${PN}-words = " \
237${bindir}/im \
238${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_words.py* \
239${libdir}/${PYTHON_DIR}/site-packages/twisted/words\
240"
241
242FILES_${PN}-flow = " \
243${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_flow.py* \
244${libdir}/${PYTHON_DIR}/site-packages/twisted/flow \"
245
246FILES_${PN}-pair = " \
247${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_pair.py* \
248${libdir}/${PYTHON_DIR}/site-packages/twisted/pair \
249"
250
251FILES_${PN}-dbg += " \
252${libdir}/${PYTHON_DIR}/site-packages/twisted/*/.debug \
253${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*/.debug \
254"
255
256FILES_${PN}-doc += " \
257 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_pydoctortemplates/ \
258"
259
Brad Bishop19323692019-04-05 15:28:33 -0400260RDEPENDS_${PN}-src = "${PN}"
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500261FILES_${PN}-src = " \
262 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py \
263 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*.py \
264 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*/*.py \
265"
Brad Bishop19323692019-04-05 15:28:33 -0400266