1 |
floppym 12/03/31 19:55:28 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sphinx-1.1.3-r1.ebuild |
5 |
Log: |
6 |
Make sphinx-build wrapper respect EPYTHON. Ported from Progress. |
7 |
|
8 |
(Portage version: 2.2.0_alpha96/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.102 dev-python/sphinx/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?rev=1.102&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?rev=1.102&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?r1=1.101&r2=1.102 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v |
20 |
retrieving revision 1.101 |
21 |
retrieving revision 1.102 |
22 |
diff -u -r1.101 -r1.102 |
23 |
--- ChangeLog 29 Mar 2012 10:41:46 -0000 1.101 |
24 |
+++ ChangeLog 31 Mar 2012 19:55:28 -0000 1.102 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-python/sphinx |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.101 2012/03/29 10:41:46 ago Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.102 2012/03/31 19:55:28 floppym Exp $ |
30 |
+ |
31 |
+*sphinx-1.1.3-r1 (31 Mar 2012) |
32 |
+ |
33 |
+ 31 Mar 2012; Mike Gilbert <floppym@g.o> +sphinx-1.1.3-r1.ebuild: |
34 |
+ Make sphinx-build wrapper respect EPYTHON. Ported from Progress. |
35 |
|
36 |
29 Mar 2012; Agostino Sarubbo <ago@g.o> sphinx-1.1.2.ebuild: |
37 |
Stable for amd64, wrt bug #410115 |
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-python/sphinx/sphinx-1.1.3-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/sphinx-1.1.3-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/sphinx-1.1.3-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: sphinx-1.1.3-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2012 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.1.3-r1.ebuild,v 1.1 2012/03/31 19:55:28 floppym Exp $ |
51 |
|
52 |
EAPI="3" |
53 |
PYTHON_DEPEND="2" |
54 |
SUPPORT_PYTHON_ABIS="1" |
55 |
RESTRICT_PYTHON_ABIS="3.*" |
56 |
DISTUTILS_SRC_TEST="nosetests" |
57 |
|
58 |
inherit distutils |
59 |
|
60 |
MY_PN="Sphinx" |
61 |
MY_P="${MY_PN}-${PV}" |
62 |
|
63 |
DESCRIPTION="Python documentation generator" |
64 |
HOMEPAGE="http://sphinx.pocoo.org/ http://pypi.python.org/pypi/Sphinx" |
65 |
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
66 |
|
67 |
LICENSE="BSD" |
68 |
SLOT="0" |
69 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
70 |
IUSE="doc latex" |
71 |
|
72 |
DEPEND=">=dev-python/docutils-0.7 |
73 |
>=dev-python/jinja-2.3 |
74 |
>=dev-python/pygments-1.2 |
75 |
dev-python/setuptools |
76 |
latex? ( dev-texlive/texlive-latexextra )" |
77 |
RDEPEND="${DEPEND}" |
78 |
|
79 |
S="${WORKDIR}/${MY_P}" |
80 |
|
81 |
DOCS="CHANGES" |
82 |
|
83 |
src_compile() { |
84 |
distutils_src_compile |
85 |
|
86 |
if use doc; then |
87 |
pushd doc > /dev/null |
88 |
einfo "Generation of documentation" |
89 |
PYTHONPATH=".." emake SPHINXBUILD="$(PYTHON -f) ../sphinx-build.py" html || die "Generation of documentation failed" |
90 |
popd > /dev/null |
91 |
fi |
92 |
} |
93 |
|
94 |
src_install() { |
95 |
distutils_src_install |
96 |
python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/sphinx-build" |
97 |
|
98 |
if use doc; then |
99 |
dohtml -A txt -r doc/_build/html/* || die "Installation of documentation failed" |
100 |
fi |
101 |
} |
102 |
|
103 |
pkg_postinst() { |
104 |
distutils_pkg_postinst |
105 |
|
106 |
# Generate the Grammar pickle to avoid sandbox violations. |
107 |
generation_of_grammar_pickle() { |
108 |
"$(PYTHON)" -c "import sys; sys.path.insert(0, '${EROOT}$(python_get_sitedir -b)'); from sphinx.pycode.pgen2.driver import load_grammar; load_grammar('${EROOT}$(python_get_sitedir -b)/sphinx/pycode/Grammar.txt')" |
109 |
} |
110 |
python_execute_function \ |
111 |
--action-message 'Generation of Grammar pickle with $(python_get_implementation_and_version)...' \ |
112 |
--failure-message 'Generation of Grammar pickle with $(python_get_implementation_and_version) failed' \ |
113 |
generation_of_grammar_pickle |
114 |
} |
115 |
|
116 |
pkg_postrm() { |
117 |
distutils_pkg_postrm |
118 |
|
119 |
deletion_of_grammar_pickle() { |
120 |
rm -f "${EROOT}$(python_get_sitedir -b)/sphinx/pycode"/Grammar*.pickle || return 1 |
121 |
|
122 |
# Delete empty parent directories. |
123 |
local dir="${EROOT}$(python_get_sitedir -b)/sphinx/pycode" |
124 |
while [[ "${dir}" != "${EROOT%/}" ]]; do |
125 |
rmdir "${dir}" 2> /dev/null || break |
126 |
dir="${dir%/*}" |
127 |
done |
128 |
} |
129 |
python_execute_function \ |
130 |
--action-message 'Deletion of Grammar pickle with $(python_get_implementation_and_version)...' \ |
131 |
--failure-message 'Deletion of Grammar pickle with $(python_get_implementation_and_version) failed' \ |
132 |
deletion_of_grammar_pickle |
133 |
} |