Gentoo Archives: gentoo-commits

From: "Kacper Kowalik (xarthisius)" <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-astronomy/pyephem: pyephem-3.7.3.4.ebuild ChangeLog
Date: Wed, 26 May 2010 15:34:49
Message-Id: 20100526153445.89E6A2CED3@corvid.gentoo.org
1 xarthisius 10/05/26 15:34:45
2
3 Modified: pyephem-3.7.3.4.ebuild ChangeLog
4 Log:
5 Improving Python-related code wrt bug 316163
6 (Portage version: 2.1.8.3/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.2 sci-astronomy/pyephem/pyephem-3.7.3.4.ebuild
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/pyephem/pyephem-3.7.3.4.ebuild?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/pyephem/pyephem-3.7.3.4.ebuild?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/pyephem/pyephem-3.7.3.4.ebuild?r1=1.1&r2=1.2
14
15 Index: pyephem-3.7.3.4.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/pyephem-3.7.3.4.ebuild,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- pyephem-3.7.3.4.ebuild 26 Jul 2009 13:45:52 -0000 1.1
22 +++ pyephem-3.7.3.4.ebuild 26 May 2010 15:34:44 -0000 1.2
23 @@ -1,8 +1,13 @@
24 -# Copyright 1999-2009 Gentoo Foundation
25 +# Copyright 1999-2010 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/pyephem-3.7.3.4.ebuild,v 1.1 2009/07/26 13:45:52 bicatali Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/pyephem-3.7.3.4.ebuild,v 1.2 2010/05/26 15:34:44 xarthisius Exp $
29
30 -inherit distutils
31 +EAPI="2"
32 +PYTHON_DEPEND="2:2.5"
33 +SUPPORT_PYTHON_ABIS="1"
34 +DISTUTILS_SRC_TEST="setup.py"
35 +
36 +inherit distutils eutils
37
38 DESCRIPTION="Astronomical routines for the python programming language"
39 LICENSE="LGPL-3"
40 @@ -11,17 +16,34 @@
41
42 SLOT="0"
43 KEYWORDS="~amd64 ~ppc ~x86"
44 -IUSE=""
45 +IUSE="doc"
46 +RDEPEND=""
47 +DEPEND="doc? ( dev-python/sphinx )"
48 +RESTRICT_PYTHON_ABIS="2.4 3.*"
49 +
50 +src_prepare() {
51 + # don't install rst files
52 + sed -i -e "s:'doc/\*\.rst',::" "${S}"/setup.py || die
53 + distutils_src_prepare
54 +}
55 +
56 +src_compile() {
57 + distutils_src_compile
58 + if use doc; then
59 + cd src/ephem/doc
60 + PYTHONPATH=../../.. emake html || die "Building of documentation failed"
61 + fi
62 +}
63
64 src_test() {
65 # remove a buggy test (it's a doc test), check next version.
66 mv src/ephem/tests/test_rst.py{,orig}
67 - PYTHONPATH=$(dir -d build/lib*) ${python} setup.py test || die "tests failed"
68 + distutils_src_test
69 }
70
71 src_install() {
72 distutils_src_install
73 - insinto /usr/share/doc/${PF}
74 - mv "${D}"/usr/lib*/${python}*/site-packages/ephem/doc \
75 - "${D}"/usr/share/doc/${PF}/html || die "Failed to install doc"
76 + if use doc; then
77 + dohtml -r src/ephem/doc/.build/html/* || die "Installation of documentation failed"
78 + fi
79 }
80
81
82
83 1.10 sci-astronomy/pyephem/ChangeLog
84
85 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/pyephem/ChangeLog?rev=1.10&view=markup
86 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/pyephem/ChangeLog?rev=1.10&content-type=text/plain
87 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/pyephem/ChangeLog?r1=1.9&r2=1.10
88
89 Index: ChangeLog
90 ===================================================================
91 RCS file: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/ChangeLog,v
92 retrieving revision 1.9
93 retrieving revision 1.10
94 diff -u -r1.9 -r1.10
95 --- ChangeLog 26 Jul 2009 13:45:52 -0000 1.9
96 +++ ChangeLog 26 May 2010 15:34:44 -0000 1.10
97 @@ -1,6 +1,12 @@
98 # ChangeLog for sci-astronomy/pyephem
99 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
100 -# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/ChangeLog,v 1.9 2009/07/26 13:45:52 bicatali Exp $
101 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
102 +# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/ChangeLog,v 1.10 2010/05/26 15:34:44 xarthisius Exp $
103 +
104 + 26 May 2010; Kacper Kowalik <xarthisius@g.o>
105 + pyephem-3.7.3.4.ebuild:
106 + Improving Python-related code wrt bug 316163. Thanks Arfrever for
107 + reporting.
108 + Adding doc flag and sphinx dependency.
109
110 *pyephem-3.7.3.4 (26 Jul 2009)