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