Gentoo Archives: gentoo-commits

From: Patrick Lauer <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sphinx/
Date: Sat, 24 Feb 2018 15:17:51
Message-Id: 1519485463.a2b39c677ee0694bb965b6cd6e63c3babb751ed7.patrick@gentoo
1 commit: a2b39c677ee0694bb965b6cd6e63c3babb751ed7
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 24 14:51:12 2018 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 24 15:17:43 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2b39c67
7
8 dev-python/sphinx: Bump
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 dev-python/sphinx/Manifest | 1 +
13 dev-python/sphinx/sphinx-1.6.7.ebuild | 117 ++++++++++++++++++++++++++++++++++
14 2 files changed, 118 insertions(+)
15
16 diff --git a/dev-python/sphinx/Manifest b/dev-python/sphinx/Manifest
17 index e25a682915e..b239fea6397 100644
18 --- a/dev-python/sphinx/Manifest
19 +++ b/dev-python/sphinx/Manifest
20 @@ -4,3 +4,4 @@ DIST Sphinx-1.3.1.tar.gz 3469782 BLAKE2B ae2fa602a7873e6ef735decc2dcdd5a2632b848
21 DIST Sphinx-1.3.5.tar.gz 3679978 BLAKE2B 2a88859bfd4a3de75a7b56fce65086e1239c3c58730280df078b3f76d368028a124aa6d4ca65c40773efa4c1a83dd047ea0d647582057c63bf82dadb5f2549e9 SHA512 90eda9cdbd24575d9f763e5c35e176d9970d1c83dd06dd41e9137f5c6035738fd21c4c57ff98810fc8adf91fa625192e6534bf0bbf70e78cc98f73df59eaabbc
22 DIST Sphinx-1.6.3.tar.gz 4674251 BLAKE2B ba13de3d72fbc5cbc3632a1062001ed287798efe5f04064d241b645d6e4c52c9d9c115aaae4ae7b94213bbddf595a93480788d66b3a54eac3c9fb415d007d4ca SHA512 d5aec58e19239db4e61fcd6b103fcc838d97aad5a7aaf9279ff1097791d9cd1ba245989307a2d1049c123058b84ca4e91db192a1672c040d80fafed3907736ae
23 DIST Sphinx-1.6.5.tar.gz 4680974 BLAKE2B 97b0cff21985de071d29651824f2954ca4d12c5095fb8049597235c8071bccb00344e89fc4a90ca010fe79a76faf0e5ae2b09ed698f1c5bcfd8f06de64169107 SHA512 c6ba7ba639f9814867d9abaaac48d58daa9d0ea9ceae4495bdbd311856833314eade2d9df7213c0357d5eea53d525c5a1235bc977a07cc7ef82e1ff0ecb51f3d
24 +DIST Sphinx-1.6.7.tar.gz 4692169 BLAKE2B cde46b6e9dd2c39a592802e57becbb6f61e6d370ed08fdeb41270c8177818f48f68a6e03c174b8d70453ac6f936fa25a4c2bccbf9eb7e84a008027321db93209 SHA512 bc852d4694bf433a8a1d931bc67e4c8bf50789f833be8a338eb934325734b9fbc361c1d203ecd6e28f9c0dff5edb090556372d9403cc55d4972b18bdd4b7bfd4
25
26 diff --git a/dev-python/sphinx/sphinx-1.6.7.ebuild b/dev-python/sphinx/sphinx-1.6.7.ebuild
27 new file mode 100644
28 index 00000000000..c152f62da5e
29 --- /dev/null
30 +++ b/dev-python/sphinx/sphinx-1.6.7.ebuild
31 @@ -0,0 +1,117 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
38 +PYTHON_REQ_USE="threads(+)"
39 +
40 +inherit distutils-r1 eutils versionator
41 +
42 +DESCRIPTION="Python documentation generator"
43 +HOMEPAGE="http://www.sphinx-doc.org/"
44 +SRC_URI="mirror://pypi/S/${PN^}/${P^}.tar.gz"
45 +
46 +LICENSE="BSD"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~x64-solaris"
49 +IUSE="doc latex net test"
50 +
51 +RDEPEND="
52 + >=dev-python/alabaster-0.7.9[${PYTHON_USEDEP}]
53 + <dev-python/alabaster-0.8[${PYTHON_USEDEP}]
54 + >=dev-python/Babel-2.1.1[${PYTHON_USEDEP}]
55 + >=dev-python/docutils-0.11[${PYTHON_USEDEP}]
56 + dev-python/imagesize[${PYTHON_USEDEP}]
57 + >=dev-python/jinja-2.3[${PYTHON_USEDEP}]
58 + >=dev-python/pygments-2.0.1-r1[${PYTHON_USEDEP}]
59 + dev-python/requests[${PYTHON_USEDEP}]
60 + >=dev-python/six-1.5[${PYTHON_USEDEP}]
61 + >=dev-python/snowballstemmer-1.1[${PYTHON_USEDEP}]
62 + >=dev-python/sphinx_rtd_theme-0.1[${PYTHON_USEDEP}]
63 + <dev-python/sphinx_rtd_theme-2.0[${PYTHON_USEDEP}]
64 + dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}]
65 + dev-python/typing[${PYTHON_USEDEP}]
66 + latex? (
67 + dev-texlive/texlive-latexextra
68 + dev-texlive/texlive-luatex
69 + app-text/dvipng
70 + )
71 + net? (
72 + >=dev-python/sqlalchemy-0.9[${PYTHON_USEDEP}]
73 + >=dev-python/whoosh-2.0[${PYTHON_USEDEP}]
74 + )"
75 +DEPEND="${RDEPEND}
76 + dev-python/setuptools[${PYTHON_USEDEP}]
77 + test? (
78 + dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}]
79 + dev-python/flake8[${PYTHON_USEDEP}]
80 + dev-python/html5lib[${PYTHON_USEDEP}]
81 + dev-python/mock[${PYTHON_USEDEP}]
82 + dev-python/pytest[${PYTHON_USEDEP}]
83 + dev-python/pytest-cov[${PYTHON_USEDEP}]
84 + dev-python/simplejson[${PYTHON_USEDEP}]
85 + >=dev-python/sqlalchemy-0.9[${PYTHON_USEDEP}]
86 + >=dev-python/whoosh-2.0[${PYTHON_USEDEP}]
87 + virtual/imagemagick-tools[jpeg,png,svg]
88 + virtual/python-enum34[${PYTHON_USEDEP}]
89 + )"
90 +
91 +S="${WORKDIR}/${P^}"
92 +
93 +PATCHES=(
94 + "${FILESDIR}"/${PN}-1.5.1-fix-pycode-grammar.patch
95 +)
96 +
97 +python_prepare_all() {
98 + # remove tests that fail due to network-sandbox
99 + rm tests/test_websupport.py || die "Failed to remove web tests"
100 + rm tests/test_build_linkcheck.py || die "Failed to remove web tests"
101 +
102 + distutils-r1_python_prepare_all
103 +}
104 +
105 +python_compile() {
106 + distutils-r1_python_compile
107 +
108 + # Generate the grammar. It will be caught by install somehow.
109 + # Note that the tests usually do it for us. However, I don't want
110 + # to trust USE=test really running all the tests, especially
111 + # with FEATURES=test-fail-continue.
112 + pushd "${BUILD_DIR}"/lib >/dev/null || die
113 + "${EPYTHON}" -m sphinx.pycode.__init__ || die "Grammar generation failed."
114 + popd >/dev/null || die
115 +}
116 +
117 +python_compile_all() {
118 + if use doc; then
119 + emake -C doc SPHINXBUILD='"${EPYTHON}" "${S}/sphinx-build.py"' html
120 + HTML_DOCS=( doc/_build/html/. )
121 + fi
122 +}
123 +
124 +python_test() {
125 + mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die
126 + local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir"
127 + cp -r -l tests "${BUILD_DIR}"/ || die "Failed to copy tests"
128 + cp Makefile "${BUILD_DIR}"/ || die "Failed to copy Makefile"
129 + emake test
130 +}
131 +
132 +pkg_postinst() {
133 + replacing_python_eclass() {
134 + local pv
135 + for pv in ${REPLACING_VERSIONS}; do
136 + if ! version_is_at_least 1.1.3-r4 ${pv}; then
137 + return 0
138 + fi
139 + done
140 +
141 + return 1
142 + }
143 +
144 + if replacing_python_eclass; then
145 + ewarn "Replaced a very old sphinx version. If you are"
146 + ewarn "experiencing problems, please re-emerge sphinx."
147 + fi
148 +}