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