diff options
author | Sébastien Fabbro <sebfabbro@gmail.com> | 2012-05-11 00:35:50 +0100 |
---|---|---|
committer | Sébastien Fabbro <sebfabbro@gmail.com> | 2012-05-11 00:35:50 +0100 |
commit | 48171b1f57890b348f214d437828f446d4f8d2ac (patch) | |
tree | a9ca0ce3809c707ca650f4adcdd89b593dbcb324 /sci-astronomy | |
parent | sci-libs/scalapack: Version bump (diff) | |
download | sci-48171b1f57890b348f214d437828f446d4f8d2ac.tar.gz sci-48171b1f57890b348f214d437828f446d4f8d2ac.tar.bz2 sci-48171b1f57890b348f214d437828f446d4f8d2ac.zip |
sci-astronomy/bpz: Initial import
(Portage version: 2.1.10.56/git/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'sci-astronomy')
-rw-r--r-- | sci-astronomy/bpz/ChangeLog | 10 | ||||
-rw-r--r-- | sci-astronomy/bpz/Manifest | 1 | ||||
-rw-r--r-- | sci-astronomy/bpz/bpz-1.99.3.ebuild | 55 | ||||
-rw-r--r-- | sci-astronomy/bpz/metadata.xml | 9 |
4 files changed, 75 insertions, 0 deletions
diff --git a/sci-astronomy/bpz/ChangeLog b/sci-astronomy/bpz/ChangeLog new file mode 100644 index 000000000..fd50d6ff3 --- /dev/null +++ b/sci-astronomy/bpz/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-astronomy/bpz +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*bpz-1.99.3 (10 May 2012) + + 10 May 2012; Sébastien Fabbro <bicatali@gentoo.org> +bpz-1.99.3.ebuild, + +metadata.xml: + sci-astronomy/bpz: Initial import + diff --git a/sci-astronomy/bpz/Manifest b/sci-astronomy/bpz/Manifest new file mode 100644 index 000000000..2e8d7e16b --- /dev/null +++ b/sci-astronomy/bpz/Manifest @@ -0,0 +1 @@ +DIST bpz-1.99.3.tar.gz 1353654 SHA256 f0c40e837aa90123cd087ee792169da6e478cc54912ce0767eafdb2fe1f7e584 SHA512 d00a2da6852a0314088e3cf76d89c4ea2317c620a4a6d94fe8da5b4a3d147957af249efc41de79c21b0a01882b6063f1061a7c2f8820fe7737ce1eae22ca9cf0 WHIRLPOOL 1738c44a1dd9af7ded03af42a3983c5f0ab5394bb665f7965d098b1aff3c3328b85e1d263e73c8d5b2eee2ed851f7d28ec09d9217ab7c9920456d32f4f80a3c5 diff --git a/sci-astronomy/bpz/bpz-1.99.3.ebuild b/sci-astronomy/bpz/bpz-1.99.3.ebuild new file mode 100644 index 000000000..8eb0fc83a --- /dev/null +++ b/sci-astronomy/bpz/bpz-1.99.3.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3*" + +inherit python + +DESCRIPTION="Bayesian Photometric Redshifts" +HOMEPAGE="http://www.its.caltech.edu/~coe/BPZ/" +SRC_URI="${HOMEPAGE}/${P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-python/numpy + || ( dev-python/matplotlib dev-python/python-biggles )" +DEPEND="test? ( ${RDEPEND} )" + +src_prepare() { + sed -i -e 's/TkAgg/Agg/g' bpz.py plots/probplot.py plots/coeplot.py +} + +src_test() { + cd test + testing() { + export BPZPATH="${S}" PYTHONPATH="${S}" + "$(PYTHON)" ../bpz.py UDFtest.cat -INTERP 2 + "$(PYTHON)" ../bpzfinalize.py UDFtest + "$(PYTHON)" ../plots/webpage.py UDFtest + } + python_execute_function testing +} + +src_install() { + insinto /usr/share/bpz + doins -r FILTER SED AB + installation() { + insinto $(python_get_sitedir)/bpz + doins -r *.py plots + } + python_execute_function installation + cat <<-EOF > bpz + #!$(type -P sh) + sitedir=\$(python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())') + BPZPATH=${EPREFIX}/usr/share/bpz python \${sitedir}/bpz/bpz.py \$@ + EOF + exeinto /usr/bin + doexe bpz +} diff --git a/sci-astronomy/bpz/metadata.xml b/sci-astronomy/bpz/metadata.xml new file mode 100644 index 000000000..1cefed3d5 --- /dev/null +++ b/sci-astronomy/bpz/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci-astronomy</herd> +<longdescription lang="en"> + Bayesian Photometric Redshifts is a method to infere photometric + redshifts of galaxies. +</longdescription> +</pkgmetadata> |