Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | DESCRIPTION = "Twisted is an event-driven networking framework written in Python and licensed under the LGPL. \ |
| 2 | Twisted 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." |
| 4 | HOMEPAGE = "http://www.twistedmatrix.com" |
| 5 | |
| 6 | #twisted/topfiles/NEWS:655: - Relicensed: Now under the MIT license, rather than LGPL. |
| 7 | LICENSE = "MIT" |
Brad Bishop | 0f291cc | 2019-09-01 15:16:57 -0400 | [diff] [blame] | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1743f12d8b8f5aec625c0569a058f0a6" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 9 | |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 10 | # allow for common patches for python- and python3-twisted |
| 11 | FILESEXTRAPATHS_prepend := "${THISDIR}/python-twisted:" |
| 12 | |
| 13 | SRC_URI += "file://0001-fix-MemoryReactor-import-in-test_runner-to-be-from-t.patch" |
| 14 | |
Brad Bishop | 8410d61 | 2019-11-25 09:40:59 -0500 | [diff] [blame] | 15 | SRC_URI[sha256sum] = "7394ba7f272ae722a74f3d969dcf599bc4ef093bc392038748a490f1724a515d" |
| 16 | SRC_URI[md5sum] = "f2d70f7a66ecdf54152310164cceadfe" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 17 | |
| 18 | PYPI_PACKAGE = "Twisted" |
| 19 | PYPI_PACKAGE_EXT = "tar.bz2" |
| 20 | |
| 21 | do_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 | |
| 26 | PACKAGES += "\ |
| 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 | |
| 42 | PACKAGES =+ "\ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 43 | ${PN}-bin \ |
| 44 | " |
| 45 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 46 | DEPENDS += " \ |
| 47 | ${PYTHON_PN}-incremental-native \ |
| 48 | " |
| 49 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 50 | RDEPENDS_${PN} = "\ |
| 51 | ${PN}-bin \ |
| 52 | ${PN}-core \ |
| 53 | ${PN}-conch \ |
| 54 | ${PN}-mail \ |
| 55 | ${PN}-names \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 56 | ${PN}-pair \ |
| 57 | ${PN}-protocols \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 58 | ${PN}-runner \ |
| 59 | ${PN}-web \ |
| 60 | ${PN}-words \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 61 | ${PN}-zsh \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 62 | " |
| 63 | |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 64 | RDEPENDS_${PN}-core = "${PYTHON_PN}-core ${PYTHON_PN}-zopeinterface ${PYTHON_PN}-incremental ${PYTHON_PN}-constantly ${PYTHON_PN}-hyperlink ${PYTHON_PN}-automat ${PYTHON_PN}-pyserial" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 65 | RDEPENDS_${PN}-test = "${PN}" |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 66 | RDEPENDS_${PN}-conch = "${PN}-core ${PN}-protocols ${PYTHON_PN}-bcrypt ${PYTHON_PN}-cryptography ${PYTHON_PN}-pyasn1 ${PYTHON_PN}-pickle" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 67 | RDEPENDS_${PN}-mail = "${PN}-core ${PN}-protocols" |
| 68 | RDEPENDS_${PN}-names = "${PN}-core" |
| 69 | RDEPENDS_${PN}-news = "${PN}-core ${PN}-protocols" |
| 70 | RDEPENDS_${PN}-runner = "${PN}-core ${PN}-protocols" |
| 71 | RDEPENDS_${PN}-web += "${PN}-core ${PN}-protocols" |
| 72 | RDEPENDS_${PN}-words += "${PN}-core" |
| 73 | RDEPENDS_${PN}-flow += "${PN}-core" |
| 74 | RDEPENDS_${PN}-pair += "${PN}-core" |
| 75 | RDEPENDS_${PN}-dbg = "${PN}" |
| 76 | |
| 77 | ALLOW_EMPTY_${PN} = "1" |
| 78 | FILES_${PN} = "" |
| 79 | |
| 80 | FILES_${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 | |
| 86 | FILES_${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 | |
| 93 | FILES_${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 | |
| 99 | FILES_${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 | |
| 109 | FILES_${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 | |
| 198 | FILES_${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 | |
| 204 | FILES_${PN}-names = " \ |
| 205 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_names.py* \ |
| 206 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/names \ |
| 207 | " |
| 208 | |
| 209 | FILES_${PN}-news = " \ |
| 210 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_news.py* \ |
| 211 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/news \ |
| 212 | " |
| 213 | |
| 214 | FILES_${PN}-runner = " \ |
| 215 | ${libdir}/site-packages/twisted/runner/portmap.so \ |
| 216 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/runner\ |
| 217 | " |
| 218 | |
| 219 | FILES_${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 | |
| 225 | FILES_${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 | |
| 231 | FILES_${PN}-flow = " \ |
| 232 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_flow.py* \ |
| 233 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/flow \" |
| 234 | |
| 235 | FILES_${PN}-pair = " \ |
| 236 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_pair.py* \ |
| 237 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/pair \ |
| 238 | " |
| 239 | |
| 240 | FILES_${PN}-dbg += " \ |
| 241 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/.debug \ |
| 242 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*/.debug \ |
| 243 | " |
| 244 | |
| 245 | FILES_${PN}-doc += " \ |
| 246 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_pydoctortemplates/ \ |
| 247 | " |
| 248 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 249 | RDEPENDS_${PN}-src = "${PN}" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 250 | FILES_${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 Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 255 | |