blob: d005a2ac22a0326f9f48408143de4185c58ecd57 [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
Brad Bishope42b3e32020-01-15 22:08:42 -050064RDEPENDS_${PN}-core = "${PYTHON_PN}-core ${PYTHON_PN}-zopeinterface ${PYTHON_PN}-incremental ${PYTHON_PN}-constantly ${PYTHON_PN}-hyperlink ${PYTHON_PN}-automat ${PYTHON_PN}-pyserial"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050065RDEPENDS_${PN}-test = "${PN}"
Brad Bishope42b3e32020-01-15 22:08:42 -050066RDEPENDS_${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 -050067RDEPENDS_${PN}-mail = "${PN}-core ${PN}-protocols"
68RDEPENDS_${PN}-names = "${PN}-core"
69RDEPENDS_${PN}-news = "${PN}-core ${PN}-protocols"
70RDEPENDS_${PN}-runner = "${PN}-core ${PN}-protocols"
71RDEPENDS_${PN}-web += "${PN}-core ${PN}-protocols"
72RDEPENDS_${PN}-words += "${PN}-core"
73RDEPENDS_${PN}-flow += "${PN}-core"
74RDEPENDS_${PN}-pair += "${PN}-core"
75RDEPENDS_${PN}-dbg = "${PN}"
76
77ALLOW_EMPTY_${PN} = "1"
78FILES_${PN} = ""
79
80FILES_${PN}-test = " \
81 ${libdir}/${PYTHON_DIR}/site-packages/twisted/test \
82 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/test \
83 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/haproxy/test/ \
84"
85
86FILES_${PN}-protocols = " \
87 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/*.py* \
88 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/gps/ \
89 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/mice/ \
90 ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/haproxy \
91"
92
93FILES_${PN}-zsh = " \
94 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zsh \
95 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zshcomp.* \
96 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/twisted-completion.zsh \
97"
98
99FILES_${PN}-conch = " \
100 ${bindir}/ckeygen \
101 ${bindir}/tkconch \
102 ${bindir}/conch \
103 ${bindir}/conchftp \
104 ${bindir}/cftp \
105 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_conch.py* \
106 ${libdir}/${PYTHON_DIR}/site-packages/twisted/conch \
107"
108
109FILES_${PN}-core = " \
110${bindir}/manhole \
111${bindir}/mktap \
112${bindir}/twistd \
113${bindir}/tap2deb \
114${bindir}/tap2rpm \
115${bindir}/tapconvert \
116${bindir}/tkmktap \
117${bindir}/trial \
118${bindir}/easy_install* \
119${bindir}/pyhtmlizer \
120${libdir}/${PYTHON_DIR}/site-packages/twisted/python/*.so \
121${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py* \
122${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__init__.py* \
123${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/notestplugin.py* \
124${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/testplugin.py* \
125${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_ftp.py* \
126${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_inet.py* \
127${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_manhole.py* \
128${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_portforward.py* \
129${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_socks.py* \
130${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_telnet.py* \
131${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_trial.py* \
132${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/dropin.cache \
133${libdir}/${PYTHON_DIR}/site-packages/twisted/application \
134${libdir}/${PYTHON_DIR}/site-packages/twisted/cred \
135${libdir}/${PYTHON_DIR}/site-packages/twisted/enterprise \
136${libdir}/${PYTHON_DIR}/site-packages/twisted/internet \
137${libdir}/${PYTHON_DIR}/site-packages/twisted/manhole \
138${libdir}/${PYTHON_DIR}/site-packages/twisted/manhole \
139${libdir}/${PYTHON_DIR}/site-packages/twisted/persisted \
140${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols\
141${libdir}/${PYTHON_DIR}/site-packages/twisted/python\
142${libdir}/${PYTHON_DIR}/site-packages/twisted/python/timeoutqueue.py* \
143${libdir}/${PYTHON_DIR}/site-packages/twisted/python/filepath.py* \
144${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dxprofile.py* \
145${libdir}/${PYTHON_DIR}/site-packages/twisted/python/plugin.py* \
146${libdir}/${PYTHON_DIR}/site-packages/twisted/python/htmlizer.py* \
147${libdir}/${PYTHON_DIR}/site-packages/twisted/python/__init__.py* \
148${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dispatch.py* \
149${libdir}/${PYTHON_DIR}/site-packages/twisted/python/hook.py* \
150${libdir}/${PYTHON_DIR}/site-packages/twisted/python/threadpool.py* \
151${libdir}/${PYTHON_DIR}/site-packages/twisted/python/otp.py* \
152${libdir}/${PYTHON_DIR}/site-packages/twisted/python/usage.py* \
153${libdir}/${PYTHON_DIR}/site-packages/twisted/python/roots.py* \
154${libdir}/${PYTHON_DIR}/site-packages/twisted/python/versions.py* \
155${libdir}/${PYTHON_DIR}/site-packages/twisted/python/urlpath.py* \
156${libdir}/${PYTHON_DIR}/site-packages/twisted/python/util.py* \
157${libdir}/${PYTHON_DIR}/site-packages/twisted/python/components.py* \
158${libdir}/${PYTHON_DIR}/site-packages/twisted/python/logfile.py* \
159${libdir}/${PYTHON_DIR}/site-packages/twisted/python/runtime.py* \
160${libdir}/${PYTHON_DIR}/site-packages/twisted/python/reflect.py* \
161${libdir}/${PYTHON_DIR}/site-packages/twisted/python/context.py* \
162${libdir}/${PYTHON_DIR}/site-packages/twisted/python/threadable.py* \
163${libdir}/${PYTHON_DIR}/site-packages/twisted/python/rebuild.py* \
164${libdir}/${PYTHON_DIR}/site-packages/twisted/python/failure.py* \
165${libdir}/${PYTHON_DIR}/site-packages/twisted/python/lockfile.py* \
166${libdir}/${PYTHON_DIR}/site-packages/twisted/python/formmethod.py* \
167${libdir}/${PYTHON_DIR}/site-packages/twisted/python/finalize.py* \
168${libdir}/${PYTHON_DIR}/site-packages/twisted/python/win32.py* \
169${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dist.py* \
170${libdir}/${PYTHON_DIR}/site-packages/twisted/python/shortcut.py* \
171${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zipstream.py* \
172${libdir}/${PYTHON_DIR}/site-packages/twisted/python/release.py* \
173${libdir}/${PYTHON_DIR}/site-packages/twisted/python/syslog.py* \
174${libdir}/${PYTHON_DIR}/site-packages/twisted/python/log.py* \
175${libdir}/${PYTHON_DIR}/site-packages/twisted/python/compat.py* \
176${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zshcomp.py* \
177${libdir}/${PYTHON_DIR}/site-packages/twisted/python/procutils.py* \
178${libdir}/${PYTHON_DIR}/site-packages/twisted/python/text.py* \
179${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_twisted_zsh_stub \
180${libdir}/${PYTHON_DIR}/site-packages/twisted/scripts/ \
181${libdir}/${PYTHON_DIR}/site-packages/twisted/spread/ \
182${libdir}/${PYTHON_DIR}/site-packages/twisted/tap/ \
183${libdir}/${PYTHON_DIR}/site-packages/twisted/trial/ \
184${libdir}/${PYTHON_DIR}/site-packages/twisted/__init__.py* \
185${libdir}/${PYTHON_DIR}/site-packages/twisted/_version.py* \
186${libdir}/${PYTHON_DIR}/site-packages/twisted/copyright.py* \
187${libdir}/${PYTHON_DIR}/site-packages/twisted/im.py* \
188${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py* \
189${libdir}/${PYTHON_DIR}/site-packages/twisted/python/*.py* \
190${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/*.py* \
191${libdir}/${PYTHON_DIR}/site-packages/twisted/topfiles \
192${libdir}/${PYTHON_DIR}/site-packages/Twisted*egg-info \
193${libdir}/${PYTHON_DIR}/site-packages/twisted/logger/ \
194${libdir}/${PYTHON_DIR}/site-packages/twisted/_threads/ \
195${libdir}/${PYTHON_DIR}/site-packages/twisted/positioning/ \
196"
197
198FILES_${PN}-mail = " \
199${bindir}/mailmail \
200${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_mail.py* \
201${libdir}/${PYTHON_DIR}/site-packages/twisted/mail \
202"
203
204FILES_${PN}-names = " \
205${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_names.py* \
206${libdir}/${PYTHON_DIR}/site-packages/twisted/names \
207"
208
209FILES_${PN}-news = " \
210${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_news.py* \
211${libdir}/${PYTHON_DIR}/site-packages/twisted/news \
212"
213
214FILES_${PN}-runner = " \
215${libdir}/site-packages/twisted/runner/portmap.so \
216${libdir}/${PYTHON_DIR}/site-packages/twisted/runner\
217"
218
219FILES_${PN}-web = " \
220${bindir}/websetroot \
221${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_web.py* \
222${libdir}/${PYTHON_DIR}/site-packages/twisted/web\
223"
224
225FILES_${PN}-words = " \
226${bindir}/im \
227${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_words.py* \
228${libdir}/${PYTHON_DIR}/site-packages/twisted/words\
229"
230
231FILES_${PN}-flow = " \
232${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_flow.py* \
233${libdir}/${PYTHON_DIR}/site-packages/twisted/flow \"
234
235FILES_${PN}-pair = " \
236${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_pair.py* \
237${libdir}/${PYTHON_DIR}/site-packages/twisted/pair \
238"
239
240FILES_${PN}-dbg += " \
241${libdir}/${PYTHON_DIR}/site-packages/twisted/*/.debug \
242${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*/.debug \
243"
244
245FILES_${PN}-doc += " \
246 ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_pydoctortemplates/ \
247"
248
Brad Bishop19323692019-04-05 15:28:33 -0400249RDEPENDS_${PN}-src = "${PN}"
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500250FILES_${PN}-src = " \
251 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py \
252 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*.py \
253 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*/*.py \
254"
Brad Bishop19323692019-04-05 15:28:33 -0400255