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