1 |
bicatali 14/06/30 18:36:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pyephem-3.7.5.3.ebuild |
5 |
Log: |
6 |
Version bump, added python-3 compat |
7 |
|
8 |
(Portage version: 2.2.10.1-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360) |
9 |
|
10 |
Revision Changes Path |
11 |
1.23 sci-astronomy/pyephem/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/pyephem/ChangeLog?rev=1.23&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/pyephem/ChangeLog?rev=1.23&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/pyephem/ChangeLog?r1=1.22&r2=1.23 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/ChangeLog,v |
20 |
retrieving revision 1.22 |
21 |
retrieving revision 1.23 |
22 |
diff -u -r1.22 -r1.23 |
23 |
--- ChangeLog 28 Jan 2014 18:05:57 -0000 1.22 |
24 |
+++ ChangeLog 30 Jun 2014 18:36:41 -0000 1.23 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for sci-astronomy/pyephem |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/ChangeLog,v 1.22 2014/01/28 18:05:57 bicatali Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/ChangeLog,v 1.23 2014/06/30 18:36:41 bicatali Exp $ |
30 |
+ |
31 |
+*pyephem-3.7.5.3 (30 Jun 2014) |
32 |
+ |
33 |
+ 30 Jun 2014; Sébastien Fabbro <bicatali@g.o> +pyephem-3.7.5.3.ebuild: |
34 |
+ Version bump, added python-3 compat |
35 |
|
36 |
*pyephem-3.7.5.2 (28 Jan 2014) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 sci-astronomy/pyephem/pyephem-3.7.5.3.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/pyephem/pyephem-3.7.5.3.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/pyephem/pyephem-3.7.5.3.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: pyephem-3.7.5.3.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2014 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/pyephem-3.7.5.3.ebuild,v 1.1 2014/06/30 18:36:41 bicatali Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
|
54 |
PYTHON_COMPAT=( python{2_7,3_3} ) |
55 |
|
56 |
inherit distutils-r1 |
57 |
|
58 |
DESCRIPTION="Astronomical routines for the python programming language" |
59 |
HOMEPAGE="http://rhodesmill.org/pyephem/" |
60 |
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
61 |
|
62 |
LICENSE="LGPL-3" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
65 |
IUSE="doc test" |
66 |
|
67 |
DEPEND=" |
68 |
doc? ( dev-python/sphinx ) |
69 |
test? ( virtual/python-unittest2[${PYTHON_USEDEP}] )" |
70 |
RDEPEND="" |
71 |
|
72 |
src_prepare() { |
73 |
# don't install rst files |
74 |
sed -i -e "s:'doc/\*\.rst',::" setup.py || die |
75 |
distutils-r1_src_prepare |
76 |
} |
77 |
|
78 |
src_compile() { |
79 |
distutils-r1_src_compile |
80 |
if use doc; then |
81 |
PYTHONPATH=. emake -C ephem/doc html |
82 |
fi |
83 |
} |
84 |
|
85 |
python_test() { |
86 |
if [[ ${PYTHON_ABI} == "2.7" ]]; then |
87 |
PYTHONPATH="$(ls -d ${BUILD_DIR}/lib*)" \ |
88 |
${EPYTHON} -m unittest discover -s src/ephem |
89 |
else |
90 |
PYTHONPATH="$(ls -d ${BUILD_DIR}/lib*)" \ |
91 |
unit2 discover -s src/ephem |
92 |
fi |
93 |
} |
94 |
|
95 |
src_install() { |
96 |
distutils-r1_src_install |
97 |
use doc && dohtml -r ephem/doc/_build/html/* |
98 |
|
99 |
delete_tests() { |
100 |
rm -r "${D}$(python_get_sitedir)/ephem/tests" || die |
101 |
} |
102 |
python_foreach_impl delete_tests |
103 |
} |