Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/sphinx: sphinx-1.2.ebuild ChangeLog sphinx-1.2.1.ebuild
Date: Wed, 22 Jan 2014 13:19:57
Message-Id: 20140122131954.1BF022004C@flycatcher.gentoo.org
1 jlec 14/01/22 13:19:54
2
3 Modified: sphinx-1.2.ebuild ChangeLog
4 Added: sphinx-1.2.1.ebuild
5 Log:
6 dev-python/sphinx: Version Bump
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
9
10 Revision Changes Path
11 1.2 dev-python/sphinx/sphinx-1.2.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/sphinx-1.2.ebuild?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/sphinx-1.2.ebuild?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/sphinx-1.2.ebuild?r1=1.1&r2=1.2
16
17 Index: sphinx-1.2.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.2.ebuild,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- sphinx-1.2.ebuild 12 Dec 2013 09:24:51 -0000 1.1
24 +++ sphinx-1.2.ebuild 22 Jan 2014 13:19:53 -0000 1.2
25 @@ -1,6 +1,6 @@
26 -# Copyright 1999-2013 Gentoo Foundation
27 +# Copyright 1999-2014 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.2.ebuild,v 1.1 2013/12/12 09:24:51 jlec Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.2.ebuild,v 1.2 2014/01/22 13:19:53 jlec Exp $
31
32 EAPI=5
33
34 @@ -23,7 +23,7 @@
35 # Split the jinja dep to allow different slots to satisfy it
36 RDEPEND="
37 >=dev-python/docutils-0.7[${PYTHON_USEDEP}]
38 - >=dev-python/jinja-2.3[$(python_gen_usedep python{2_5,3_1,3_2})]
39 + >=dev-python/jinja-2.3[$(python_gen_usedep python3_2)]
40 >=dev-python/jinja-2.3[$(python_gen_usedep python{2_6,2_7,3_3} 'pypy*')]
41 >=dev-python/pygments-1.2[${PYTHON_USEDEP}]
42 dev-python/setuptools[${PYTHON_USEDEP}]
43
44
45
46 1.159 dev-python/sphinx/ChangeLog
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?rev=1.159&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?rev=1.159&content-type=text/plain
50 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?r1=1.158&r2=1.159
51
52 Index: ChangeLog
53 ===================================================================
54 RCS file: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v
55 retrieving revision 1.158
56 retrieving revision 1.159
57 diff -u -r1.158 -r1.159
58 --- ChangeLog 12 Dec 2013 09:24:51 -0000 1.158
59 +++ ChangeLog 22 Jan 2014 13:19:53 -0000 1.159
60 @@ -1,6 +1,12 @@
61 # ChangeLog for dev-python/sphinx
62 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
63 -# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.158 2013/12/12 09:24:51 jlec Exp $
64 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
65 +# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.159 2014/01/22 13:19:53 jlec Exp $
66 +
67 +*sphinx-1.2.1 (22 Jan 2014)
68 +
69 + 22 Jan 2014; Justin Lecher <jlec@g.o> sphinx-1.2.ebuild,
70 + +sphinx-1.2.1.ebuild:
71 + Version Bump
72
73 *sphinx-1.2 (12 Dec 2013)
74
75
76
77
78 1.1 dev-python/sphinx/sphinx-1.2.1.ebuild
79
80 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/sphinx-1.2.1.ebuild?rev=1.1&view=markup
81 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/sphinx-1.2.1.ebuild?rev=1.1&content-type=text/plain
82
83 Index: sphinx-1.2.1.ebuild
84 ===================================================================
85 # Copyright 1999-2014 Gentoo Foundation
86 # Distributed under the terms of the GNU General Public License v2
87 # $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.2.1.ebuild,v 1.1 2014/01/22 13:19:53 jlec Exp $
88
89 EAPI=5
90
91 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
92
93 inherit distutils-r1 eutils versionator
94
95 MY_PN="Sphinx"
96 MY_P="${MY_PN}-${PV}"
97
98 DESCRIPTION="Python documentation generator"
99 HOMEPAGE="http://sphinx.pocoo.org/ http://pypi.python.org/pypi/Sphinx"
100 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
101
102 LICENSE="BSD"
103 SLOT="0"
104 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
105 IUSE="doc latex test"
106
107 # Split the jinja dep to allow different slots to satisfy it
108 RDEPEND="
109 >=dev-python/docutils-0.7[${PYTHON_USEDEP}]
110 >=dev-python/jinja-2.3[$(python_gen_usedep python3_2)]
111 >=dev-python/jinja-2.3[$(python_gen_usedep python{2_6,2_7,3_3} 'pypy*')]
112 >=dev-python/pygments-1.2[${PYTHON_USEDEP}]
113 dev-python/setuptools[${PYTHON_USEDEP}]
114 latex? (
115 dev-texlive/texlive-latexextra
116 app-text/dvipng
117 )"
118 DEPEND="${DEPEND}
119 test? ( dev-python/nose[${PYTHON_USEDEP}] )"
120
121 S="${WORKDIR}/${MY_P}"
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 cd "${BUILD_DIR}"/lib || die
131 "${PYTHON}" -m sphinx.pycode.__init__ \
132 || die "Grammar generation failed."
133 }
134
135 python_compile_all() {
136 use doc && emake -C doc SPHINXBUILD="${PYTHON} -m sphinx.__init__" html
137 }
138
139 python_test() {
140 cp -r -l tests "${BUILD_DIR}"/ || die
141
142 if $(python_is_python3); then
143 2to3 -w --no-diffs "${BUILD_DIR}"/tests || die
144 fi
145
146 nosetests -w "${BUILD_DIR}"/tests -v \
147 || die "Tests fail with ${EPYTHON}"
148 }
149
150 python_install_all() {
151 use doc && local HTML_DOCS=( doc/_build/html/. )
152
153 distutils-r1_python_install_all
154 }
155
156 replacing_python_eclass() {
157 local pv
158 for pv in ${REPLACING_VERSIONS}; do
159 if ! version_is_at_least 1.1.3-r4 ${pv}; then
160 return 0
161 fi
162 done
163
164 return 1
165 }
166
167 pkg_preinst() {
168 if replacing_python_eclass; then
169 # the old python.eclass ebuild will want to remove our pickles...
170 backup_pickle() {
171 # array to enable filename expansion
172 local pickle_name=(
173 "${D}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle
174 )
175
176 local dest=${ROOT}${pickle_name[0]#${D}}.backup
177
178 eumask_push 022
179 mkdir -p "${dest%/*}" || die
180 eumask_pop
181
182 cp -p -v "${pickle_name[0]}" "${dest}" \
183 || die "Unable to backup grammar pickle from overwriting"
184 }
185
186 python_foreach_impl backup_pickle
187 fi
188 }
189
190 pkg_postinst() {
191 if replacing_python_eclass; then
192 local warned
193
194 restore_pickle() {
195 local backup_name=(
196 "${ROOT}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle.backup
197 )
198 local dest=${backup_name[0]%.backup}
199
200 mv -v "${backup_name[0]}" "${dest}" \
201 || die "Unable to restore grammar pickle backup"
202 }
203
204 python_foreach_impl restore_pickle
205
206 [[ ${warned} ]] && ewarn "Please try rebuilding the package."
207 fi
208 }