1 |
arfrever 09/09/10 02:55:39 |
2 |
|
3 |
Modified: ChangeLog reportlab-2.3.ebuild |
4 |
Log: |
5 |
Build documentation (bug #278994). |
6 |
(Portage version: 14221-svn/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.54 dev-python/reportlab/ChangeLog |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/reportlab/ChangeLog?rev=1.54&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/reportlab/ChangeLog?rev=1.54&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/reportlab/ChangeLog?r1=1.53&r2=1.54 |
14 |
|
15 |
Index: ChangeLog |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/reportlab/ChangeLog,v |
18 |
retrieving revision 1.53 |
19 |
retrieving revision 1.54 |
20 |
diff -u -r1.53 -r1.54 |
21 |
--- ChangeLog 4 Sep 2009 20:13:05 -0000 1.53 |
22 |
+++ ChangeLog 10 Sep 2009 02:55:36 -0000 1.54 |
23 |
@@ -1,6 +1,10 @@ |
24 |
# ChangeLog for dev-python/reportlab |
25 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/reportlab/ChangeLog,v 1.53 2009/09/04 20:13:05 arfrever Exp $ |
27 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/reportlab/ChangeLog,v 1.54 2009/09/10 02:55:36 arfrever Exp $ |
28 |
+ |
29 |
+ 10 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
30 |
+ reportlab-2.3.ebuild: |
31 |
+ Build documentation (bug #278994). |
32 |
|
33 |
04 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
34 |
reportlab-2.3.ebuild: |
35 |
|
36 |
|
37 |
|
38 |
1.3 dev-python/reportlab/reportlab-2.3.ebuild |
39 |
|
40 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/reportlab/reportlab-2.3.ebuild?rev=1.3&view=markup |
41 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/reportlab/reportlab-2.3.ebuild?rev=1.3&content-type=text/plain |
42 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/reportlab/reportlab-2.3.ebuild?r1=1.2&r2=1.3 |
43 |
|
44 |
Index: reportlab-2.3.ebuild |
45 |
=================================================================== |
46 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/reportlab/reportlab-2.3.ebuild,v |
47 |
retrieving revision 1.2 |
48 |
retrieving revision 1.3 |
49 |
diff -u -r1.2 -r1.3 |
50 |
--- reportlab-2.3.ebuild 4 Sep 2009 20:13:05 -0000 1.2 |
51 |
+++ reportlab-2.3.ebuild 10 Sep 2009 02:55:37 -0000 1.3 |
52 |
@@ -1,6 +1,6 @@ |
53 |
# Copyright 1999-2009 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/reportlab/reportlab-2.3.ebuild,v 1.2 2009/09/04 20:13:05 arfrever Exp $ |
56 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/reportlab/reportlab-2.3.ebuild,v 1.3 2009/09/10 02:55:37 arfrever Exp $ |
57 |
|
58 |
EAPI="2" |
59 |
NEED_PYTHON="2.4" |
60 |
@@ -36,8 +36,26 @@ |
61 |
epatch "${FILESDIR}/${PN}-2.2_qa_msg.patch" |
62 |
} |
63 |
|
64 |
+src_compile() { |
65 |
+ distutils_src_compile |
66 |
+ |
67 |
+ documentation_built="0" |
68 |
+ build_documentation() { |
69 |
+ [[ "${documentation_built}" == "1" ]] && return |
70 |
+ |
71 |
+ # One of tests already builds documentation. |
72 |
+ if use doc && ! use test; then |
73 |
+ cd docs |
74 |
+ PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib*)" "$(PYTHON)" genAll.py || die "genAll.py failed" |
75 |
+ fi |
76 |
+ |
77 |
+ documentation_build="1" |
78 |
+ } |
79 |
+ python_execute_function -q build_documentation |
80 |
+ unset documentation_built |
81 |
+} |
82 |
+ |
83 |
src_test() { |
84 |
- einfo "Tests could take some time. Please be patient." |
85 |
testing() { |
86 |
"$(PYTHON)" setup.py tests-preinstall |
87 |
} |
88 |
@@ -48,6 +66,9 @@ |
89 |
distutils_src_install |
90 |
|
91 |
if use doc; then |
92 |
+ # docs/reference/reportlab-reference.pdf is identical with docs/reportlab-reference.pdf |
93 |
+ rm -f docs/reference/reportlab-reference.pdf |
94 |
+ |
95 |
insinto /usr/share/doc/${PF} |
96 |
doins -r docs/* |
97 |
fi |