Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sphinx/
Date: Sun, 31 Mar 2019 13:05:48
Message-Id: 1554037383.70300828c45a6688fee7e8661a8c32ddfc0446e8.vdupras@gentoo
1 commit: 70300828c45a6688fee7e8661a8c32ddfc0446e8
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 31 13:02:43 2019 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 31 13:03:03 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70300828
7
8 dev-python/sphinx: bump to 2.0.0
9
10 I removed the "net" USE flag because it does nothing else than adding
11 dependencies that aren't referenced anywhere in the code. Moreover, the
12 release that introduced it, 1.5.1, wasn't accompanied by a justification
13 for its addition. I think that it was added for what is now
14 "sphinxcontrib-websupport". If that's the case, then this doesn't belong
15 here.
16
17 Closes: https://bugs.gentoo.org/662322
18 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
19 Package-Manager: Portage-2.3.62, Repoman-2.3.11
20
21 dev-python/sphinx/Manifest | 1 +
22 dev-python/sphinx/sphinx-2.0.0.ebuild | 106 ++++++++++++++++++++++++++++++++++
23 2 files changed, 107 insertions(+)
24
25 diff --git a/dev-python/sphinx/Manifest b/dev-python/sphinx/Manifest
26 index 1aded9f3083..8acce3aeae6 100644
27 --- a/dev-python/sphinx/Manifest
28 +++ b/dev-python/sphinx/Manifest
29 @@ -1,3 +1,4 @@
30 DIST Sphinx-1.2.2.tar.gz 3143671 BLAKE2B a21b2a060363ac86832a6a28a623ed410ff0bb39ca3c9c58618ade88f4305996e54c559bb588c518597e31a73fc16e0c37fc57950eb077179f03715dfee72729 SHA512 44073c215f9d0e7f6c7bc91cb85b0508a96e5cfff5f940fef86e2fc6f11281d03b54e87e51e5a99a23e96b470a93f3af86a6a3ab7c317c747406c55b4c37791c
31 DIST Sphinx-1.2.3.tar.gz 3200548 BLAKE2B 42033c59e6e38247af12c78cb4f69c73b1dfa883aa8a9e6c180bb74de666b45faef24a55c0bfd3aa1f22bf3e632e0e95016eb1bea54e8b5ebc7df78756763b5c SHA512 00346516e826a65145a3a7fd25ef7cee569ae7fdcc0c1bec3a7301fc08d5d8730d02eee792c3efedfcac17e712ea7e2ad70ea1fcdedc11720ad54f6bcb51ad05
32 DIST Sphinx-1.7.5.tar.gz 4726802 BLAKE2B 8d828dcae1f3ebb813c5f2de8c096a3fac4ab88b424955c27592349c544b775a21703c904a54efa7f86e1967198f4950804904a82a7142a3499f33c5343506e3 SHA512 db2a8df2cdb2ed78ce2341175575c2b04a149451b2bc8a4f74ddc73e308a19d505874fdbae4e370ce48a9b1cdb4de47cdab489bc57c1b378e857d5b8d04a07b8
33 +DIST Sphinx-2.0.0.tar.gz 6011308 BLAKE2B 72ec668522b803c07a76be086a27d2f8fb844558fc3d3a9fbaa7a191e570c23e3baa951873f68d3b54c48d8cfa770f8fd1549b718a7e760b7691bb686fe9e83d SHA512 283e18514262366e0aebc23f1e48ce7fa3591e48572525c832f96ec4f943463e19904c67ab06a4b3244119750c63dc496d4a4142e1e4a55e0b4ebdc748cf6aa6
34
35 diff --git a/dev-python/sphinx/sphinx-2.0.0.ebuild b/dev-python/sphinx/sphinx-2.0.0.ebuild
36 new file mode 100644
37 index 00000000000..779ccc6065c
38 --- /dev/null
39 +++ b/dev-python/sphinx/sphinx-2.0.0.ebuild
40 @@ -0,0 +1,106 @@
41 +# Copyright 1999-2019 Gentoo Authors
42 +# Distributed under the terms of the GNU General Public License v2
43 +
44 +EAPI=6
45 +
46 +PYTHON_COMPAT=( python3_{5,6,7} pypy3 )
47 +PYTHON_REQ_USE="threads(+)"
48 +
49 +inherit distutils-r1
50 +
51 +DESCRIPTION="Python documentation generator"
52 +HOMEPAGE="http://www.sphinx-doc.org/"
53 +SRC_URI="mirror://pypi/S/${PN^}/${P^}.tar.gz"
54 +
55 +LICENSE="BSD"
56 +SLOT="0"
57 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
58 +IUSE="doc latex test"
59 +
60 +# Tests automagically use latex, bug 667414
61 +#REQUIRED_USE="test? ( latex )"
62 +RESTRICT="!test? ( test )"
63 +
64 +RDEPEND="
65 + <dev-python/alabaster-0.8[${PYTHON_USEDEP}]
66 + dev-python/Babel[${PYTHON_USEDEP}]
67 + dev-python/docutils[${PYTHON_USEDEP}]
68 + dev-python/imagesize[${PYTHON_USEDEP}]
69 + dev-python/jinja[${PYTHON_USEDEP}]
70 + dev-python/pygments[${PYTHON_USEDEP}]
71 + dev-python/requests[${PYTHON_USEDEP}]
72 + dev-python/snowballstemmer[${PYTHON_USEDEP}]
73 + dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}]
74 + dev-python/sphinxcontrib-devhelp[${PYTHON_USEDEP}]
75 + dev-python/sphinxcontrib-jsmath[${PYTHON_USEDEP}]
76 + dev-python/sphinxcontrib-htmlhelp[${PYTHON_USEDEP}]
77 + dev-python/sphinxcontrib-serializinghtml[${PYTHON_USEDEP}]
78 + dev-python/sphinxcontrib-qthelp[${PYTHON_USEDEP}]
79 + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
80 + dev-python/packaging[${PYTHON_USEDEP}]
81 + latex? (
82 + dev-texlive/texlive-latexextra
83 + dev-texlive/texlive-luatex
84 + app-text/dvipng
85 + )"
86 +DEPEND="${RDEPEND}
87 + dev-python/setuptools[${PYTHON_USEDEP}]
88 + test? (
89 + dev-python/html5lib[${PYTHON_USEDEP}]
90 + dev-python/pytest[${PYTHON_USEDEP}]
91 + virtual/imagemagick-tools[jpeg,png,svg]
92 + dev-texlive/texlive-latexextra
93 + dev-texlive/texlive-luatex
94 + app-text/dvipng
95 + )"
96 +
97 +S="${WORKDIR}/${P^}"
98 +
99 +python_prepare_all() {
100 + # remove tests that fail due to network-sandbox
101 + rm tests/test_build_linkcheck.py || die "Failed to remove web tests"
102 + sed -i -e 's:test_latex_images:_&:' tests/test_build_latex.py || die
103 + sed -i -e 's:test_latex_doc:_&:' tests/test_build_latex.py || die
104 +
105 + # requires specific locales
106 + sed -i -e 's:test_babel_with_language_:_&:' tests/test_build_latex.py || die
107 + sed -i -e 's:test_polyglossia_with_language_:_&:' tests/test_build_latex.py || die
108 +
109 + # fail for unknown reasons. TODO: find out why
110 + sed -i -e 's:test_build_latex_doc:_&:' tests/test_build_latex.py || die
111 + rm tests/test_ext_imgconverter.py || die "Failed to remove broken test"
112 +
113 + # fails when additional sphinx themes are installed
114 + sed -i -e 's:test_theme_api:_&:' tests/test_theming.py || die
115 +
116 + # fail under pypy3
117 + sed -i -e 's:test_partialmethod:_&:' tests/test_autodoc.py || die
118 + sed -i -e 's:test_partialfunction:_&:' tests/test_autodoc.py || die
119 +
120 + distutils-r1_python_prepare_all
121 +}
122 +
123 +python_compile() {
124 + distutils-r1_python_compile
125 +
126 + # Generate the grammar. It will be caught by install somehow.
127 + # Note that the tests usually do it for us. However, I don't want
128 + # to trust USE=test really running all the tests, especially
129 + # with FEATURES=test-fail-continue.
130 + pushd "${BUILD_DIR}"/lib >/dev/null || die
131 + "${EPYTHON}" -m sphinx.pycode.__init__ || die "Grammar generation failed."
132 + popd >/dev/null || die
133 +}
134 +
135 +python_compile_all() {
136 + if use doc; then
137 + esetup.py build_sphinx
138 + HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. )
139 + fi
140 +}
141 +
142 +python_test() {
143 + mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die
144 + local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir"
145 + pytest -vv || die "Tests fail with ${EPYTHON}"
146 +}