1 |
commit: 4e7317632ced9853d060dad961ae9cf165305174 |
2 |
Author: Kacper Kowalik (Xarthisius) <xarthisius <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 7 18:48:10 2012 +0000 |
4 |
Commit: Kacper Kowalik <xarthisius <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 7 18:48:10 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=4e731763 |
7 |
|
8 |
[dev-python/pysolar] version bump |
9 |
|
10 |
--- |
11 |
dev-python/pysolar/pysolar-0.4.4.ebuild | 66 +++++++++++++++++++++++++++++++ |
12 |
1 files changed, 66 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/dev-python/pysolar/pysolar-0.4.4.ebuild b/dev-python/pysolar/pysolar-0.4.4.ebuild |
15 |
new file mode 100644 |
16 |
index 0000000..ae36803 |
17 |
--- /dev/null |
18 |
+++ b/dev-python/pysolar/pysolar-0.4.4.ebuild |
19 |
@@ -0,0 +1,66 @@ |
20 |
+# Copyright 1999-2011 Gentoo Foundation |
21 |
+# Distributed under the terms of the GNU General Public License v2 |
22 |
+# $Header: $ |
23 |
+ |
24 |
+EAPI=4 |
25 |
+ |
26 |
+PYTHON_DEPEND="2:2.5" |
27 |
+SUPPORT_PYTHON_ABIS="1" |
28 |
+RESTRICT_PYTHON_ABIS="3.*" |
29 |
+ |
30 |
+AUTHOR=pingswept |
31 |
+GIT_HASH=42d1abd |
32 |
+ |
33 |
+inherit distutils python |
34 |
+ |
35 |
+DESCRIPTION="A collection of Python libraries for simulating the Sun's irradiation" |
36 |
+HOMEPAGE="http://pysolar.org/ http://pypi.python.org/pypi/Pysolar/" |
37 |
+SRC_URI="https://github.com/${AUTHOR}/${PN}/tarball/${PV} -> ${P}.tar.gz" |
38 |
+ |
39 |
+LICENSE="GPL-3" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64" |
42 |
+IUSE="doc" |
43 |
+ |
44 |
+DEPEND="doc? ( dev-python/numpydoc )" |
45 |
+RDEPEND=" |
46 |
+ dev-python/imaging |
47 |
+ dev-python/matplotlib |
48 |
+ dev-python/numpy |
49 |
+ dev-python/pygtk:2 |
50 |
+ dev-python/pytz |
51 |
+ sci-libs/scipy" |
52 |
+ |
53 |
+S=${WORKDIR}/${AUTHOR}-${PN}-${GIT_HASH} |
54 |
+ |
55 |
+PYTHON_MODNAME="constants.py horizon.py julian.py \ |
56 |
+ poly.py query_usno.py radiation.py shade.py \ |
57 |
+ simulate.py solar.py util.py" |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ sed \ |
61 |
+ -e "s:'testsolar', ::" \ |
62 |
+ -e "s:'shade_test', ::" \ |
63 |
+ -i setup.py || die # don't install tests |
64 |
+ distutils_src_prepare |
65 |
+} |
66 |
+ |
67 |
+src_compile() { |
68 |
+ distutils_src_compile |
69 |
+ |
70 |
+ if use doc; then |
71 |
+ PYTHONPATH=".." emake -C doc html |
72 |
+ fi |
73 |
+} |
74 |
+ |
75 |
+src_test() { |
76 |
+ testing() { |
77 |
+ PYTHONPATH="build-${PYTHON_ABI}/abi" "$(PYTHON)" testsolar.py |
78 |
+ } |
79 |
+ python_execute_function testing |
80 |
+} |
81 |
+ |
82 |
+src_install() { |
83 |
+ distutils_src_install |
84 |
+ use doc && dohtml -r doc/.build/html/* |
85 |
+} |