1 |
commit: fd26bfdd582eba0f140dc01e071f80fc9e80b63e |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 13 21:40:13 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 13 21:45:15 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd26bfdd |
7 |
|
8 |
dev-python/sphinx: Version bump to 1.5.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-python/sphinx/Manifest | 1 + |
13 |
dev-python/sphinx/sphinx-1.5.2.ebuild | 115 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 116 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/sphinx/Manifest b/dev-python/sphinx/Manifest |
17 |
index 80d5f32e45..1d76be7a1b 100644 |
18 |
--- a/dev-python/sphinx/Manifest |
19 |
+++ b/dev-python/sphinx/Manifest |
20 |
@@ -4,3 +4,4 @@ DIST Sphinx-1.2.3.tar.gz 3200548 SHA256 94933b64e2fe0807da0612c574a021c0dac28c7b |
21 |
DIST Sphinx-1.3.1.tar.gz 3469782 SHA256 1a6e5130c2b42d2de301693c299f78cc4bd3501e78b610c08e45efc70e2b5114 SHA512 8b92b69c4ced242c5e608ea03a7a061b0d2908f34f3150048ff4ce08b5d56be4a642a6aec13fa249ff8208fa8dd2d38d8a10d37ebbcc68385ee51f527ede0b94 WHIRLPOOL f3e442fd1f1c260b21f3e2381f028884b6247758448439e7be4cf784f50ec12494e384c77a0c4ccac473f25d7bb88f5424be937d72bb3fac1b6f6387a5746f66 |
22 |
DIST Sphinx-1.3.5.tar.gz 3679978 SHA256 b7d133bb4990d010a2ad934c319b52d8a2156cb0491484f5e2a558619bc9ae04 SHA512 90eda9cdbd24575d9f763e5c35e176d9970d1c83dd06dd41e9137f5c6035738fd21c4c57ff98810fc8adf91fa625192e6534bf0bbf70e78cc98f73df59eaabbc WHIRLPOOL 5877015f700ed0818e0879868f2190ec818d088e235d9c12fe6bd472b0006bd8d26156273023ff93a098c8503bdc440cedd1ba8758fdc25f742bb5794940559f |
23 |
DIST Sphinx-1.5.1.tar.gz 4397246 SHA256 8e6a77a20b2df950de322fc32f3b508697d9d654fe984e3cc88f446a5b4c17c5 SHA512 ec06998921663c0e01096743c7908131b6173ace42373eea8a95a3e24706db119eaf3eb096a70e12ecb5a4a135ee599abdf36c53f786bd392a32fdad45438794 WHIRLPOOL 11bc6a0d308513c8e1face57123a0048899788a7307ee75ed0d52508628f08cc64d08a889d1af3ed67f70ef71d3549fbc5ee394d79203286cb690ca61a8f8ee0 |
24 |
+DIST Sphinx-1.5.2.tar.gz 4418646 SHA256 049c48393909e4704a6ed4de76fd39c8622e165414660bfb767e981e7931c722 SHA512 32c8fb98d72e998fcce8c46ceddcbb0a0776d0e9ce75dc96cef48139b8b47ebe9636243fb48b9e04c8e1d5c56e09fc4c60248fbbef810fba9813b83a3e6cbe88 WHIRLPOOL 08fcf21ea37834e52a89f3956df289dc2ffe97e419cc0463815b3f10b95042dae5cf41be74fd1780529d5525ea349c10dd0e0bda6ac24b330ccb21e4a79e22e1 |
25 |
|
26 |
diff --git a/dev-python/sphinx/sphinx-1.5.2.ebuild b/dev-python/sphinx/sphinx-1.5.2.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000000..02202657a5 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/sphinx/sphinx-1.5.2.ebuild |
31 |
@@ -0,0 +1,115 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
39 |
+PYTHON_REQ_USE="threads(+)" |
40 |
+ |
41 |
+inherit distutils-r1 eutils versionator |
42 |
+ |
43 |
+DESCRIPTION="Python documentation generator" |
44 |
+HOMEPAGE="http://sphinx.pocoo.org/ https://pypi.python.org/pypi/Sphinx" |
45 |
+SRC_URI="mirror://pypi/S/${PN^}/${P^}.tar.gz" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~hppa ~x86" |
50 |
+IUSE="doc latex net test" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ >=dev-python/alabaster-0.7.9[${PYTHON_USEDEP}] |
54 |
+ <dev-python/alabaster-0.8[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/docutils-0.11[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/jinja-2.3[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/pygments-2.0.1-r1[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/six-1.5[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/Babel-2.1.1[${PYTHON_USEDEP}] |
60 |
+ dev-python/requests[${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/imagesize[${PYTHON_USEDEP}] |
65 |
+ latex? ( |
66 |
+ dev-texlive/texlive-latexextra |
67 |
+ app-text/dvipng |
68 |
+ ) |
69 |
+ net? ( |
70 |
+ >=dev-python/sqlalchemy-0.9[${PYTHON_USEDEP}] |
71 |
+ >=dev-python/whoosh-2.0[${PYTHON_USEDEP}] |
72 |
+ )" |
73 |
+DEPEND="${RDEPEND} |
74 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
75 |
+ test? ( |
76 |
+ dev-python/mock[${PYTHON_USEDEP}] |
77 |
+ $(python_gen_cond_dep 'dev-python/simplejson[${PYTHON_USEDEP}]' pypy) |
78 |
+ dev-python/html5lib[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/sqlalchemy-0.9[${PYTHON_USEDEP}] |
80 |
+ >=dev-python/whoosh-2.0[${PYTHON_USEDEP}] |
81 |
+ dev-python/flake8[${PYTHON_USEDEP}] |
82 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
83 |
+ dev-python/pytest-cov[${PYTHON_USEDEP}] |
84 |
+ $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' 'pypy*' 'python2*') |
85 |
+ $(python_gen_cond_dep 'dev-python/typing[${PYTHON_USEDEP}]' 'pypy*' 'python2*' python3_4 ) |
86 |
+ )" |
87 |
+ |
88 |
+S="${WORKDIR}/${P^}" |
89 |
+ |
90 |
+PATCHES=( |
91 |
+ "${FILESDIR}"/${PN}-1.5.1-fix-pycode-grammar.patch |
92 |
+) |
93 |
+ |
94 |
+python_prepare_all() { |
95 |
+ # remove tests that fail due to network-sandbox |
96 |
+ rm tests/test_websupport.py || die "Failed to remove web tests" |
97 |
+ rm tests/test_searchadapters.py || die "Failed to remove web tests" |
98 |
+ rm tests/test_build_linkcheck.py || die "Failed to remove web tests" |
99 |
+ |
100 |
+ distutils-r1_python_prepare_all |
101 |
+} |
102 |
+ |
103 |
+python_compile() { |
104 |
+ distutils-r1_python_compile |
105 |
+ |
106 |
+ # Generate the grammar. It will be caught by install somehow. |
107 |
+ # Note that the tests usually do it for us. However, I don't want |
108 |
+ # to trust USE=test really running all the tests, especially |
109 |
+ # with FEATURES=test-fail-continue. |
110 |
+ pushd "${BUILD_DIR}"/lib >/dev/null || die |
111 |
+ "${EPYTHON}" -m sphinx.pycode.__init__ || die "Grammar generation failed." |
112 |
+ popd >/dev/null || die |
113 |
+} |
114 |
+ |
115 |
+python_compile_all() { |
116 |
+ if use doc; then |
117 |
+ emake -C doc SPHINXBUILD='"${EPYTHON}" "${S}/sphinx-build.py"' html |
118 |
+ HTML_DOCS=( doc/_build/html/. ) |
119 |
+ fi |
120 |
+} |
121 |
+ |
122 |
+python_test() { |
123 |
+ mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die |
124 |
+ local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" |
125 |
+ cp -r -l tests "${BUILD_DIR}"/ || die "Failed to copy tests" |
126 |
+ cp Makefile "${BUILD_DIR}"/ || die "Failed to copy Makefile" |
127 |
+ emake test |
128 |
+} |
129 |
+ |
130 |
+pkg_postinst() { |
131 |
+ replacing_python_eclass() { |
132 |
+ local pv |
133 |
+ for pv in ${REPLACING_VERSIONS}; do |
134 |
+ if ! version_is_at_least 1.1.3-r4 ${pv}; then |
135 |
+ return 0 |
136 |
+ fi |
137 |
+ done |
138 |
+ |
139 |
+ return 1 |
140 |
+ } |
141 |
+ |
142 |
+ if replacing_python_eclass; then |
143 |
+ ewarn "Replaced a very old sphinx version. If you are" |
144 |
+ ewarn "experiencing problems, please re-emerge sphinx." |
145 |
+ fi |
146 |
+} |