1 |
commit: bdd758d51805c1e05e2e13662a8ec6fed0d9db06 |
2 |
Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 16 00:03:47 2018 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 16 00:44:30 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdd758d5 |
7 |
|
8 |
dev-python/sphinx: remove old |
9 |
|
10 |
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
dev-python/sphinx/Manifest | 6 - |
14 |
.../files/sphinx-1.5.1-fix-pycode-grammar.patch | 14 --- |
15 |
dev-python/sphinx/sphinx-1.2.3-r1.ebuild | 125 ------------------- |
16 |
dev-python/sphinx/sphinx-1.3.1-r2.ebuild | 134 -------------------- |
17 |
dev-python/sphinx/sphinx-1.3.5-r1.ebuild | 136 --------------------- |
18 |
dev-python/sphinx/sphinx-1.6.3-r4.ebuild | 117 ------------------ |
19 |
dev-python/sphinx/sphinx-1.6.5-r1.ebuild | 117 ------------------ |
20 |
dev-python/sphinx/sphinx-1.6.7-r1.ebuild | 117 ------------------ |
21 |
8 files changed, 766 deletions(-) |
22 |
|
23 |
diff --git a/dev-python/sphinx/Manifest b/dev-python/sphinx/Manifest |
24 |
index 50e6d53958f..3124fdbaddf 100644 |
25 |
--- a/dev-python/sphinx/Manifest |
26 |
+++ b/dev-python/sphinx/Manifest |
27 |
@@ -1,8 +1,2 @@ |
28 |
DIST Sphinx-1.2.2.tar.gz 3143671 BLAKE2B a21b2a060363ac86832a6a28a623ed410ff0bb39ca3c9c58618ade88f4305996e54c559bb588c518597e31a73fc16e0c37fc57950eb077179f03715dfee72729 SHA512 44073c215f9d0e7f6c7bc91cb85b0508a96e5cfff5f940fef86e2fc6f11281d03b54e87e51e5a99a23e96b470a93f3af86a6a3ab7c317c747406c55b4c37791c |
29 |
-DIST Sphinx-1.2.3.tar.gz 3200548 BLAKE2B 42033c59e6e38247af12c78cb4f69c73b1dfa883aa8a9e6c180bb74de666b45faef24a55c0bfd3aa1f22bf3e632e0e95016eb1bea54e8b5ebc7df78756763b5c SHA512 00346516e826a65145a3a7fd25ef7cee569ae7fdcc0c1bec3a7301fc08d5d8730d02eee792c3efedfcac17e712ea7e2ad70ea1fcdedc11720ad54f6bcb51ad05 |
30 |
-DIST Sphinx-1.3.1.tar.gz 3469782 BLAKE2B ae2fa602a7873e6ef735decc2dcdd5a2632b848bb8394ee80b4215e21bfe625645fbf905a6661c333ad062e17f15b6f2c39027b44ad827f66c6467a78e8c4490 SHA512 8b92b69c4ced242c5e608ea03a7a061b0d2908f34f3150048ff4ce08b5d56be4a642a6aec13fa249ff8208fa8dd2d38d8a10d37ebbcc68385ee51f527ede0b94 |
31 |
-DIST Sphinx-1.3.5.tar.gz 3679978 BLAKE2B 2a88859bfd4a3de75a7b56fce65086e1239c3c58730280df078b3f76d368028a124aa6d4ca65c40773efa4c1a83dd047ea0d647582057c63bf82dadb5f2549e9 SHA512 90eda9cdbd24575d9f763e5c35e176d9970d1c83dd06dd41e9137f5c6035738fd21c4c57ff98810fc8adf91fa625192e6534bf0bbf70e78cc98f73df59eaabbc |
32 |
-DIST Sphinx-1.6.3.tar.gz 4674251 BLAKE2B ba13de3d72fbc5cbc3632a1062001ed287798efe5f04064d241b645d6e4c52c9d9c115aaae4ae7b94213bbddf595a93480788d66b3a54eac3c9fb415d007d4ca SHA512 d5aec58e19239db4e61fcd6b103fcc838d97aad5a7aaf9279ff1097791d9cd1ba245989307a2d1049c123058b84ca4e91db192a1672c040d80fafed3907736ae |
33 |
-DIST Sphinx-1.6.5.tar.gz 4680974 BLAKE2B 97b0cff21985de071d29651824f2954ca4d12c5095fb8049597235c8071bccb00344e89fc4a90ca010fe79a76faf0e5ae2b09ed698f1c5bcfd8f06de64169107 SHA512 c6ba7ba639f9814867d9abaaac48d58daa9d0ea9ceae4495bdbd311856833314eade2d9df7213c0357d5eea53d525c5a1235bc977a07cc7ef82e1ff0ecb51f3d |
34 |
-DIST Sphinx-1.6.7.tar.gz 4692169 BLAKE2B cde46b6e9dd2c39a592802e57becbb6f61e6d370ed08fdeb41270c8177818f48f68a6e03c174b8d70453ac6f936fa25a4c2bccbf9eb7e84a008027321db93209 SHA512 bc852d4694bf433a8a1d931bc67e4c8bf50789f833be8a338eb934325734b9fbc361c1d203ecd6e28f9c0dff5edb090556372d9403cc55d4972b18bdd4b7bfd4 |
35 |
DIST Sphinx-1.7.5.tar.gz 4726802 BLAKE2B 8d828dcae1f3ebb813c5f2de8c096a3fac4ab88b424955c27592349c544b775a21703c904a54efa7f86e1967198f4950804904a82a7142a3499f33c5343506e3 SHA512 db2a8df2cdb2ed78ce2341175575c2b04a149451b2bc8a4f74ddc73e308a19d505874fdbae4e370ce48a9b1cdb4de47cdab489bc57c1b378e857d5b8d04a07b8 |
36 |
|
37 |
diff --git a/dev-python/sphinx/files/sphinx-1.5.1-fix-pycode-grammar.patch b/dev-python/sphinx/files/sphinx-1.5.1-fix-pycode-grammar.patch |
38 |
deleted file mode 100644 |
39 |
index e72d4d45132..00000000000 |
40 |
--- a/dev-python/sphinx/files/sphinx-1.5.1-fix-pycode-grammar.patch |
41 |
+++ /dev/null |
42 |
@@ -1,14 +0,0 @@ |
43 |
-environment.py has been turned into a directory, |
44 |
-without actually porting the code using it. |
45 |
- |
46 |
---- a/sphinx/pycode/__init__.py |
47 |
-+++ b/sphinx/pycode/__init__.py |
48 |
-@@ -352,7 +352,7 @@ |
49 |
- import pprint |
50 |
- x0 = time.time() |
51 |
- # ma = ModuleAnalyzer.for_file(__file__.rstrip('c'), 'sphinx.builders.html') |
52 |
-- ma = ModuleAnalyzer.for_file('sphinx/environment.py', |
53 |
-+ ma = ModuleAnalyzer.for_file('sphinx/environment/__init__.py', |
54 |
- 'sphinx.environment') |
55 |
- ma.tokenize() |
56 |
- x1 = time.time() |
57 |
|
58 |
diff --git a/dev-python/sphinx/sphinx-1.2.3-r1.ebuild b/dev-python/sphinx/sphinx-1.2.3-r1.ebuild |
59 |
deleted file mode 100644 |
60 |
index a3f6c9baf00..00000000000 |
61 |
--- a/dev-python/sphinx/sphinx-1.2.3-r1.ebuild |
62 |
+++ /dev/null |
63 |
@@ -1,125 +0,0 @@ |
64 |
-# Copyright 1999-2017 Gentoo Foundation |
65 |
-# Distributed under the terms of the GNU General Public License v2 |
66 |
- |
67 |
-EAPI=5 |
68 |
- |
69 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) |
70 |
-PYTHON_REQ_USE="threads(+)" |
71 |
- |
72 |
-inherit distutils-r1 eutils versionator |
73 |
- |
74 |
-MY_PN="Sphinx" |
75 |
-MY_P="${MY_PN}-${PV}" |
76 |
- |
77 |
-DESCRIPTION="Python documentation generator" |
78 |
-HOMEPAGE="http://sphinx.pocoo.org/ https://pypi.org/project/Sphinx/" |
79 |
-SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
80 |
- |
81 |
-LICENSE="BSD" |
82 |
-SLOT="0" |
83 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
84 |
-IUSE="doc latex test" |
85 |
- |
86 |
-# Portage has only >= minimum required versions of all rdeps making |
87 |
-# setting of version borders unnecessary |
88 |
-RDEPEND=" |
89 |
- <dev-python/docutils-0.13[${PYTHON_USEDEP}] |
90 |
- dev-python/jinja[${PYTHON_USEDEP}] |
91 |
- dev-python/pygments[${PYTHON_USEDEP}] |
92 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
93 |
- latex? ( |
94 |
- dev-texlive/texlive-latexextra |
95 |
- app-text/dvipng |
96 |
- )" |
97 |
-DEPEND="${DEPEND} |
98 |
- test? ( dev-python/nose[${PYTHON_USEDEP}] )" |
99 |
- |
100 |
-S="${WORKDIR}/${MY_P}" |
101 |
- |
102 |
-python_compile() { |
103 |
- distutils-r1_python_compile |
104 |
- |
105 |
- # Generate the grammar. It will be caught by install somehow. |
106 |
- # Note that the tests usually do it for us. However, I don't want |
107 |
- # to trust USE=test really running all the tests, especially |
108 |
- # with FEATURES=test-fail-continue. |
109 |
- pushd "${BUILD_DIR}"/lib > /dev/null || die |
110 |
- "${PYTHON}" -m sphinx.pycode.__init__ \ |
111 |
- || die "Grammar generation failed." |
112 |
- popd > /dev/null || die |
113 |
-} |
114 |
- |
115 |
-python_compile_all() { |
116 |
- use doc && emake -C doc SPHINXBUILD='"${PYTHON}" "${S}/sphinx-build.py"' html |
117 |
-} |
118 |
- |
119 |
-python_test() { |
120 |
- cp -r -l tests "${BUILD_DIR}"/ || die |
121 |
- |
122 |
- if $(python_is_python3); then |
123 |
- 2to3 -w --no-diffs "${BUILD_DIR}"/tests || die |
124 |
- fi |
125 |
- |
126 |
- nosetests -w "${BUILD_DIR}"/tests -v \ |
127 |
- || die "Tests fail with ${EPYTHON}" |
128 |
-} |
129 |
- |
130 |
-python_install_all() { |
131 |
- use doc && local HTML_DOCS=( doc/_build/html/. ) |
132 |
- |
133 |
- distutils-r1_python_install_all |
134 |
-} |
135 |
- |
136 |
-replacing_python_eclass() { |
137 |
- local pv |
138 |
- for pv in ${REPLACING_VERSIONS}; do |
139 |
- if ! version_is_at_least 1.1.3-r4 ${pv}; then |
140 |
- return 0 |
141 |
- fi |
142 |
- done |
143 |
- |
144 |
- return 1 |
145 |
-} |
146 |
- |
147 |
-pkg_preinst() { |
148 |
- if replacing_python_eclass; then |
149 |
- # the old python.eclass ebuild will want to remove our pickles... |
150 |
- backup_pickle() { |
151 |
- # array to enable filename expansion |
152 |
- local pickle_name=( |
153 |
- "${D}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle |
154 |
- ) |
155 |
- |
156 |
- local dest=${ROOT}${pickle_name[0]#${D}}.backup |
157 |
- |
158 |
- eumask_push 022 |
159 |
- mkdir -p "${dest%/*}" || die |
160 |
- eumask_pop |
161 |
- |
162 |
- cp -p -v "${pickle_name[0]}" "${dest}" \ |
163 |
- || die "Unable to backup grammar pickle from overwriting" |
164 |
- } |
165 |
- |
166 |
- python_foreach_impl backup_pickle |
167 |
- fi |
168 |
-} |
169 |
- |
170 |
-pkg_postinst() { |
171 |
- if replacing_python_eclass; then |
172 |
- local warned |
173 |
- |
174 |
- restore_pickle() { |
175 |
- local backup_name=( |
176 |
- "${ROOT}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle.backup |
177 |
- ) |
178 |
- local dest=${backup_name[0]%.backup} |
179 |
- |
180 |
- mv -v "${backup_name[0]}" "${dest}" \ |
181 |
- || die "Unable to restore grammar pickle backup" |
182 |
- } |
183 |
- |
184 |
- python_foreach_impl restore_pickle |
185 |
- |
186 |
- [[ ${warned} ]] && ewarn "Please try rebuilding the package." |
187 |
- fi |
188 |
-} |
189 |
|
190 |
diff --git a/dev-python/sphinx/sphinx-1.3.1-r2.ebuild b/dev-python/sphinx/sphinx-1.3.1-r2.ebuild |
191 |
deleted file mode 100644 |
192 |
index 13bb7fcbe9d..00000000000 |
193 |
--- a/dev-python/sphinx/sphinx-1.3.1-r2.ebuild |
194 |
+++ /dev/null |
195 |
@@ -1,134 +0,0 @@ |
196 |
-# Copyright 1999-2017 Gentoo Foundation |
197 |
-# Distributed under the terms of the GNU General Public License v2 |
198 |
- |
199 |
-EAPI=5 |
200 |
- |
201 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy) |
202 |
-PYTHON_REQ_USE="threads(+)" |
203 |
- |
204 |
-inherit distutils-r1 eutils versionator |
205 |
- |
206 |
-MY_PN="Sphinx" |
207 |
-MY_P="${MY_PN}-${PV}" |
208 |
- |
209 |
-DESCRIPTION="Python documentation generator" |
210 |
-HOMEPAGE="http://sphinx.pocoo.org/ https://pypi.org/project/Sphinx/" |
211 |
-SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
212 |
- |
213 |
-LICENSE="BSD" |
214 |
-SLOT="0" |
215 |
-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" |
216 |
-IUSE="doc latex test" |
217 |
- |
218 |
-RDEPEND=" |
219 |
- =dev-python/alabaster-0.7*[${PYTHON_USEDEP}] |
220 |
- >=dev-python/docutils-0.11[${PYTHON_USEDEP}] |
221 |
- <dev-python/docutils-0.13[${PYTHON_USEDEP}] |
222 |
- >=dev-python/jinja-2.3[${PYTHON_USEDEP}] |
223 |
- >=dev-python/pygments-2.0.1-r1[${PYTHON_USEDEP}] |
224 |
- >=dev-python/six-1.4[${PYTHON_USEDEP}] |
225 |
- >=dev-python/Babel-1.3[${PYTHON_USEDEP}] |
226 |
- >=dev-python/snowballstemmer-1.1[${PYTHON_USEDEP}] |
227 |
- dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
228 |
- latex? ( |
229 |
- dev-texlive/texlive-latexextra |
230 |
- app-text/dvipng |
231 |
- )" |
232 |
-DEPEND="${RDEPEND} |
233 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
234 |
- test? ( |
235 |
- dev-python/nose[${PYTHON_USEDEP}] |
236 |
- $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy) |
237 |
- )" |
238 |
- |
239 |
-S="${WORKDIR}/${MY_P}" |
240 |
- |
241 |
-python_compile() { |
242 |
- distutils-r1_python_compile |
243 |
- |
244 |
- # Generate the grammar. It will be caught by install somehow. |
245 |
- # Note that the tests usually do it for us. However, I don't want |
246 |
- # to trust USE=test really running all the tests, especially |
247 |
- # with FEATURES=test-fail-continue. |
248 |
- pushd "${BUILD_DIR}"/lib > /dev/null || die |
249 |
- "${PYTHON}" -m sphinx.pycode.__init__ \ |
250 |
- || die "Grammar generation failed." |
251 |
- popd > /dev/null || die |
252 |
-} |
253 |
- |
254 |
-python_compile_all() { |
255 |
- use doc && emake -C doc SPHINXBUILD='"${PYTHON}" "${S}/sphinx-build.py"' html |
256 |
-} |
257 |
- |
258 |
-python_test() { |
259 |
- mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die |
260 |
- export SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" |
261 |
- cp -r -l tests "${BUILD_DIR}"/ || die |
262 |
- |
263 |
- if $(python_is_python3); then |
264 |
- 2to3 -w --no-diffs "${BUILD_DIR}"/tests || die |
265 |
- fi |
266 |
- |
267 |
- nosetests -w "${BUILD_DIR}"/tests -v \ |
268 |
- || die "Tests fail with ${EPYTHON}" |
269 |
-} |
270 |
- |
271 |
-python_install_all() { |
272 |
- use doc && local HTML_DOCS=( doc/_build/html/. ) |
273 |
- |
274 |
- distutils-r1_python_install_all |
275 |
-} |
276 |
- |
277 |
-replacing_python_eclass() { |
278 |
- local pv |
279 |
- for pv in ${REPLACING_VERSIONS}; do |
280 |
- if ! version_is_at_least 1.1.3-r4 ${pv}; then |
281 |
- return 0 |
282 |
- fi |
283 |
- done |
284 |
- |
285 |
- return 1 |
286 |
-} |
287 |
- |
288 |
-pkg_preinst() { |
289 |
- if replacing_python_eclass; then |
290 |
- # the old python.eclass ebuild will want to remove our pickles... |
291 |
- backup_pickle() { |
292 |
- # array to enable filename expansion |
293 |
- local pickle_name=( |
294 |
- "${D}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle |
295 |
- ) |
296 |
- |
297 |
- local dest=${ROOT}${pickle_name[0]#${D}}.backup |
298 |
- |
299 |
- eumask_push 022 |
300 |
- mkdir -p "${dest%/*}" || die |
301 |
- eumask_pop |
302 |
- |
303 |
- cp -p -v "${pickle_name[0]}" "${dest}" \ |
304 |
- || die "Unable to backup grammar pickle from overwriting" |
305 |
- } |
306 |
- |
307 |
- python_foreach_impl backup_pickle |
308 |
- fi |
309 |
-} |
310 |
- |
311 |
-pkg_postinst() { |
312 |
- if replacing_python_eclass; then |
313 |
- local warned |
314 |
- |
315 |
- restore_pickle() { |
316 |
- local backup_name=( |
317 |
- "${ROOT}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle.backup |
318 |
- ) |
319 |
- local dest=${backup_name[0]%.backup} |
320 |
- |
321 |
- mv -v "${backup_name[0]}" "${dest}" \ |
322 |
- || die "Unable to restore grammar pickle backup" |
323 |
- } |
324 |
- |
325 |
- python_foreach_impl restore_pickle |
326 |
- |
327 |
- [[ ${warned} ]] && ewarn "Please try rebuilding the package." |
328 |
- fi |
329 |
-} |
330 |
|
331 |
diff --git a/dev-python/sphinx/sphinx-1.3.5-r1.ebuild b/dev-python/sphinx/sphinx-1.3.5-r1.ebuild |
332 |
deleted file mode 100644 |
333 |
index e6be7b1317a..00000000000 |
334 |
--- a/dev-python/sphinx/sphinx-1.3.5-r1.ebuild |
335 |
+++ /dev/null |
336 |
@@ -1,136 +0,0 @@ |
337 |
-# Copyright 1999-2017 Gentoo Foundation |
338 |
-# Distributed under the terms of the GNU General Public License v2 |
339 |
- |
340 |
-EAPI=5 |
341 |
- |
342 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
343 |
-PYTHON_REQ_USE="threads(+)" |
344 |
- |
345 |
-inherit distutils-r1 eutils versionator |
346 |
- |
347 |
-MY_PN="Sphinx" |
348 |
-MY_P="${MY_PN}-${PV}" |
349 |
- |
350 |
-DESCRIPTION="Python documentation generator" |
351 |
-HOMEPAGE="http://sphinx.pocoo.org/ https://pypi.org/project/Sphinx/" |
352 |
-SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
353 |
- |
354 |
-LICENSE="BSD" |
355 |
-SLOT="0" |
356 |
-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" |
357 |
-IUSE="doc latex test" |
358 |
- |
359 |
-RDEPEND=" |
360 |
- =dev-python/alabaster-0.7*[${PYTHON_USEDEP}] |
361 |
- >=dev-python/docutils-0.11[${PYTHON_USEDEP}] |
362 |
- <dev-python/docutils-0.13[${PYTHON_USEDEP}] |
363 |
- >=dev-python/jinja-2.3[${PYTHON_USEDEP}] |
364 |
- >=dev-python/pygments-2.0.1-r1[${PYTHON_USEDEP}] |
365 |
- >=dev-python/six-1.4[${PYTHON_USEDEP}] |
366 |
- >=dev-python/Babel-1.3[${PYTHON_USEDEP}] |
367 |
- !=dev-python/Babel-2.0[${PYTHON_USEDEP}] |
368 |
- >=dev-python/snowballstemmer-1.1[${PYTHON_USEDEP}] |
369 |
- >=dev-python/sphinx_rtd_theme-0.1[${PYTHON_USEDEP}] |
370 |
- <dev-python/sphinx_rtd_theme-2.0[${PYTHON_USEDEP}] |
371 |
- latex? ( |
372 |
- dev-texlive/texlive-latexextra |
373 |
- app-text/dvipng |
374 |
- )" |
375 |
-DEPEND="${RDEPEND} |
376 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
377 |
- test? ( |
378 |
- dev-python/nose[${PYTHON_USEDEP}] |
379 |
- $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy) |
380 |
- )" |
381 |
- |
382 |
-S="${WORKDIR}/${MY_P}" |
383 |
- |
384 |
-python_compile() { |
385 |
- distutils-r1_python_compile |
386 |
- |
387 |
- # Generate the grammar. It will be caught by install somehow. |
388 |
- # Note that the tests usually do it for us. However, I don't want |
389 |
- # to trust USE=test really running all the tests, especially |
390 |
- # with FEATURES=test-fail-continue. |
391 |
- pushd "${BUILD_DIR}"/lib > /dev/null || die |
392 |
- "${PYTHON}" -m sphinx.pycode.__init__ \ |
393 |
- || die "Grammar generation failed." |
394 |
- popd > /dev/null || die |
395 |
-} |
396 |
- |
397 |
-python_compile_all() { |
398 |
- use doc && emake -C doc SPHINXBUILD='"${PYTHON}" "${S}/sphinx-build.py"' html |
399 |
-} |
400 |
- |
401 |
-python_test() { |
402 |
- mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die |
403 |
- export SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" |
404 |
- cp -r -l tests "${BUILD_DIR}"/ || die |
405 |
- |
406 |
- if $(python_is_python3); then |
407 |
- 2to3 -w --no-diffs "${BUILD_DIR}"/tests || die |
408 |
- fi |
409 |
- |
410 |
- nosetests -w "${BUILD_DIR}"/tests -v \ |
411 |
- || die "Tests fail with ${EPYTHON}" |
412 |
-} |
413 |
- |
414 |
-python_install_all() { |
415 |
- use doc && local HTML_DOCS=( doc/_build/html/. ) |
416 |
- |
417 |
- distutils-r1_python_install_all |
418 |
-} |
419 |
- |
420 |
-replacing_python_eclass() { |
421 |
- local pv |
422 |
- for pv in ${REPLACING_VERSIONS}; do |
423 |
- if ! version_is_at_least 1.1.3-r4 ${pv}; then |
424 |
- return 0 |
425 |
- fi |
426 |
- done |
427 |
- |
428 |
- return 1 |
429 |
-} |
430 |
- |
431 |
-pkg_preinst() { |
432 |
- if replacing_python_eclass; then |
433 |
- # the old python.eclass ebuild will want to remove our pickles... |
434 |
- backup_pickle() { |
435 |
- # array to enable filename expansion |
436 |
- local pickle_name=( |
437 |
- "${D}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle |
438 |
- ) |
439 |
- |
440 |
- local dest=${ROOT}${pickle_name[0]#${D}}.backup |
441 |
- |
442 |
- eumask_push 022 |
443 |
- mkdir -p "${dest%/*}" || die |
444 |
- eumask_pop |
445 |
- |
446 |
- cp -p -v "${pickle_name[0]}" "${dest}" \ |
447 |
- || die "Unable to backup grammar pickle from overwriting" |
448 |
- } |
449 |
- |
450 |
- python_foreach_impl backup_pickle |
451 |
- fi |
452 |
-} |
453 |
- |
454 |
-pkg_postinst() { |
455 |
- if replacing_python_eclass; then |
456 |
- local warned |
457 |
- |
458 |
- restore_pickle() { |
459 |
- local backup_name=( |
460 |
- "${ROOT}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle.backup |
461 |
- ) |
462 |
- local dest=${backup_name[0]%.backup} |
463 |
- |
464 |
- mv -v "${backup_name[0]}" "${dest}" \ |
465 |
- || die "Unable to restore grammar pickle backup" |
466 |
- } |
467 |
- |
468 |
- python_foreach_impl restore_pickle |
469 |
- |
470 |
- [[ ${warned} ]] && ewarn "Please try rebuilding the package." |
471 |
- fi |
472 |
-} |
473 |
|
474 |
diff --git a/dev-python/sphinx/sphinx-1.6.3-r4.ebuild b/dev-python/sphinx/sphinx-1.6.3-r4.ebuild |
475 |
deleted file mode 100644 |
476 |
index 7f1d945977a..00000000000 |
477 |
--- a/dev-python/sphinx/sphinx-1.6.3-r4.ebuild |
478 |
+++ /dev/null |
479 |
@@ -1,117 +0,0 @@ |
480 |
-# Copyright 1999-2018 Gentoo Foundation |
481 |
-# Distributed under the terms of the GNU General Public License v2 |
482 |
- |
483 |
-EAPI=6 |
484 |
- |
485 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
486 |
-PYTHON_REQ_USE="threads(+)" |
487 |
- |
488 |
-inherit distutils-r1 eutils versionator |
489 |
- |
490 |
-DESCRIPTION="Python documentation generator" |
491 |
-HOMEPAGE="http://www.sphinx-doc.org/" |
492 |
-SRC_URI="mirror://pypi/S/${PN^}/${P^}.tar.gz" |
493 |
- |
494 |
-LICENSE="BSD" |
495 |
-SLOT="0" |
496 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x64-solaris" |
497 |
-IUSE="doc latex net test" |
498 |
- |
499 |
-RDEPEND=" |
500 |
- >=dev-python/alabaster-0.7.9[${PYTHON_USEDEP}] |
501 |
- <dev-python/alabaster-0.8[${PYTHON_USEDEP}] |
502 |
- >=dev-python/Babel-2.1.1[${PYTHON_USEDEP}] |
503 |
- >=dev-python/docutils-0.11[${PYTHON_USEDEP}] |
504 |
- dev-python/imagesize[${PYTHON_USEDEP}] |
505 |
- >=dev-python/jinja-2.3[${PYTHON_USEDEP}] |
506 |
- >=dev-python/pygments-2.0.1-r1[${PYTHON_USEDEP}] |
507 |
- dev-python/requests[${PYTHON_USEDEP}] |
508 |
- >=dev-python/six-1.5[${PYTHON_USEDEP}] |
509 |
- >=dev-python/snowballstemmer-1.1[${PYTHON_USEDEP}] |
510 |
- >=dev-python/sphinx_rtd_theme-0.1[${PYTHON_USEDEP}] |
511 |
- <dev-python/sphinx_rtd_theme-2.0[${PYTHON_USEDEP}] |
512 |
- dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] |
513 |
- virtual/python-typing[${PYTHON_USEDEP}] |
514 |
- latex? ( |
515 |
- dev-texlive/texlive-latexextra |
516 |
- dev-texlive/texlive-luatex |
517 |
- app-text/dvipng |
518 |
- ) |
519 |
- net? ( |
520 |
- >=dev-python/sqlalchemy-0.9[${PYTHON_USEDEP}] |
521 |
- >=dev-python/whoosh-2.0[${PYTHON_USEDEP}] |
522 |
- )" |
523 |
-DEPEND="${RDEPEND} |
524 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
525 |
- test? ( |
526 |
- dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] |
527 |
- dev-python/flake8[${PYTHON_USEDEP}] |
528 |
- dev-python/html5lib[${PYTHON_USEDEP}] |
529 |
- dev-python/mock[${PYTHON_USEDEP}] |
530 |
- dev-python/pytest[${PYTHON_USEDEP}] |
531 |
- dev-python/pytest-cov[${PYTHON_USEDEP}] |
532 |
- dev-python/simplejson[${PYTHON_USEDEP}] |
533 |
- >=dev-python/sqlalchemy-0.9[${PYTHON_USEDEP}] |
534 |
- >=dev-python/whoosh-2.0[${PYTHON_USEDEP}] |
535 |
- virtual/imagemagick-tools[jpeg,png,svg] |
536 |
- virtual/python-enum34[${PYTHON_USEDEP}] |
537 |
- )" |
538 |
- |
539 |
-S="${WORKDIR}/${P^}" |
540 |
- |
541 |
-PATCHES=( |
542 |
- "${FILESDIR}"/${PN}-1.5.1-fix-pycode-grammar.patch |
543 |
-) |
544 |
- |
545 |
-python_prepare_all() { |
546 |
- # remove tests that fail due to network-sandbox |
547 |
- rm tests/test_websupport.py || die "Failed to remove web tests" |
548 |
- rm tests/test_build_linkcheck.py || die "Failed to remove web tests" |
549 |
- |
550 |
- distutils-r1_python_prepare_all |
551 |
-} |
552 |
- |
553 |
-python_compile() { |
554 |
- distutils-r1_python_compile |
555 |
- |
556 |
- # Generate the grammar. It will be caught by install somehow. |
557 |
- # Note that the tests usually do it for us. However, I don't want |
558 |
- # to trust USE=test really running all the tests, especially |
559 |
- # with FEATURES=test-fail-continue. |
560 |
- pushd "${BUILD_DIR}"/lib >/dev/null || die |
561 |
- "${EPYTHON}" -m sphinx.pycode.__init__ || die "Grammar generation failed." |
562 |
- popd >/dev/null || die |
563 |
-} |
564 |
- |
565 |
-python_compile_all() { |
566 |
- if use doc; then |
567 |
- emake -C doc SPHINXBUILD='"${EPYTHON}" "${S}/sphinx-build.py"' html |
568 |
- HTML_DOCS=( doc/_build/html/. ) |
569 |
- fi |
570 |
-} |
571 |
- |
572 |
-python_test() { |
573 |
- mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die |
574 |
- local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" |
575 |
- cp -r -l tests "${BUILD_DIR}"/ || die "Failed to copy tests" |
576 |
- cp Makefile "${BUILD_DIR}"/ || die "Failed to copy Makefile" |
577 |
- emake test |
578 |
-} |
579 |
- |
580 |
-pkg_postinst() { |
581 |
- replacing_python_eclass() { |
582 |
- local pv |
583 |
- for pv in ${REPLACING_VERSIONS}; do |
584 |
- if ! version_is_at_least 1.1.3-r4 ${pv}; then |
585 |
- return 0 |
586 |
- fi |
587 |
- done |
588 |
- |
589 |
- return 1 |
590 |
- } |
591 |
- |
592 |
- if replacing_python_eclass; then |
593 |
- ewarn "Replaced a very old sphinx version. If you are" |
594 |
- ewarn "experiencing problems, please re-emerge sphinx." |
595 |
- fi |
596 |
-} |
597 |
|
598 |
diff --git a/dev-python/sphinx/sphinx-1.6.5-r1.ebuild b/dev-python/sphinx/sphinx-1.6.5-r1.ebuild |
599 |
deleted file mode 100644 |
600 |
index ad810d050f8..00000000000 |
601 |
--- a/dev-python/sphinx/sphinx-1.6.5-r1.ebuild |
602 |
+++ /dev/null |
603 |
@@ -1,117 +0,0 @@ |
604 |
-# Copyright 1999-2018 Gentoo Foundation |
605 |
-# Distributed under the terms of the GNU General Public License v2 |
606 |
- |
607 |
-EAPI=6 |
608 |
- |
609 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
610 |
-PYTHON_REQ_USE="threads(+)" |
611 |
- |
612 |
-inherit distutils-r1 eutils versionator |
613 |
- |
614 |
-DESCRIPTION="Python documentation generator" |
615 |
-HOMEPAGE="http://www.sphinx-doc.org/" |
616 |
-SRC_URI="mirror://pypi/S/${PN^}/${P^}.tar.gz" |
617 |
- |
618 |
-LICENSE="BSD" |
619 |
-SLOT="0" |
620 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" |
621 |
-IUSE="doc latex net test" |
622 |
- |
623 |
-RDEPEND=" |
624 |
- >=dev-python/alabaster-0.7.9[${PYTHON_USEDEP}] |
625 |
- <dev-python/alabaster-0.8[${PYTHON_USEDEP}] |
626 |
- >=dev-python/Babel-2.1.1[${PYTHON_USEDEP}] |
627 |
- >=dev-python/docutils-0.11[${PYTHON_USEDEP}] |
628 |
- dev-python/imagesize[${PYTHON_USEDEP}] |
629 |
- >=dev-python/jinja-2.3[${PYTHON_USEDEP}] |
630 |
- >=dev-python/pygments-2.0.1-r1[${PYTHON_USEDEP}] |
631 |
- dev-python/requests[${PYTHON_USEDEP}] |
632 |
- >=dev-python/six-1.5[${PYTHON_USEDEP}] |
633 |
- >=dev-python/snowballstemmer-1.1[${PYTHON_USEDEP}] |
634 |
- >=dev-python/sphinx_rtd_theme-0.1[${PYTHON_USEDEP}] |
635 |
- <dev-python/sphinx_rtd_theme-2.0[${PYTHON_USEDEP}] |
636 |
- dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] |
637 |
- virtual/python-typing[${PYTHON_USEDEP}] |
638 |
- latex? ( |
639 |
- dev-texlive/texlive-latexextra |
640 |
- dev-texlive/texlive-luatex |
641 |
- app-text/dvipng |
642 |
- ) |
643 |
- net? ( |
644 |
- >=dev-python/sqlalchemy-0.9[${PYTHON_USEDEP}] |
645 |
- >=dev-python/whoosh-2.0[${PYTHON_USEDEP}] |
646 |
- )" |
647 |
-DEPEND="${RDEPEND} |
648 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
649 |
- test? ( |
650 |
- dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] |
651 |
- dev-python/flake8[${PYTHON_USEDEP}] |
652 |
- dev-python/html5lib[${PYTHON_USEDEP}] |
653 |
- dev-python/mock[${PYTHON_USEDEP}] |
654 |
- dev-python/pytest[${PYTHON_USEDEP}] |
655 |
- dev-python/pytest-cov[${PYTHON_USEDEP}] |
656 |
- dev-python/simplejson[${PYTHON_USEDEP}] |
657 |
- >=dev-python/sqlalchemy-0.9[${PYTHON_USEDEP}] |
658 |
- >=dev-python/whoosh-2.0[${PYTHON_USEDEP}] |
659 |
- virtual/imagemagick-tools[jpeg,png,svg] |
660 |
- virtual/python-enum34[${PYTHON_USEDEP}] |
661 |
- )" |
662 |
- |
663 |
-S="${WORKDIR}/${P^}" |
664 |
- |
665 |
-PATCHES=( |
666 |
- "${FILESDIR}"/${PN}-1.5.1-fix-pycode-grammar.patch |
667 |
-) |
668 |
- |
669 |
-python_prepare_all() { |
670 |
- # remove tests that fail due to network-sandbox |
671 |
- rm tests/test_websupport.py || die "Failed to remove web tests" |
672 |
- rm tests/test_build_linkcheck.py || die "Failed to remove web tests" |
673 |
- |
674 |
- distutils-r1_python_prepare_all |
675 |
-} |
676 |
- |
677 |
-python_compile() { |
678 |
- distutils-r1_python_compile |
679 |
- |
680 |
- # Generate the grammar. It will be caught by install somehow. |
681 |
- # Note that the tests usually do it for us. However, I don't want |
682 |
- # to trust USE=test really running all the tests, especially |
683 |
- # with FEATURES=test-fail-continue. |
684 |
- pushd "${BUILD_DIR}"/lib >/dev/null || die |
685 |
- "${EPYTHON}" -m sphinx.pycode.__init__ || die "Grammar generation failed." |
686 |
- popd >/dev/null || die |
687 |
-} |
688 |
- |
689 |
-python_compile_all() { |
690 |
- if use doc; then |
691 |
- emake -C doc SPHINXBUILD='"${EPYTHON}" "${S}/sphinx-build.py"' html |
692 |
- HTML_DOCS=( doc/_build/html/. ) |
693 |
- fi |
694 |
-} |
695 |
- |
696 |
-python_test() { |
697 |
- mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die |
698 |
- local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" |
699 |
- cp -r -l tests "${BUILD_DIR}"/ || die "Failed to copy tests" |
700 |
- cp Makefile "${BUILD_DIR}"/ || die "Failed to copy Makefile" |
701 |
- emake test |
702 |
-} |
703 |
- |
704 |
-pkg_postinst() { |
705 |
- replacing_python_eclass() { |
706 |
- local pv |
707 |
- for pv in ${REPLACING_VERSIONS}; do |
708 |
- if ! version_is_at_least 1.1.3-r4 ${pv}; then |
709 |
- return 0 |
710 |
- fi |
711 |
- done |
712 |
- |
713 |
- return 1 |
714 |
- } |
715 |
- |
716 |
- if replacing_python_eclass; then |
717 |
- ewarn "Replaced a very old sphinx version. If you are" |
718 |
- ewarn "experiencing problems, please re-emerge sphinx." |
719 |
- fi |
720 |
-} |
721 |
|
722 |
diff --git a/dev-python/sphinx/sphinx-1.6.7-r1.ebuild b/dev-python/sphinx/sphinx-1.6.7-r1.ebuild |
723 |
deleted file mode 100644 |
724 |
index dbbac7ab54b..00000000000 |
725 |
--- a/dev-python/sphinx/sphinx-1.6.7-r1.ebuild |
726 |
+++ /dev/null |
727 |
@@ -1,117 +0,0 @@ |
728 |
-# Copyright 1999-2018 Gentoo Foundation |
729 |
-# Distributed under the terms of the GNU General Public License v2 |
730 |
- |
731 |
-EAPI=6 |
732 |
- |
733 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
734 |
-PYTHON_REQ_USE="threads(+)" |
735 |
- |
736 |
-inherit distutils-r1 eutils versionator |
737 |
- |
738 |
-DESCRIPTION="Python documentation generator" |
739 |
-HOMEPAGE="http://www.sphinx-doc.org/" |
740 |
-SRC_URI="mirror://pypi/S/${PN^}/${P^}.tar.gz" |
741 |
- |
742 |
-LICENSE="BSD" |
743 |
-SLOT="0" |
744 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~ppc-macos ~x86-fbsd ~x86-macos ~x86-linux ~x64-macos ~x64-solaris" |
745 |
-IUSE="doc latex net test" |
746 |
- |
747 |
-RDEPEND=" |
748 |
- >=dev-python/alabaster-0.7.9[${PYTHON_USEDEP}] |
749 |
- <dev-python/alabaster-0.8[${PYTHON_USEDEP}] |
750 |
- >=dev-python/Babel-2.1.1[${PYTHON_USEDEP}] |
751 |
- >=dev-python/docutils-0.11[${PYTHON_USEDEP}] |
752 |
- dev-python/imagesize[${PYTHON_USEDEP}] |
753 |
- >=dev-python/jinja-2.3[${PYTHON_USEDEP}] |
754 |
- >=dev-python/pygments-2.0.1-r1[${PYTHON_USEDEP}] |
755 |
- dev-python/requests[${PYTHON_USEDEP}] |
756 |
- >=dev-python/six-1.5[${PYTHON_USEDEP}] |
757 |
- >=dev-python/snowballstemmer-1.1[${PYTHON_USEDEP}] |
758 |
- >=dev-python/sphinx_rtd_theme-0.1[${PYTHON_USEDEP}] |
759 |
- <dev-python/sphinx_rtd_theme-2.0[${PYTHON_USEDEP}] |
760 |
- dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] |
761 |
- virtual/python-typing[${PYTHON_USEDEP}] |
762 |
- latex? ( |
763 |
- dev-texlive/texlive-latexextra |
764 |
- dev-texlive/texlive-luatex |
765 |
- app-text/dvipng |
766 |
- ) |
767 |
- net? ( |
768 |
- >=dev-python/sqlalchemy-0.9[${PYTHON_USEDEP}] |
769 |
- >=dev-python/whoosh-2.0[${PYTHON_USEDEP}] |
770 |
- )" |
771 |
-DEPEND="${RDEPEND} |
772 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
773 |
- test? ( |
774 |
- dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] |
775 |
- dev-python/flake8[${PYTHON_USEDEP}] |
776 |
- dev-python/html5lib[${PYTHON_USEDEP}] |
777 |
- dev-python/mock[${PYTHON_USEDEP}] |
778 |
- dev-python/pytest[${PYTHON_USEDEP}] |
779 |
- dev-python/pytest-cov[${PYTHON_USEDEP}] |
780 |
- dev-python/simplejson[${PYTHON_USEDEP}] |
781 |
- >=dev-python/sqlalchemy-0.9[${PYTHON_USEDEP}] |
782 |
- >=dev-python/whoosh-2.0[${PYTHON_USEDEP}] |
783 |
- virtual/imagemagick-tools[jpeg,png,svg] |
784 |
- virtual/python-enum34[${PYTHON_USEDEP}] |
785 |
- )" |
786 |
- |
787 |
-S="${WORKDIR}/${P^}" |
788 |
- |
789 |
-PATCHES=( |
790 |
- "${FILESDIR}"/${PN}-1.5.1-fix-pycode-grammar.patch |
791 |
-) |
792 |
- |
793 |
-python_prepare_all() { |
794 |
- # remove tests that fail due to network-sandbox |
795 |
- rm tests/test_websupport.py || die "Failed to remove web tests" |
796 |
- rm tests/test_build_linkcheck.py || die "Failed to remove web tests" |
797 |
- |
798 |
- distutils-r1_python_prepare_all |
799 |
-} |
800 |
- |
801 |
-python_compile() { |
802 |
- distutils-r1_python_compile |
803 |
- |
804 |
- # Generate the grammar. It will be caught by install somehow. |
805 |
- # Note that the tests usually do it for us. However, I don't want |
806 |
- # to trust USE=test really running all the tests, especially |
807 |
- # with FEATURES=test-fail-continue. |
808 |
- pushd "${BUILD_DIR}"/lib >/dev/null || die |
809 |
- "${EPYTHON}" -m sphinx.pycode.__init__ || die "Grammar generation failed." |
810 |
- popd >/dev/null || die |
811 |
-} |
812 |
- |
813 |
-python_compile_all() { |
814 |
- if use doc; then |
815 |
- emake -C doc SPHINXBUILD='"${EPYTHON}" "${S}/sphinx-build.py"' html |
816 |
- HTML_DOCS=( doc/_build/html/. ) |
817 |
- fi |
818 |
-} |
819 |
- |
820 |
-python_test() { |
821 |
- mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die |
822 |
- local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" |
823 |
- cp -r -l tests "${BUILD_DIR}"/ || die "Failed to copy tests" |
824 |
- cp Makefile "${BUILD_DIR}"/ || die "Failed to copy Makefile" |
825 |
- emake test |
826 |
-} |
827 |
- |
828 |
-pkg_postinst() { |
829 |
- replacing_python_eclass() { |
830 |
- local pv |
831 |
- for pv in ${REPLACING_VERSIONS}; do |
832 |
- if ! version_is_at_least 1.1.3-r4 ${pv}; then |
833 |
- return 0 |
834 |
- fi |
835 |
- done |
836 |
- |
837 |
- return 1 |
838 |
- } |
839 |
- |
840 |
- if replacing_python_eclass; then |
841 |
- ewarn "Replaced a very old sphinx version. If you are" |
842 |
- ewarn "experiencing problems, please re-emerge sphinx." |
843 |
- fi |
844 |
-} |