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