From: | "Dirkjan Ochtman (djc)" <djc@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/sphinx: ChangeLog sphinx-1.0_beta2.ebuild sphinx-1.0_beta1.ebuild |
Date: | Mon, 31 May 2010 06:25:45 |
Message-Id: | 20100531062540.3A8C72CF37@corvid.gentoo.org |
1 | djc 10/05/31 06:25:40 |
2 | |
3 | Modified: ChangeLog |
4 | Added: sphinx-1.0_beta2.ebuild |
5 | Removed: sphinx-1.0_beta1.ebuild |
6 | Log: |
7 | Bumped the dev-python/sphinx beta version. |
8 | (Portage version: 2.1.8.3/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.56 dev-python/sphinx/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?rev=1.56&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?rev=1.56&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?r1=1.55&r2=1.56 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v |
20 | retrieving revision 1.55 |
21 | retrieving revision 1.56 |
22 | diff -u -r1.55 -r1.56 |
23 | --- ChangeLog 25 May 2010 10:53:47 -0000 1.55 |
24 | +++ ChangeLog 31 May 2010 06:25:40 -0000 1.56 |
25 | @@ -1,6 +1,12 @@ |
26 | # ChangeLog for dev-python/sphinx |
27 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.55 2010/05/25 10:53:47 djc Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.56 2010/05/31 06:25:40 djc Exp $ |
30 | + |
31 | +*sphinx-1.0_beta2 (31 May 2010) |
32 | + |
33 | + 31 May 2010; Dirkjan Ochtman <djc@g.o> -sphinx-1.0_beta1.ebuild, |
34 | + +sphinx-1.0_beta2.ebuild: |
35 | + Bumped the Sphinx 1.0 beta version. |
36 | |
37 | *sphinx-1.0_beta1 (25 May 2010) |
38 | |
39 | |
40 | |
41 | |
42 | 1.1 dev-python/sphinx/sphinx-1.0_beta2.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/sphinx-1.0_beta2.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/sphinx-1.0_beta2.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: sphinx-1.0_beta2.ebuild |
48 | =================================================================== |
49 | # Copyright 1999-2010 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_beta2.ebuild,v 1.1 2010/05/31 06:25:40 djc Exp $ |
52 | |
53 | EAPI="3" |
54 | SUPPORT_PYTHON_ABIS="1" |
55 | DISTUTILS_SRC_TEST="nosetests" |
56 | |
57 | inherit distutils |
58 | |
59 | MY_PN="Sphinx" |
60 | MY_P="${MY_PN}-${PV/_beta/b}" |
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="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
65 | LICENSE="BSD" |
66 | SLOT="0" |
67 | KEYWORDS="" |
68 | IUSE="doc test latex" |
69 | |
70 | RDEPEND=">=dev-python/pygments-0.8 |
71 | >=dev-python/jinja-2.2 |
72 | >=dev-python/docutils-0.5 |
73 | latex? ( dev-texlive/texlive-latexextra )" |
74 | DEPEND="${RDEPEND} |
75 | dev-python/setuptools |
76 | test? ( dev-python/nose )" |
77 | RESTRICT_PYTHON_ABIS="3.*" |
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 | cd doc |
88 | einfo "Generation of documentation" |
89 | PYTHONPATH="../" emake SPHINXBUILD="$(PYTHON -f) ../sphinx-build.py" html || die "Generation of documentation failed" |
90 | fi |
91 | } |
92 | |
93 | src_install() { |
94 | distutils_src_install |
95 | |
96 | if use doc; then |
97 | dohtml -A txt -r doc/_build/html/* || die "dohtml failed" |
98 | fi |
99 | } |
100 | |
101 | pkg_postinst() { |
102 | distutils_pkg_postinst |
103 | |
104 | # Generating the Grammar pickle to avoid on the fly generation causing sandbox violations (bug #266015) |
105 | generation_of_grammar_pickle() { |
106 | "$(PYTHON)" -c "from sphinx.pycode.pgen2.driver import load_grammar; load_grammar('${ROOT%/}${EPREFIX}$(python_get_sitedir)/sphinx/pycode/Grammar.txt')" || die "Generation of grammar pickle failed" |
107 | } |
108 | python_execute_function --action-message 'Generation of Grammar pickle with Python ${PYTHON_ABI}...' generation_of_grammar_pickle |
109 | } |
110 | |
111 | pkg_postrm() { |
112 | distutils_pkg_postrm |
113 | |
114 | deletion_of_grammar_pickle() { |
115 | rm "${ROOT%/}${EPREFIX}$(python_get_sitedir)/sphinx/pycode"/Grammar*.pickle |
116 | } |
117 | python_execute_function --action-message 'Deletion of Grammar pickle with Python ${PYTHON_ABI}...' deletion_of_grammar_pickle |
118 | } |