Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/tornado/
Date: Mon, 02 Mar 2020 15:13:22
Message-Id: 1583161982.6ae4c5ec6acba7c435bb02fe69d528b6d87a382a.grozin@gentoo
1 commit: 6ae4c5ec6acba7c435bb02fe69d528b6d87a382a
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 2 15:13:02 2020 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 2 15:13:02 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ae4c5ec
7
8 www-servers/tornado: bump to 6.0.3; python3_8 added to 5.1-r1
9
10 Package-Manager: Portage-2.3.91, Repoman-2.3.20
11 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
12
13 www-servers/tornado/Manifest | 1 +
14 www-servers/tornado/tornado-5.1-r1.ebuild | 63 +++++++++++++++++++++++++++++++
15 www-servers/tornado/tornado-6.0.3.ebuild | 62 ++++++++++++++++++++++++++++++
16 3 files changed, 126 insertions(+)
17
18 diff --git a/www-servers/tornado/Manifest b/www-servers/tornado/Manifest
19 index 4d69ed6933e..36be0c9914d 100644
20 --- a/www-servers/tornado/Manifest
21 +++ b/www-servers/tornado/Manifest
22 @@ -3,3 +3,4 @@ DIST tornado-4.5.1.tar.gz 483225 BLAKE2B 261a5da8a7cc43b11b8504162a030fdad9c3c14
23 DIST tornado-4.5.3.tar.gz 484221 BLAKE2B 7b3682fa85a7f6ad32351d40993516a3e397b7b0a5de9d807bcd8b2b21325a6170f3670cb13e12aa208b6590313cf165ddf40537dba1fee61fa9d71954265a66 SHA512 c17dd7a3b541c26950d27c8a399ae4fdff1d99d16ff0c5de9871fe2de4c0f797c96712b23b5ed5efdaee06bb251f7def114c83fe6f7f37f344cdac9996d14448
24 DIST tornado-5.0.2.tar.gz 506544 BLAKE2B 616298761f5e0cdcacfa96c3a14efaf2cc1d7579d582dc8b2fae2a3a3e45405804aa2a1409665a9af38d2f415908b373c1c34e4ff5868f989bb1bd29fe81a569 SHA512 fbd360df34fe29ed3e5f406992923e2af2815f93446fb9d9810f7575fe06300a2cb15c3f36bd93150284ba297772f94c94a4227acca2dc65c94cf7d100cb5974
25 DIST tornado-5.1.tar.gz 516359 BLAKE2B 1ff6e6ced124b7b0df0e476eac555de20e4ac86f01369ee484e33bf5d749c269a81dd11a0b4c8b3169db6fd9f7a1b4e3c3551d46474c53a1fed8e342660c57f9 SHA512 8f45e5bbee5453a4225f05840a9fa80dd574c5a9cac9ec4d787f11c3f86f347c66d39c984a8bbe96dbb41f599e25102f1a3dad1c55b479bebee7d856aaca764a
26 +DIST tornado-6.0.3.tar.gz 482444 BLAKE2B 1dda4baae52034d779879fef507d5764894f4aa054e60b00a2f8a989df4b31b495cbed6397d602e7c19844ea1538988558d5741da91646b64b6dbb8e78d618ed SHA512 2db182da7327fdd32fe76a50726a1285332139972766368c3b3dac5b4d54b4bd452a76062c09d1d158a97ace78b7915d93a29a7a8138499a2e56aee9df461abc
27
28 diff --git a/www-servers/tornado/tornado-5.1-r1.ebuild b/www-servers/tornado/tornado-5.1-r1.ebuild
29 new file mode 100644
30 index 00000000000..bc0f928eb9d
31 --- /dev/null
32 +++ b/www-servers/tornado/tornado-5.1-r1.ebuild
33 @@ -0,0 +1,63 @@
34 +# Copyright 1999-2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +PYTHON_COMPAT=( python2_7 python3_{6,7,8} )
40 +PYTHON_REQ_USE="threads(+)"
41 +
42 +inherit distutils-r1
43 +
44 +DESCRIPTION="Python web framework and asynchronous networking library"
45 +HOMEPAGE="http://www.tornadoweb.org/"
46 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
47 +
48 +LICENSE="Apache-2.0"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
51 +IUSE="doc examples test"
52 +RESTRICT="!test? ( test )"
53 +
54 +CDEPEND="
55 + $(python_gen_cond_dep 'dev-python/futures[${PYTHON_USEDEP}]' 'python2_7')
56 + >=dev-python/pycurl-7.19.3.1[${PYTHON_USEDEP}]
57 + >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
58 + virtual/python-backports_abc[${PYTHON_USEDEP}]
59 + virtual/python-futures[${PYTHON_USEDEP}]
60 + virtual/python-singledispatch[${PYTHON_USEDEP}]
61 +"
62 +DEPEND="
63 + dev-python/setuptools[${PYTHON_USEDEP}]
64 + doc? (
65 + dev-python/sphinx[${PYTHON_USEDEP}]
66 + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
67 + )
68 + test? (
69 + ${CDEPEND}
70 + dev-python/mock[${PYTHON_USEDEP}]
71 + )
72 +"
73 +RDEPEND="${CDEPEND}"
74 +
75 +# doc without intersphinx does not build (asyncio error)
76 +#PATCHES=(
77 +# "${FILESDIR}"/4.5.1-drop-intersphinx.patch
78 +#)
79 +
80 +python_compile_all() {
81 + use doc && emake -C docs sphinx
82 +}
83 +
84 +python_test() {
85 + "${PYTHON}" -m tornado.test.runtests || die "tests failed under ${EPYTHON}"
86 +}
87 +
88 +python_install_all() {
89 + use doc && local HTML_DOCS=( docs/build/html/. )
90 + if use examples; then
91 + insinto /usr/share/doc/${PF}/examples
92 + doins -r demos/.
93 + docompress -x /usr/share/doc/${PF}/examples
94 + fi
95 + distutils-r1_python_install_all
96 +}
97
98 diff --git a/www-servers/tornado/tornado-6.0.3.ebuild b/www-servers/tornado/tornado-6.0.3.ebuild
99 new file mode 100644
100 index 00000000000..1350ccb7946
101 --- /dev/null
102 +++ b/www-servers/tornado/tornado-6.0.3.ebuild
103 @@ -0,0 +1,62 @@
104 +# Copyright 1999-2020 Gentoo Authors
105 +# Distributed under the terms of the GNU General Public License v2
106 +
107 +EAPI=7
108 +
109 +PYTHON_COMPAT=( python3_{6,7,8} )
110 +PYTHON_REQ_USE="threads(+)"
111 +
112 +inherit distutils-r1
113 +
114 +DESCRIPTION="Python web framework and asynchronous networking library"
115 +HOMEPAGE="http://www.tornadoweb.org/"
116 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
117 +
118 +LICENSE="Apache-2.0"
119 +SLOT="0"
120 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
121 +IUSE="doc examples test"
122 +RESTRICT="!test? ( test )"
123 +
124 +CDEPEND="
125 + >=dev-python/pycurl-7.19.3.1[${PYTHON_USEDEP}]
126 + >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
127 + virtual/python-backports_abc[${PYTHON_USEDEP}]
128 + virtual/python-futures[${PYTHON_USEDEP}]
129 + virtual/python-singledispatch[${PYTHON_USEDEP}]
130 +"
131 +DEPEND="
132 + dev-python/setuptools[${PYTHON_USEDEP}]
133 + doc? (
134 + dev-python/sphinx[${PYTHON_USEDEP}]
135 + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
136 + )
137 + test? (
138 + ${CDEPEND}
139 + dev-python/mock[${PYTHON_USEDEP}]
140 + )
141 +"
142 +RDEPEND="${CDEPEND}"
143 +
144 +# doc without intersphinx does not build (asyncio error)
145 +#PATCHES=(
146 +# "${FILESDIR}"/4.5.1-drop-intersphinx.patch
147 +#)
148 +
149 +python_compile_all() {
150 + use doc && emake -C docs sphinx
151 +}
152 +
153 +python_test() {
154 + "${PYTHON}" -m tornado.test.runtests || die "tests failed under ${EPYTHON}"
155 +}
156 +
157 +python_install_all() {
158 + use doc && local HTML_DOCS=( docs/build/html/. )
159 + if use examples; then
160 + insinto /usr/share/doc/${PF}/examples
161 + doins -r demos/.
162 + docompress -x /usr/share/doc/${PF}/examples
163 + fi
164 + distutils-r1_python_install_all
165 +}