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 | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=d136e8cf7b52f2e64079186ae2060d8a" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 9 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 10 | SRC_URI[sha256sum] = "1708e1928ae84ec9d3ebab0d427e20e1e38ff721b15bbced476d047d4a43abbe" |
| 11 | SRC_URI[md5sum] = "473e12f4226e0fecc0ca5698e418e3f6" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 12 | |
| 13 | PYPI_PACKAGE = "Twisted" |
| 14 | PYPI_PACKAGE_EXT = "tar.bz2" |
| 15 | |
| 16 | do_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 | |
| 21 | PACKAGES += "\ |
| 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 | |
| 37 | PACKAGES =+ "\ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 38 | ${PN}-bin \ |
| 39 | " |
| 40 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 41 | DEPENDS += " \ |
| 42 | ${PYTHON_PN}-incremental-native \ |
| 43 | " |
| 44 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 45 | RDEPENDS_${PN} = "\ |
| 46 | ${PN}-bin \ |
| 47 | ${PN}-core \ |
| 48 | ${PN}-conch \ |
| 49 | ${PN}-mail \ |
| 50 | ${PN}-names \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 51 | ${PN}-pair \ |
| 52 | ${PN}-protocols \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 53 | ${PN}-runner \ |
| 54 | ${PN}-web \ |
| 55 | ${PN}-words \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 56 | ${PN}-zsh \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 57 | " |
| 58 | |
| 59 | RDEPENDS_${PN}-core = "${PYTHON_PN}-core ${PYTHON_PN}-zopeinterface ${PYTHON_PN}-incremental ${PYTHON_PN}-constantly ${PYTHON_PN}-hyperlink ${PYTHON_PN}-automat" |
| 60 | RDEPENDS_${PN}-test = "${PN}" |
| 61 | RDEPENDS_${PN}-conch = "${PN}-core ${PN}-protocols" |
| 62 | RDEPENDS_${PN}-mail = "${PN}-core ${PN}-protocols" |
| 63 | RDEPENDS_${PN}-names = "${PN}-core" |
| 64 | RDEPENDS_${PN}-news = "${PN}-core ${PN}-protocols" |
| 65 | RDEPENDS_${PN}-runner = "${PN}-core ${PN}-protocols" |
| 66 | RDEPENDS_${PN}-web += "${PN}-core ${PN}-protocols" |
| 67 | RDEPENDS_${PN}-words += "${PN}-core" |
| 68 | RDEPENDS_${PN}-flow += "${PN}-core" |
| 69 | RDEPENDS_${PN}-pair += "${PN}-core" |
| 70 | RDEPENDS_${PN}-dbg = "${PN}" |
| 71 | |
| 72 | ALLOW_EMPTY_${PN} = "1" |
| 73 | FILES_${PN} = "" |
| 74 | |
| 75 | FILES_${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 | |
| 81 | FILES_${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 | |
| 88 | FILES_${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 | |
| 94 | FILES_${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 | |
| 104 | FILES_${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 | |
| 193 | FILES_${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 | |
| 199 | FILES_${PN}-names = " \ |
| 200 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_names.py* \ |
| 201 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/names \ |
| 202 | " |
| 203 | |
| 204 | FILES_${PN}-news = " \ |
| 205 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_news.py* \ |
| 206 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/news \ |
| 207 | " |
| 208 | |
| 209 | FILES_${PN}-runner = " \ |
| 210 | ${libdir}/site-packages/twisted/runner/portmap.so \ |
| 211 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/runner\ |
| 212 | " |
| 213 | |
| 214 | FILES_${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 | |
| 220 | FILES_${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 | |
| 226 | FILES_${PN}-flow = " \ |
| 227 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_flow.py* \ |
| 228 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/flow \" |
| 229 | |
| 230 | FILES_${PN}-pair = " \ |
| 231 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_pair.py* \ |
| 232 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/pair \ |
| 233 | " |
| 234 | |
| 235 | FILES_${PN}-dbg += " \ |
| 236 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/.debug \ |
| 237 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*/.debug \ |
| 238 | " |
| 239 | |
| 240 | FILES_${PN}-doc += " \ |
| 241 | ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_pydoctortemplates/ \ |
| 242 | " |
| 243 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 244 | RDEPENDS_${PN}-src = "${PN}" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 245 | FILES_${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 Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 250 | |