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