summaryrefslogtreecommitdiff
path: root/www-servers/tornado
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /www-servers/tornado
reinit the tree, so we can have metadata
Diffstat (limited to 'www-servers/tornado')
-rw-r--r--www-servers/tornado/Manifest10
-rw-r--r--www-servers/tornado/files/4.4-drop-intersphinx.patch36
-rw-r--r--www-servers/tornado/files/4.4.1-options-test.patch13
-rw-r--r--www-servers/tornado/files/4.5.1-drop-intersphinx.patch22
-rw-r--r--www-servers/tornado/metadata.xml16
-rw-r--r--www-servers/tornado/tornado-4.4.2-r1.ebuild68
-rw-r--r--www-servers/tornado/tornado-4.5.1.ebuild68
7 files changed, 233 insertions, 0 deletions
diff --git a/www-servers/tornado/Manifest b/www-servers/tornado/Manifest
new file mode 100644
index 000000000000..9c3efb671156
--- /dev/null
+++ b/www-servers/tornado/Manifest
@@ -0,0 +1,10 @@
+AUX 4.4-drop-intersphinx.patch 935 SHA256 69fbb60d35904690200abd8c1157656a716eeb326ca367122de3bb6690bdea51 SHA512 457a78af92b57b91186bbc06386e4db167b291c50f453dafc58cd4c3245994263cdefb560d29d97ffd027117f6c571c1d373b7e6f9762dcc79ba4ad8abcdafcf WHIRLPOOL e5e735b7eed5d1b1f048fad6f121609bac811f531c4253060dc48ce8f1b9a8f4d3fa07daabf428ae7c5d84d16f25983be42e2d346583b8ec5494e4eb1147751a
+AUX 4.4.1-options-test.patch 651 SHA256 f676251b534a39266f1aa4c56668ac22e65702f344b4f1ebbef36dbb7c37e1af SHA512 b92b14f723afe290e6d42cd490f901fd389e8fe4752dcb9e28f8df24bc1c40db53035b89636f379a1d0b20af33c950a00970e033983cfd8440361552bb424cde WHIRLPOOL 61a87787e0011a477b6b7a7d8c7788de264b80c111fb95bf4d5eb43fc544a84b23598d4f59dbc754351bfe9893ca5e3e60e3d276889517494cc41ceed9761029
+AUX 4.5.1-drop-intersphinx.patch 717 SHA256 5cf329a22effdcc9e6fbbdf3e7b5c765c1f2585fd8478e546743e14e73af9279 SHA512 1959062a395544a9557ff8603debb58e73cbd146e501b4d9f9e04bb4a1d9531899a8cfe5cbd41c474638245755e040cd10156a3b1874f66489757447a1af815e WHIRLPOOL 62be10d8d436118e89ee8b0a9caf7efbacfea8dc0d2bd5c0dad8e875b061a7ff75de75a3d2d81deff19e2d5f19ca5ed86ec13d9773669ada55a35d21101e4aee
+DIST tornado-4.4.2.tar.gz 460193 SHA256 2898f992f898cd41eeb8d53b6df75495f2f423b6672890aadaf196ea1448edcc SHA512 f330bc62433576708e3c566577cede07c54c19996f374df82d5abc19a669ade549e7b6c27dcae3d421921fec506fae39473443cdb04692553c5ea2f8ec11a327 WHIRLPOOL df04a35ed30f9bbaff87be06c96de7a9038e1535b21d40906eb92a5beeaaf6ac4ea1b14b4f16df1527b9a07d41a5ee4c04ec141a068e3acfb4b6717019ff5fdd
+DIST tornado-4.5.1.tar.gz 483225 SHA256 db0904a28253cfe53e7dedc765c71596f3c53bb8a866ae50123320ec1a7b73fd SHA512 b31b3572bf58df8b758694c32b2233c547d6600b0c27f56cff3521abaad38a1646a528d2c2dfcf13214159bf5ba0f59470ba3d538edf16dc014a8b03f0d3bb87 WHIRLPOOL 31e2bb974c938979b430cdc1a873bd1f5f2b6d5fdec61ef8901e7ea83ec2d6801e004202042dc5070ac4083b6d8fec35166b12aaa0664e0775cb1b7af43c148d
+EBUILD tornado-4.4.2-r1.ebuild 1861 SHA256 6c6155c155a3e4737e997b3885262e4e6b39b0d075c8d89db9d3ef2190557237 SHA512 12d2fa8ad9f1e08c0e5e278aa91565c94585009cade64f1f4db2cc968b68e8719ba98288d87d753de7924d71fa98bc810f1b2026b55f2366e3608cbac02318a3 WHIRLPOOL db30bff0ba197bd1019e32f9fb39746acef13b788253842435b63ae64963e576285bcc4e8e36b427a95a2d10ea493f8a6a7ae6810241e1b3c8bf94cb72924447
+EBUILD tornado-4.5.1.ebuild 1856 SHA256 1d891ac27b83122dd6e16383dd929b0ea943ec034873dfb52685cae76fce9928 SHA512 d85325a283fd8ec51ada90450eb38b0eb39347f72b90645e02fbaa67eb04c3024651dcca98de65a5cf45aa8bfcee3ca6491203a855bd6260d6d82ff66ec7134e WHIRLPOOL e0b76daae0d78759a8a759e46b92c99a2e170e670483f2cf1e56b42979da0e0c0e45846da2461cfa8c09d7cf5ead5bccfd9b6e2119b6476cf2080156dd279fa4
+MISC ChangeLog 10667 SHA256 f6963f0e95f856eb427ecdc97d1fa42c3a512d5f16f039a7b51c8aa3ed0bc436 SHA512 a615cead1b492be0da4d354f0d22a6804a4d05bdd42babebe42e15ccb93e348a66dc302f5b26e54e7596b5c9713a6b7511afe1230a77fb2755d3fc8a48ec54bc WHIRLPOOL 85d5ad6907ff35bccbd21b16cc6ab8dc714d0fc71c9a2df934a4a57d6a9d2aee64df9bd2ab7a4410e0dc75cbcea1e48406ea98821faf2d4ce0c7c7ccb159a4c7
+MISC ChangeLog-2015 11271 SHA256 2b4ba9c0415648cf89fa64a85418ac89d12db876bdcaad2718b3bffb8eb0a9f8 SHA512 6e33633a78e26b530295f4566e878b3d6bc1138d71df9fd35680494f9fc07c5a6d6b67c385404273ea4f1f2a9eff828bce83208f06b63c5b6087ec5576aaa2fc WHIRLPOOL a021268a4399e19f7ce2023a726d6a09d1e22e04d66ee883886f786cfab456f0d89a19dcfb7c2a900f4ec758ea2ba638225c009c61a86a6febc96f606beeffca
+MISC metadata.xml 493 SHA256 5794aa18c3676853dd88268e019487c0a21bf977b49d7168a855bfbce3199f9e SHA512 0b5a841c865a3a539ec5592ecb6c725c0f337e0fdf55a0075a27f94364ad6fd8dbf6e344808dcebbbc4953d30e51be34b9a7daaa8a9e75e656a6f74c62664d48 WHIRLPOOL fed2b9583e65d032442aadb881e750f574340c4af4ee96630b1997b798956784f8372c6885f13fb1d28c65a01e5f5d30ad50d83c5ccffab0769b5fba4327b352
diff --git a/www-servers/tornado/files/4.4-drop-intersphinx.patch b/www-servers/tornado/files/4.4-drop-intersphinx.patch
new file mode 100644
index 000000000000..cec403e772fb
--- /dev/null
+++ b/www-servers/tornado/files/4.4-drop-intersphinx.patch
@@ -0,0 +1,36 @@
+diff --git a/docs/Makefile b/docs/Makefile
+index 7001b80..ab2ffdd 100644
+--- a/docs/Makefile
++++ b/docs/Makefile
+@@ -3,7 +3,7 @@ all: sphinx
+
+ # No -W for doctests because that disallows tests with empty output.
+ SPHINX_DOCTEST_OPTS=-n -d build/doctress .
+-SPHINXOPTS=-n -W -d build/doctrees .
++SPHINXOPTS=-n -d build/doctrees .
+
+ .PHONY: sphinx
+ sphinx:
+diff --git a/docs/conf.py b/docs/conf.py
+index 368e4e8..85a276d 100644
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -17,7 +17,6 @@ extensions = [
+ "sphinx.ext.coverage",
+ "sphinx.ext.doctest",
+ "sphinx.ext.extlinks",
+- "sphinx.ext.intersphinx",
+ "sphinx.ext.viewcode",
+ ]
+
+@@ -92,10 +91,6 @@
+ 'tornado-%s.tar.g' % version),
+ }
+
+-intersphinx_mapping = {
+- 'python': ('https://docs.python.org/3.5/', None),
+- }
+-
+ on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+
+ # On RTD we can't import sphinx_rtd_theme, but it will be applied by
diff --git a/www-servers/tornado/files/4.4.1-options-test.patch b/www-servers/tornado/files/4.4.1-options-test.patch
new file mode 100644
index 000000000000..480362647717
--- /dev/null
+++ b/www-servers/tornado/files/4.4.1-options-test.patch
@@ -0,0 +1,13 @@
+diff --git a/tornado/test/options_test.py b/tornado/test/options_test.py
+index f7b215c..c050cb6 100644
+--- a/tornado/test/options_test.py
++++ b/tornado/test/options_test.py
+@@ -36,7 +36,7 @@ class OptionsTest(unittest.TestCase):
+ options.define("port", default=80)
+ options.define("username", default='foo')
+ options.define("my_path")
+- config_path = os.path.join(os.path.dirname(__file__),
++ config_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
+ "options_test.cfg")
+ options.parse_config_file(config_path)
+ self.assertEqual(options.port, 443)
diff --git a/www-servers/tornado/files/4.5.1-drop-intersphinx.patch b/www-servers/tornado/files/4.5.1-drop-intersphinx.patch
new file mode 100644
index 000000000000..606bfc787381
--- /dev/null
+++ b/www-servers/tornado/files/4.5.1-drop-intersphinx.patch
@@ -0,0 +1,22 @@
+diff -Nur tornado-4.5.1.orig/docs/conf.py tornado-4.5.1/docs/conf.py
+--- tornado-4.5.1.orig/docs/conf.py 2017-06-27 17:39:55.881133239 +0000
++++ tornado-4.5.1/docs/conf.py 2017-06-27 17:40:59.910682166 +0000
+@@ -16,7 +16,6 @@
+ "sphinx.ext.autodoc",
+ "sphinx.ext.coverage",
+ "sphinx.ext.doctest",
+- "sphinx.ext.intersphinx",
+ "sphinx.ext.viewcode",
+ ]
+
+@@ -81,10 +80,6 @@
+ ('index', 'tornado.tex', 'Tornado Documentation', 'The Tornado Authors', 'manual', False),
+ ]
+
+-intersphinx_mapping = {
+- 'python': ('https://docs.python.org/3.5/', None),
+- }
+-
+ on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+
+ # On RTD we can't import sphinx_rtd_theme, but it will be applied by
diff --git a/www-servers/tornado/metadata.xml b/www-servers/tornado/metadata.xml
new file mode 100644
index 000000000000..6d6315f45be8
--- /dev/null
+++ b/www-servers/tornado/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">tornado</remote-id>
+ <remote-id type="github">tornadoweb/tornado</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/www-servers/tornado/tornado-4.4.2-r1.ebuild b/www-servers/tornado/tornado-4.4.2-r1.ebuild
new file mode 100644
index 000000000000..5321d46eb935
--- /dev/null
+++ b/www-servers/tornado/tornado-4.4.2-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="Python web framework and asynchronous networking library"
+HOMEPAGE="http://www.tornadoweb.org/ https://pypi.python.org/pypi/tornado"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples test"
+
+CDEPEND="
+ dev-python/certifi[${PYTHON_USEDEP}]
+ >=dev-python/pycurl-7.19.3.1[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '>=dev-python/backports-ssl-match-hostname-3.5[${PYTHON_USEDEP}]' 'python2_7' 'python3_4')
+ || (
+ >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
+ ( $(python_gen_cond_dep 'dev-python/twisted-names[${PYTHON_USEDEP}]' 'python2_7')
+ $(python_gen_cond_dep 'dev-python/twisted-web[${PYTHON_USEDEP}]' 'python2_7')
+ )
+ )
+ virtual/python-backports_abc[${PYTHON_USEDEP}]
+ virtual/python-futures[${PYTHON_USEDEP}]
+ virtual/python-singledispatch[${PYTHON_USEDEP}]
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? (
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
+ )
+ test? (
+ ${CDEPEND}
+ dev-python/mock[${PYTHON_USEDEP}]
+ )
+"
+RDEPEND="${CDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/4.4-drop-intersphinx.patch
+ "${FILESDIR}"/4.4.1-options-test.patch
+)
+
+python_compile_all() {
+ use doc && emake -C docs sphinx
+}
+
+python_test() {
+ "${PYTHON}" -m tornado.test.runtests || die "tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/build/html/. )
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins -r demos/.
+ docompress -x /usr/share/doc/${PF}/examples
+fi
+ distutils-r1_python_install_all
+}
diff --git a/www-servers/tornado/tornado-4.5.1.ebuild b/www-servers/tornado/tornado-4.5.1.ebuild
new file mode 100644
index 000000000000..23317435e308
--- /dev/null
+++ b/www-servers/tornado/tornado-4.5.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="Python web framework and asynchronous networking library"
+HOMEPAGE="http://www.tornadoweb.org/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples test"
+
+CDEPEND="
+ dev-python/certifi[${PYTHON_USEDEP}]
+ >=dev-python/pycurl-7.19.3.1[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '>=dev-python/backports-ssl-match-hostname-3.5[${PYTHON_USEDEP}]' 'python2_7' 'python3_4')
+ || (
+ >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
+ ( $(python_gen_cond_dep 'dev-python/twisted-names[${PYTHON_USEDEP}]' 'python2_7')
+ $(python_gen_cond_dep 'dev-python/twisted-web[${PYTHON_USEDEP}]' 'python2_7')
+ )
+ )
+ virtual/python-backports_abc[${PYTHON_USEDEP}]
+ virtual/python-futures[${PYTHON_USEDEP}]
+ virtual/python-singledispatch[${PYTHON_USEDEP}]
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? (
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
+ )
+ test? (
+ ${CDEPEND}
+ dev-python/mock[${PYTHON_USEDEP}]
+ )
+"
+RDEPEND="${CDEPEND}"
+
+# doc without intersphinx does not build (asyncio error)
+#PATCHES=(
+# "${FILESDIR}"/4.5.1-drop-intersphinx.patch
+#)
+
+python_compile_all() {
+ use doc && emake -C docs sphinx
+}
+
+python_test() {
+ "${PYTHON}" -m tornado.test.runtests || die "tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/build/html/. )
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins -r demos/.
+ docompress -x /usr/share/doc/${PF}/examples
+fi
+ distutils-r1_python_install_all
+}