1 |
commit: 12a0ffc1e2d18c7c4342c5359725c59785e51e49 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 27 17:55:36 2017 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 28 04:00:13 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12a0ffc1 |
7 |
|
8 |
www-servers/tornado: version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
www-servers/tornado/Manifest | 1 + |
13 |
.../tornado/files/4.5.1-drop-intersphinx.patch | 22 +++++++ |
14 |
www-servers/tornado/tornado-4.5.1.ebuild | 68 ++++++++++++++++++++++ |
15 |
3 files changed, 91 insertions(+) |
16 |
|
17 |
diff --git a/www-servers/tornado/Manifest b/www-servers/tornado/Manifest |
18 |
index 66fca8816ce..140cae4dd42 100644 |
19 |
--- a/www-servers/tornado/Manifest |
20 |
+++ b/www-servers/tornado/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST tornado-4.4.2.tar.gz 460193 SHA256 2898f992f898cd41eeb8d53b6df75495f2f423b6672890aadaf196ea1448edcc SHA512 f330bc62433576708e3c566577cede07c54c19996f374df82d5abc19a669ade549e7b6c27dcae3d421921fec506fae39473443cdb04692553c5ea2f8ec11a327 WHIRLPOOL df04a35ed30f9bbaff87be06c96de7a9038e1535b21d40906eb92a5beeaaf6ac4ea1b14b4f16df1527b9a07d41a5ee4c04ec141a068e3acfb4b6717019ff5fdd |
23 |
+DIST tornado-4.5.1.tar.gz 483225 SHA256 db0904a28253cfe53e7dedc765c71596f3c53bb8a866ae50123320ec1a7b73fd SHA512 b31b3572bf58df8b758694c32b2233c547d6600b0c27f56cff3521abaad38a1646a528d2c2dfcf13214159bf5ba0f59470ba3d538edf16dc014a8b03f0d3bb87 WHIRLPOOL 31e2bb974c938979b430cdc1a873bd1f5f2b6d5fdec61ef8901e7ea83ec2d6801e004202042dc5070ac4083b6d8fec35166b12aaa0664e0775cb1b7af43c148d |
24 |
|
25 |
diff --git a/www-servers/tornado/files/4.5.1-drop-intersphinx.patch b/www-servers/tornado/files/4.5.1-drop-intersphinx.patch |
26 |
new file mode 100644 |
27 |
index 00000000000..606bfc78738 |
28 |
--- /dev/null |
29 |
+++ b/www-servers/tornado/files/4.5.1-drop-intersphinx.patch |
30 |
@@ -0,0 +1,22 @@ |
31 |
+diff -Nur tornado-4.5.1.orig/docs/conf.py tornado-4.5.1/docs/conf.py |
32 |
+--- tornado-4.5.1.orig/docs/conf.py 2017-06-27 17:39:55.881133239 +0000 |
33 |
++++ tornado-4.5.1/docs/conf.py 2017-06-27 17:40:59.910682166 +0000 |
34 |
+@@ -16,7 +16,6 @@ |
35 |
+ "sphinx.ext.autodoc", |
36 |
+ "sphinx.ext.coverage", |
37 |
+ "sphinx.ext.doctest", |
38 |
+- "sphinx.ext.intersphinx", |
39 |
+ "sphinx.ext.viewcode", |
40 |
+ ] |
41 |
+ |
42 |
+@@ -81,10 +80,6 @@ |
43 |
+ ('index', 'tornado.tex', 'Tornado Documentation', 'The Tornado Authors', 'manual', False), |
44 |
+ ] |
45 |
+ |
46 |
+-intersphinx_mapping = { |
47 |
+- 'python': ('https://docs.python.org/3.5/', None), |
48 |
+- } |
49 |
+- |
50 |
+ on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
51 |
+ |
52 |
+ # On RTD we can't import sphinx_rtd_theme, but it will be applied by |
53 |
|
54 |
diff --git a/www-servers/tornado/tornado-4.5.1.ebuild b/www-servers/tornado/tornado-4.5.1.ebuild |
55 |
new file mode 100644 |
56 |
index 00000000000..ab03eec142c |
57 |
--- /dev/null |
58 |
+++ b/www-servers/tornado/tornado-4.5.1.ebuild |
59 |
@@ -0,0 +1,68 @@ |
60 |
+# Copyright 1999-2017 Gentoo Foundation |
61 |
+# Distributed under the terms of the GNU General Public License v2 |
62 |
+ |
63 |
+EAPI=6 |
64 |
+ |
65 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
66 |
+PYTHON_REQ_USE="threads(+)" |
67 |
+ |
68 |
+inherit distutils-r1 |
69 |
+ |
70 |
+DESCRIPTION="Python web framework and asynchronous networking library" |
71 |
+HOMEPAGE="http://www.tornadoweb.org/" |
72 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
73 |
+ |
74 |
+LICENSE="Apache-2.0" |
75 |
+SLOT="0" |
76 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
77 |
+IUSE="doc examples test" |
78 |
+ |
79 |
+CDEPEND=" |
80 |
+ dev-python/certifi[${PYTHON_USEDEP}] |
81 |
+ >=dev-python/pycurl-7.19.3.1[${PYTHON_USEDEP}] |
82 |
+ dev-python/backports-ssl-match-hostname[${PYTHON_USEDEP}] |
83 |
+ || ( |
84 |
+ >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] |
85 |
+ ( $(python_gen_cond_dep 'dev-python/twisted-names[${PYTHON_USEDEP}]' 'python2_7') |
86 |
+ $(python_gen_cond_dep 'dev-python/twisted-web[${PYTHON_USEDEP}]' 'python2_7') |
87 |
+ ) |
88 |
+ ) |
89 |
+ virtual/python-backports_abc[${PYTHON_USEDEP}] |
90 |
+ virtual/python-futures[${PYTHON_USEDEP}] |
91 |
+ virtual/python-singledispatch[${PYTHON_USEDEP}] |
92 |
+" |
93 |
+DEPEND=" |
94 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
95 |
+ doc? ( |
96 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
97 |
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
98 |
+ ) |
99 |
+ test? ( |
100 |
+ ${CDEPEND} |
101 |
+ dev-python/mock[${PYTHON_USEDEP}] |
102 |
+ ) |
103 |
+" |
104 |
+RDEPEND="${CDEPEND}" |
105 |
+ |
106 |
+# doc without intersphinx does not build (asyncio error) |
107 |
+#PATCHES=( |
108 |
+# "${FILESDIR}"/4.5.1-drop-intersphinx.patch |
109 |
+#) |
110 |
+ |
111 |
+python_compile_all() { |
112 |
+ use doc && emake -C docs sphinx |
113 |
+} |
114 |
+ |
115 |
+python_test() { |
116 |
+ "${PYTHON}" -m tornado.test.runtests || die "tests failed under ${EPYTHON}" |
117 |
+} |
118 |
+ |
119 |
+python_install_all() { |
120 |
+ use doc && local HTML_DOCS=( docs/build/html/. ) |
121 |
+ if use examples; then |
122 |
+ insinto /usr/share/doc/${PF}/examples |
123 |
+ doins -r demos/. |
124 |
+ docompress -x /usr/share/doc/${PF}/examples |
125 |
+fi |
126 |
+ distutils-r1_python_install_all |
127 |
+} |