diff options
author | Kacper Kowalik (Xarthisius) <xarthisius.kk@gmail.com> | 2010-07-24 13:26:48 +0200 |
---|---|---|
committer | Kacper Kowalik (Xarthisius) <xarthisius.kk@gmail.com> | 2010-07-24 13:28:15 +0200 |
commit | 6f45fe9c7cebf4f758ab3a556fd6afabb19c838b (patch) | |
tree | e1d792bf3904087a0459f1a9e197c83b3d8735b2 /dev-python | |
parent | sci-mathematics/singular: Install missing headers, upstream tarball change. (diff) | |
download | sci-6f45fe9c7cebf4f758ab3a556fd6afabb19c838b.tar.gz sci-6f45fe9c7cebf4f758ab3a556fd6afabb19c838b.tar.bz2 sci-6f45fe9c7cebf4f758ab3a556fd6afabb19c838b.zip |
[dev-python/pysolar]: Initial import
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pysolar/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/pysolar/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pysolar/metadata.xml | 11 | ||||
-rw-r--r-- | dev-python/pysolar/pysolar-0.4.2.ebuild | 63 |
4 files changed, 88 insertions, 0 deletions
diff --git a/dev-python/pysolar/ChangeLog b/dev-python/pysolar/ChangeLog new file mode 100644 index 000000000..0c58e3d5b --- /dev/null +++ b/dev-python/pysolar/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-python/pysolar +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*pysolar-0.4.2 (24 Jul 2010) + + 24 Jul 2010; Kacper Kowalik <xarthisius@gentoo.org> +pysolar-0.4.2.ebuild, + +metadata.xml: + Initial import + diff --git a/dev-python/pysolar/Manifest b/dev-python/pysolar/Manifest new file mode 100644 index 000000000..d840cbadf --- /dev/null +++ b/dev-python/pysolar/Manifest @@ -0,0 +1,4 @@ +DIST pysolar-0.4.2.tar.gz 1861071 RMD160 003f8e7f404ac4953a0d7440bd2984355b2d5e68 SHA1 a5105fe6f4f7fcb7051c3d6411b8cfeea146e9fd SHA256 b72d53ea8931b902ce2f3d3b7e63ed1765a9497f0d88bc9d47560d12fad8c5cf +EBUILD pysolar-0.4.2.ebuild 1275 RMD160 f6d54edfd7107a1db29da3bdf95e3d2d32ad1ece SHA1 3b4e7178db43d71475a2114fd033af543b0a0aed SHA256 85c9cf4acdd6bf3ffdf4360afc8f3c71e9510a9f3638f3f4868c18c226354eb9 +MISC ChangeLog 261 RMD160 fdcae93b8172c3c3720d0cda8bc9716cf3c14540 SHA1 bcb8d2355d383addcc1af6b6c2131eed88a6a489 SHA256 45196205206e0d1fa420ce45addbda9d34a580bc806becf3993c1550227f9c33 +MISC metadata.xml 517 RMD160 a39bb85d484de830c6d0e01ae456ef6b7ded98e3 SHA1 2e79881da57cf326c900691cc2fa885fbe8d18c5 SHA256 ff9fc747f21fc437d9604d459d02add9fdb026e60ec86fd37ecedf3fb87a0b2e diff --git a/dev-python/pysolar/metadata.xml b/dev-python/pysolar/metadata.xml new file mode 100644 index 000000000..085fa9944 --- /dev/null +++ b/dev-python/pysolar/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<longdescription lang="en"> +Pysolar is a collection of Python libraries for simulating the irradiation of any point on earth +by the sun. It includes code for extremely precise ephemeris calculations, and more. Pysolar can +calculate the location of the sun or the shading percentage as a function of time for a row of +2-axis tracked panels +</longdescription> +</pkgmetadata> diff --git a/dev-python/pysolar/pysolar-0.4.2.ebuild b/dev-python/pysolar/pysolar-0.4.2.ebuild new file mode 100644 index 000000000..43ae8963c --- /dev/null +++ b/dev-python/pysolar/pysolar-0.4.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 +PYTHON_DEPEND="2:2.5" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils python + +DESCRIPTION="A collection of Python libraries for simulating the Sun's irradiation" +HOMEPAGE="http://pysolar.org/ http://pypi.python.org/pypi/Pysolar" +SRC_URI="http://github.com/pingswept/${PN}/tarball/${PV} -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc" + +DEPEND="doc? ( dev-python/numpydoc )" +RDEPEND="dev-python/imaging + dev-python/matplotlib + dev-python/numpy + dev-python/pygtk + dev-python/pytz + sci-libs/scipy" + +S=${WORKDIR}/pingswept-${PN}-a110543 + +PYTHON_MODNAME="constants.py horizon.py julian.py \ + poly.py query_usno.py radiation.py shade.py \ + simulate.py solar.py util.py" + +RESTRICT_PYTHON_ABIS="3.*" + +src_prepare() { + sed -e "s:'testsolar', ::" \ + -e "s:'shade_test', ::" \ + -i setup.py || die +} + +src_compile() { + distutils_src_compile + + if use doc; then + cd doc + PYTHONPATH=".." emake html || die + fi +} + +src_test() { + testing() { + PYTHONPATH="build-${PYTHON_ABI}/abi" "$(PYTHON)" testsolar.py + } + python_execute_function testing +} + +src_install() { + distutils_src_install + if use doc; then + dohtml -r doc/.build/html/* || die + fi +} |