1 |
floppym 13/05/23 00:31:17 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sphinx-1.1.3-r7.ebuild |
5 |
Log: |
6 |
Split the dev-python/jinja dependency in two to allow different slots to satisfy it. |
7 |
|
8 |
(Portage version: 2.2.0_alpha176/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.135 dev-python/sphinx/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?rev=1.135&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?rev=1.135&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?r1=1.134&r2=1.135 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v |
20 |
retrieving revision 1.134 |
21 |
retrieving revision 1.135 |
22 |
diff -u -r1.134 -r1.135 |
23 |
--- ChangeLog 15 Feb 2013 19:07:55 -0000 1.134 |
24 |
+++ ChangeLog 23 May 2013 00:31:17 -0000 1.135 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-python/sphinx |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.134 2013/02/15 19:07:55 ago Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.135 2013/05/23 00:31:17 floppym Exp $ |
30 |
+ |
31 |
+*sphinx-1.1.3-r7 (23 May 2013) |
32 |
+ |
33 |
+ 23 May 2013; Mike Gilbert <floppym@g.o> +sphinx-1.1.3-r7.ebuild: |
34 |
+ Split the dev-python/jinja dependency in two to allow different slots to |
35 |
+ satisfy it. |
36 |
|
37 |
15 Feb 2013; Agostino Sarubbo <ago@g.o> sphinx-1.1.3-r6.ebuild: |
38 |
Stable for x86, wrt bug #457156 |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-python/sphinx/sphinx-1.1.3-r7.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/sphinx-1.1.3-r7.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/sphinx-1.1.3-r7.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: sphinx-1.1.3-r7.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2013 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.1.3-r7.ebuild,v 1.1 2013/05/23 00:31:17 floppym Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
|
55 |
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} ) |
56 |
|
57 |
inherit distutils-r1 eutils versionator |
58 |
|
59 |
MY_PN="Sphinx" |
60 |
MY_P="${MY_PN}-${PV}" |
61 |
|
62 |
DESCRIPTION="Python documentation generator" |
63 |
HOMEPAGE="http://sphinx.pocoo.org/ http://pypi.python.org/pypi/Sphinx" |
64 |
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
65 |
|
66 |
LICENSE="BSD" |
67 |
SLOT="0" |
68 |
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" |
69 |
IUSE="doc latex test" |
70 |
|
71 |
# Split the jinja dep to allow different slots to satisfy it |
72 |
RDEPEND=">=dev-python/docutils-0.7[${PYTHON_USEDEP}] |
73 |
>=dev-python/jinja-2.3[$(python_gen_usedep python{2_5,3_1,3_2})] |
74 |
>=dev-python/jinja-2.3[$(python_gen_usedep python{2_6,2_7,3_3} 'pypy*')] |
75 |
>=dev-python/pygments-1.2[${PYTHON_USEDEP}] |
76 |
dev-python/setuptools[${PYTHON_USEDEP}] |
77 |
latex? ( |
78 |
dev-texlive/texlive-latexextra |
79 |
app-text/dvipng |
80 |
)" |
81 |
DEPEND="${DEPEND} |
82 |
test? ( dev-python/nose[${PYTHON_USEDEP}] )" |
83 |
|
84 |
S="${WORKDIR}/${MY_P}" |
85 |
|
86 |
PATCHES=( |
87 |
"${FILESDIR}"/${P}-python3.patch |
88 |
"${FILESDIR}"/${P}-docutils-manpage.patch |
89 |
) |
90 |
|
91 |
python_compile() { |
92 |
distutils-r1_python_compile |
93 |
|
94 |
# Generate the grammar. It will be caught by install somehow. |
95 |
# Note that the tests usually do it for us. However, I don't want |
96 |
# to trust USE=test really running all the tests, especially |
97 |
# with FEATURES=test-fail-continue. |
98 |
cd "${BUILD_DIR}"/lib || die |
99 |
"${PYTHON}" -m sphinx.pycode.__init__ \ |
100 |
|| die "Grammar generation failed." |
101 |
} |
102 |
|
103 |
python_compile_all() { |
104 |
use doc && emake -C doc SPHINXBUILD="${PYTHON} -m sphinx.__init__" html |
105 |
} |
106 |
|
107 |
python_test() { |
108 |
cp -r -l tests "${BUILD_DIR}"/ || die |
109 |
|
110 |
if [[ ${EPYTHON} == python3* ]]; then |
111 |
2to3 -w --no-diffs "${BUILD_DIR}"/tests || die |
112 |
fi |
113 |
|
114 |
nosetests -w "${BUILD_DIR}"/tests \ |
115 |
|| die "Tests fail with ${EPYTHON}" |
116 |
} |
117 |
|
118 |
python_install_all() { |
119 |
use doc && local HTML_DOCS=( doc/_build/html/. ) |
120 |
|
121 |
distutils-r1_python_install_all |
122 |
} |
123 |
|
124 |
replacing_python_eclass() { |
125 |
local pv |
126 |
for pv in ${REPLACING_VERSIONS}; do |
127 |
if ! version_is_at_least 1.1.3-r4 ${pv}; then |
128 |
return 0 |
129 |
fi |
130 |
done |
131 |
|
132 |
return 1 |
133 |
} |
134 |
|
135 |
pkg_preinst() { |
136 |
if replacing_python_eclass; then |
137 |
# the old python.eclass ebuild will want to remove our pickles... |
138 |
backup_pickle() { |
139 |
# array to enable filename expansion |
140 |
local pickle_name=( |
141 |
"${D}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle |
142 |
) |
143 |
|
144 |
local dest=${ROOT}${pickle_name[0]#${D}}.backup |
145 |
|
146 |
eumask_push 022 |
147 |
mkdir -p "${dest%/*}" || die |
148 |
eumask_pop |
149 |
|
150 |
cp -p -v "${pickle_name[0]}" "${dest}" \ |
151 |
|| die "Unable to backup grammar pickle from overwriting" |
152 |
} |
153 |
|
154 |
python_foreach_impl backup_pickle |
155 |
fi |
156 |
} |
157 |
|
158 |
pkg_postinst() { |
159 |
if replacing_python_eclass; then |
160 |
local warned |
161 |
|
162 |
restore_pickle() { |
163 |
local backup_name=( |
164 |
"${ROOT}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle.backup |
165 |
) |
166 |
local dest=${backup_name[0]%.backup} |
167 |
|
168 |
mv -v "${backup_name[0]}" "${dest}" \ |
169 |
|| die "Unable to restore grammar pickle backup" |
170 |
} |
171 |
|
172 |
python_foreach_impl restore_pickle |
173 |
|
174 |
[[ ${warned} ]] && ewarn "Please try rebuilding the package." |
175 |
fi |
176 |
} |