Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/sphinx: ChangeLog sphinx-1.0.6.ebuild
Date: Thu, 06 Jan 2011 22:17:50
Message-Id: 20110106221741.A4E5C20051@flycatcher.gentoo.org
1 arfrever 11/01/06 22:17:41
2
3 Modified: ChangeLog
4 Added: sphinx-1.0.6.ebuild
5 Log:
6 Version bump. Improved Grammar pickle filename (bug #266015).
7
8 (Portage version: 2.2.0_alpha13_p10/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.82 dev-python/sphinx/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?rev=1.82&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?rev=1.82&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?r1=1.81&r2=1.82
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v
20 retrieving revision 1.81
21 retrieving revision 1.82
22 diff -u -r1.81 -r1.82
23 --- ChangeLog 6 Jan 2011 17:08:01 -0000 1.81
24 +++ ChangeLog 6 Jan 2011 22:17:41 -0000 1.82
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/sphinx
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.81 2011/01/06 17:08:01 armin76 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.82 2011/01/06 22:17:41 arfrever Exp $
30 +
31 +*sphinx-1.0.6 (06 Jan 2011)
32 +
33 + 06 Jan 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
34 + +sphinx-1.0.6.ebuild:
35 + Version bump. Improved Grammar pickle filename (bug #266015).
36
37 06 Jan 2011; Raúl Porcel <armin76@g.o> sphinx-1.0.5.ebuild:
38 alpha/ia64/s390/sh/sparc stable wrt #349138
39
40
41
42 1.1 dev-python/sphinx/sphinx-1.0.6.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/sphinx-1.0.6.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/sphinx-1.0.6.ebuild?rev=1.1&content-type=text/plain
46
47 Index: sphinx-1.0.6.ebuild
48 ===================================================================
49 # Copyright 1999-2011 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.0.6.ebuild,v 1.1 2011/01/06 22:17:41 arfrever Exp $
52
53 EAPI="3"
54 PYTHON_DEPEND="2"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="3.*"
57 DISTUTILS_SRC_TEST="nosetests"
58
59 inherit distutils
60
61 MY_PN="Sphinx"
62 MY_P="${MY_PN}-${PV}"
63
64 DESCRIPTION="Tool to create documentation for Python projects"
65 HOMEPAGE="http://sphinx.pocoo.org/ http://pypi.python.org/pypi/Sphinx"
66 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
67
68 LICENSE="BSD"
69 SLOT="0"
70 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"
71 IUSE="doc latex"
72
73 RDEPEND=">=dev-python/docutils-0.5
74 >=dev-python/jinja-2.2
75 >=dev-python/pygments-0.8
76 latex? ( dev-texlive/texlive-latexextra )"
77 DEPEND="${RDEPEND}
78 dev-python/setuptools"
79
80 S="${WORKDIR}/${MY_P}"
81
82 DOCS="CHANGES"
83
84 src_compile() {
85 distutils_src_compile
86
87 if use doc; then
88 pushd doc > /dev/null
89 einfo "Generation of documentation"
90 PYTHONPATH="../" emake SPHINXBUILD="$(PYTHON -f) ../sphinx-build.py" html || die "Generation of documentation failed"
91 popd > /dev/null
92 fi
93 }
94
95 src_install() {
96 distutils_src_install
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) $(python_get_version)...' \
112 --failure-message 'Generation of Grammar pickle with $(python_get_implementation) $(python_get_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) $(python_get_version)...' \
131 --failure-message 'Deletion of Grammar pickle with $(python_get_implementation) $(python_get_version) failed' \
132 deletion_of_grammar_pickle
133 }