1 |
commit: dd633882d86b1e039159a0a8118f0e775cf334c3 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 3 07:41:32 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 3 10:17:40 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd633882 |
7 |
|
8 |
dev-python/sphinx: Version Bump |
9 |
|
10 |
Package-Manager: portage-2.2.25 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
dev-python/sphinx/Manifest | 1 + |
14 |
dev-python/sphinx/sphinx-1.3.3.ebuild | 136 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 137 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/sphinx/Manifest b/dev-python/sphinx/Manifest |
18 |
index f2db4fd..9998e61 100644 |
19 |
--- a/dev-python/sphinx/Manifest |
20 |
+++ b/dev-python/sphinx/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST Sphinx-1.1.3.tar.gz 2632059 SHA256 34dc95b70a2b07a61b5d61034c34b05f82514aab |
22 |
DIST Sphinx-1.2.2.tar.gz 3143671 SHA256 2d3415f5b3e6b7535877f4c84fe228bdb802a8993c239b2d02c23169d67349bd SHA512 44073c215f9d0e7f6c7bc91cb85b0508a96e5cfff5f940fef86e2fc6f11281d03b54e87e51e5a99a23e96b470a93f3af86a6a3ab7c317c747406c55b4c37791c WHIRLPOOL c5ed15b51682d3be9f8349ab838c6758cb4e25023b6ad13622d748b771594ed75f786709a25fb2d61ad245ecef0925e5bcc1aafb93fc355a0f0ea50df63efcd7 |
23 |
DIST Sphinx-1.2.3.tar.gz 3200548 SHA256 94933b64e2fe0807da0612c574a021c0dac28c7bd3c4a23723ae5a39ea8f3d04 SHA512 00346516e826a65145a3a7fd25ef7cee569ae7fdcc0c1bec3a7301fc08d5d8730d02eee792c3efedfcac17e712ea7e2ad70ea1fcdedc11720ad54f6bcb51ad05 WHIRLPOOL 0c0e2e21a52829893857939f977e8312c4eac11f5d2aec3b8e4f9c8ffdbf14c4aa46a6c26dac0ad4abfe92b3bdad72a3468e6d2ff2485df6efaf3fccd17ae69b |
24 |
DIST Sphinx-1.3.1.tar.gz 3469782 SHA256 1a6e5130c2b42d2de301693c299f78cc4bd3501e78b610c08e45efc70e2b5114 SHA512 8b92b69c4ced242c5e608ea03a7a061b0d2908f34f3150048ff4ce08b5d56be4a642a6aec13fa249ff8208fa8dd2d38d8a10d37ebbcc68385ee51f527ede0b94 WHIRLPOOL f3e442fd1f1c260b21f3e2381f028884b6247758448439e7be4cf784f50ec12494e384c77a0c4ccac473f25d7bb88f5424be937d72bb3fac1b6f6387a5746f66 |
25 |
+DIST Sphinx-1.3.3.tar.gz 3602492 SHA256 4077bff351d96bd3ebc89daa6f897f3ddcbbca055f427b36f72b75d7310270d8 SHA512 525c9b2f9c6ec7a3a9fd54c78e75894e8107d07952531d41cff22ddccd9f7a4f534583b3454bad831fc1f4ad4773a9ab017d4353310c8396cdb671831eb38f2e WHIRLPOOL 44de721c2cb59949aabfb7c49ced8f6a930899441d0661d06698a2396e60ac06ed18566035fc5dff16191995829d4b201652bb1816004f86b9de49e043c7045a |
26 |
|
27 |
diff --git a/dev-python/sphinx/sphinx-1.3.3.ebuild b/dev-python/sphinx/sphinx-1.3.3.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000..22da805 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/sphinx/sphinx-1.3.3.ebuild |
32 |
@@ -0,0 +1,136 @@ |
33 |
+# Copyright 1999-2015 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=5 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy) |
40 |
+PYTHON_REQ_USE="threads(+)" |
41 |
+ |
42 |
+inherit distutils-r1 eutils versionator |
43 |
+ |
44 |
+MY_PN="Sphinx" |
45 |
+MY_P="${MY_PN}-${PV}" |
46 |
+ |
47 |
+DESCRIPTION="Python documentation generator" |
48 |
+HOMEPAGE="http://sphinx.pocoo.org/ https://pypi.python.org/pypi/Sphinx" |
49 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="BSD" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
54 |
+IUSE="doc latex test" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ =dev-python/alabaster-0.7*[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/docutils-0.11[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/jinja-2.3[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/pygments-2.0.1-r1[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/six-1.4[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/Babel-1.3[${PYTHON_USEDEP}] |
63 |
+ !=dev-python/Babel-2.0[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/snowballstemmer-1.1[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/sphinx_rtd_theme-0.1[${PYTHON_USEDEP}] |
66 |
+ <dev-python/sphinx_rtd_theme-2.0[${PYTHON_USEDEP}] |
67 |
+ latex? ( |
68 |
+ dev-texlive/texlive-latexextra |
69 |
+ app-text/dvipng |
70 |
+ )" |
71 |
+DEPEND="${RDEPEND} |
72 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
73 |
+ test? ( |
74 |
+ dev-python/nose[${PYTHON_USEDEP}] |
75 |
+ $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy) |
76 |
+ )" |
77 |
+ |
78 |
+S="${WORKDIR}/${MY_P}" |
79 |
+ |
80 |
+python_compile() { |
81 |
+ distutils-r1_python_compile |
82 |
+ |
83 |
+ # Generate the grammar. It will be caught by install somehow. |
84 |
+ # Note that the tests usually do it for us. However, I don't want |
85 |
+ # to trust USE=test really running all the tests, especially |
86 |
+ # with FEATURES=test-fail-continue. |
87 |
+ pushd "${BUILD_DIR}"/lib > /dev/null || die |
88 |
+ "${PYTHON}" -m sphinx.pycode.__init__ \ |
89 |
+ || die "Grammar generation failed." |
90 |
+ popd > /dev/null || die |
91 |
+} |
92 |
+ |
93 |
+python_compile_all() { |
94 |
+ use doc && emake -C doc SPHINXBUILD='"${PYTHON}" "${S}/sphinx-build.py"' html |
95 |
+} |
96 |
+ |
97 |
+python_test() { |
98 |
+ mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die |
99 |
+ export SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" |
100 |
+ cp -r -l tests "${BUILD_DIR}"/ || die |
101 |
+ |
102 |
+ if $(python_is_python3); then |
103 |
+ 2to3 -w --no-diffs "${BUILD_DIR}"/tests || die |
104 |
+ fi |
105 |
+ |
106 |
+ nosetests -w "${BUILD_DIR}"/tests -v \ |
107 |
+ || die "Tests fail with ${EPYTHON}" |
108 |
+} |
109 |
+ |
110 |
+python_install_all() { |
111 |
+ use doc && local HTML_DOCS=( doc/_build/html/. ) |
112 |
+ |
113 |
+ distutils-r1_python_install_all |
114 |
+} |
115 |
+ |
116 |
+replacing_python_eclass() { |
117 |
+ local pv |
118 |
+ for pv in ${REPLACING_VERSIONS}; do |
119 |
+ if ! version_is_at_least 1.1.3-r4 ${pv}; then |
120 |
+ return 0 |
121 |
+ fi |
122 |
+ done |
123 |
+ |
124 |
+ return 1 |
125 |
+} |
126 |
+ |
127 |
+pkg_preinst() { |
128 |
+ if replacing_python_eclass; then |
129 |
+ # the old python.eclass ebuild will want to remove our pickles... |
130 |
+ backup_pickle() { |
131 |
+ # array to enable filename expansion |
132 |
+ local pickle_name=( |
133 |
+ "${D}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle |
134 |
+ ) |
135 |
+ |
136 |
+ local dest=${ROOT}${pickle_name[0]#${D}}.backup |
137 |
+ |
138 |
+ eumask_push 022 |
139 |
+ mkdir -p "${dest%/*}" || die |
140 |
+ eumask_pop |
141 |
+ |
142 |
+ cp -p -v "${pickle_name[0]}" "${dest}" \ |
143 |
+ || die "Unable to backup grammar pickle from overwriting" |
144 |
+ } |
145 |
+ |
146 |
+ python_foreach_impl backup_pickle |
147 |
+ fi |
148 |
+} |
149 |
+ |
150 |
+pkg_postinst() { |
151 |
+ if replacing_python_eclass; then |
152 |
+ local warned |
153 |
+ |
154 |
+ restore_pickle() { |
155 |
+ local backup_name=( |
156 |
+ "${ROOT}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle.backup |
157 |
+ ) |
158 |
+ local dest=${backup_name[0]%.backup} |
159 |
+ |
160 |
+ mv -v "${backup_name[0]}" "${dest}" \ |
161 |
+ || die "Unable to restore grammar pickle backup" |
162 |
+ } |
163 |
+ |
164 |
+ python_foreach_impl restore_pickle |
165 |
+ |
166 |
+ [[ ${warned} ]] && ewarn "Please try rebuilding the package." |
167 |
+ fi |
168 |
+} |