1 |
arfrever 10/07/27 18:15:56 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sphinx-1.0.1.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: HEAD/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.62 dev-python/sphinx/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?rev=1.62&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?rev=1.62&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/ChangeLog?r1=1.61&r2=1.62 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v |
20 |
retrieving revision 1.61 |
21 |
retrieving revision 1.62 |
22 |
diff -u -r1.61 -r1.62 |
23 |
--- ChangeLog 23 Jul 2010 11:30:45 -0000 1.61 |
24 |
+++ ChangeLog 27 Jul 2010 18:15:56 -0000 1.62 |
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.61 2010/07/23 11:30:45 djc Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/ChangeLog,v 1.62 2010/07/27 18:15:56 arfrever Exp $ |
30 |
+ |
31 |
+*sphinx-1.0.1 (27 Jul 2010) |
32 |
+ |
33 |
+ 27 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
34 |
+ +sphinx-1.0.1.ebuild: |
35 |
+ Version bump. |
36 |
|
37 |
*sphinx-1.0 (23 Jul 2010) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-python/sphinx/sphinx-1.0.1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/sphinx-1.0.1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sphinx/sphinx-1.0.1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: sphinx-1.0.1.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.1.ebuild,v 1.1 2010/07/27 18:15:56 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="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
67 |
|
68 |
LICENSE="BSD" |
69 |
SLOT="0" |
70 |
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" |
71 |
IUSE="doc latex" |
72 |
|
73 |
RDEPEND=">=dev-python/pygments-0.8 |
74 |
>=dev-python/jinja-2.2 |
75 |
>=dev-python/docutils-0.5 |
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 |
cd doc |
89 |
einfo "Generation of documentation" |
90 |
PYTHONPATH="../" emake SPHINXBUILD="$(PYTHON -f) ../sphinx-build.py" html || die "Generation of documentation failed" |
91 |
fi |
92 |
} |
93 |
|
94 |
src_install() { |
95 |
distutils_src_install |
96 |
|
97 |
if use doc; then |
98 |
dohtml -A txt -r doc/_build/html/* || die "Installation of documentation failed" |
99 |
fi |
100 |
} |
101 |
|
102 |
pkg_postinst() { |
103 |
distutils_pkg_postinst |
104 |
|
105 |
# Generate the Grammar pickle to avoid sandbox violations. |
106 |
generation_of_grammar_pickle() { |
107 |
"$(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')" |
108 |
} |
109 |
python_execute_function \ |
110 |
--action-message 'Generation of Grammar pickle with $(python_get_implementation) $(python_get_version)...' \ |
111 |
--failure-message 'Generation of Grammar pickle with $(python_get_implementation) $(python_get_version) failed' \ |
112 |
generation_of_grammar_pickle |
113 |
} |
114 |
|
115 |
pkg_postrm() { |
116 |
distutils_pkg_postrm |
117 |
|
118 |
deletion_of_grammar_pickle() { |
119 |
rm -f "${EROOT}$(python_get_sitedir -b)/sphinx/pycode"/Grammar*.pickle || return 1 |
120 |
|
121 |
# Delete empty parent directories. |
122 |
local dir="${EROOT}$(python_get_sitedir -b)/sphinx/pycode" |
123 |
while [[ "${dir}" != "${EROOT%/}" ]]; do |
124 |
rmdir "${dir}" 2> /dev/null || break |
125 |
dir="${dir%/*}" |
126 |
done |
127 |
} |
128 |
python_execute_function \ |
129 |
--action-message 'Deletion of Grammar pickle with $(python_get_implementation) $(python_get_version)...' \ |
130 |
--failure-message 'Deletion of Grammar pickle with $(python_get_implementation) $(python_get_version) failed' \ |
131 |
deletion_of_grammar_pickle |
132 |
} |