Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/sphinx: ChangeLog sphinx-0.6.2.ebuild
Date: Sun, 21 Jun 2009 09:13:50
Message-Id: E1MIJ7T-0004Iv-IG@stork.gentoo.org
1 patrick 09/06/21 09:13:47
2
3 Modified: ChangeLog
4 Added: sphinx-0.6.2.ebuild
5 Log:
6 Bump to 0.6.2
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.19 dev-python/sphinx/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/sphinx/ChangeLog?rev=1.19&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/sphinx/ChangeLog?rev=1.19&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/sphinx/ChangeLog?r1=1.18&r2=1.19
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v
19 retrieving revision 1.18
20 retrieving revision 1.19
21 diff -u -r1.18 -r1.19
22 --- ChangeLog 9 Jun 2009 15:55:50 -0000 1.18
23 +++ ChangeLog 21 Jun 2009 09:13:47 -0000 1.19
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-python/sphinx
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.18 2009/06/09 15:55:50 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.19 2009/06/21 09:13:47 patrick Exp $
29 +
30 +*sphinx-0.6.2 (21 Jun 2009)
31 +
32 + 21 Jun 2009; Patrick Lauer <patrick@g.o> +sphinx-0.6.2.ebuild:
33 + Bump to 0.6.2
34
35 09 Jun 2009; Raúl Porcel <armin76@g.o> sphinx-0.5.2.ebuild,
36 sphinx-0.6.1-r1.ebuild:
37
38
39
40 1.1 dev-python/sphinx/sphinx-0.6.2.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/sphinx/sphinx-0.6.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/sphinx/sphinx-0.6.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: sphinx-0.6.2.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-0.6.2.ebuild,v 1.1 2009/06/21 09:13:47 patrick Exp $
50
51 inherit distutils multilib
52
53 MY_PN="Sphinx"
54 MY_P="${MY_PN}-${PV}"
55
56 DESCRIPTION="Tool to create documentation for Python projects"
57 HOMEPAGE="http://sphinx.pocoo.org/"
58 SRC_URI="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
59 LICENSE="BSD"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~s390 ~sh ~sparc ~x86"
62 IUSE="doc test"
63
64 RDEPEND=">=dev-python/pygments-0.8
65 >=dev-python/jinja2-2.1
66 >=dev-python/docutils-0.4"
67
68 DEPEND="${RDEPEND}
69 dev-python/setuptools
70 test? ( dev-python/nose )"
71
72 S="${WORKDIR}/${MY_P}"
73
74 src_compile() {
75 DOCS="CHANGES"
76 distutils_src_compile
77
78 if use doc ; then
79 cd doc
80 PYTHONPATH="../" emake \
81 SPHINXBUILD="${python} ../sphinx-build.py" \
82 html || die "making docs failed"
83 fi
84 }
85
86 src_install() {
87 distutils_src_install
88
89 if use doc ; then
90 dohtml -A txt -r doc/_build/html/* || die
91 fi
92 }
93
94 src_test() {
95 PYTHONPATH="./build/lib" "${python}" tests/run.py || die "Tests failed"
96 }
97
98 pkg_postinst() {
99 distutils_pkg_postinst
100
101 # Generating the Grammar pickle to avoid on the fly generation causing sandbox violations (bug #266015)
102 "${python}" \
103 -c "from sphinx.pycode.pgen2.driver import load_grammar ; load_grammar('${ROOT}/usr/$(get_libdir)/python${PYVER}/site-packages/sphinx/pycode/Grammar.txt')" \
104 || die "generating grammar pickle failed"
105 }
106
107 pkg_postrm() {
108 rm "${ROOT}/usr/$(get_libdir)/python${PYVER}/site-packages/sphinx/pycode"/Grammar*.pickle
109 distutils_pkg_postrm
110 }