aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Fabbro <sebfabbro@gmail.com>2012-06-14 22:24:44 +0100
committerSébastien Fabbro <sebfabbro@gmail.com>2012-06-14 22:24:44 +0100
commitbb82feff885ce8f32d8f7c41372574be2643bd69 (patch)
tree8130da661e90efd89b729f1a9a8ce69c56867c49 /sci-astronomy
parentinitial commit (diff)
downloadsci-bb82feff885ce8f32d8f7c41372574be2643bd69.tar.gz
sci-bb82feff885ce8f32d8f7c41372574be2643bd69.tar.bz2
sci-bb82feff885ce8f32d8f7c41372574be2643bd69.zip
sci-astronomy/lephare: Initial import
(Portage version: 2.1.10.63/git/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'sci-astronomy')
-rw-r--r--sci-astronomy/lephare/ChangeLog10
-rw-r--r--sci-astronomy/lephare/Manifest1
-rw-r--r--sci-astronomy/lephare/files/lephare-2.2-read-int.patch11
-rw-r--r--sci-astronomy/lephare/lephare-2.2.ebuild67
-rw-r--r--sci-astronomy/lephare/metadata.xml9
5 files changed, 98 insertions, 0 deletions
diff --git a/sci-astronomy/lephare/ChangeLog b/sci-astronomy/lephare/ChangeLog
new file mode 100644
index 000000000..d21226dbb
--- /dev/null
+++ b/sci-astronomy/lephare/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-astronomy/lephare
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*lephare-2.2 (14 Jun 2012)
+
+ 14 Jun 2012; Sébastien Fabbro <bicatali@gentoo.org>
+ +files/lephare-2.2-read-int.patch, +lephare-2.2.ebuild, +metadata.xml:
+ sci-astronomy/lephare: Initial import
+
diff --git a/sci-astronomy/lephare/Manifest b/sci-astronomy/lephare/Manifest
new file mode 100644
index 000000000..128ae1b3f
--- /dev/null
+++ b/sci-astronomy/lephare/Manifest
@@ -0,0 +1 @@
+DIST lephare_dev_v2.2.tar.gz 44357629 RMD160 70212c4af407403196a6b4d96815638933cfb22c SHA1 57628d593dd6dea4274dd4219b531f99ee16734b SHA256 f930500c3477d32785da381b88ed6cb82a765401d2861bb80c6c57ecef63a82c SHA512 6a5f0ed7ab3709316e0a4be48e8e0280fc61795969e93223d6181ba15e4e9c067041a33b46c5ec06e0b0a7431b1247f343c5929fdde7d209aa805dee479192a5 WHIRLPOOL 7260a6fbba8fb93e2264a8be1c414e182633402dd3af5eb558060003cc2555fc84386a72da87f97378d8c5faf0c680b93ed2a4d05213ebe9773b1b7969aef85e
diff --git a/sci-astronomy/lephare/files/lephare-2.2-read-int.patch b/sci-astronomy/lephare/files/lephare-2.2-read-int.patch
new file mode 100644
index 000000000..8e6406c89
--- /dev/null
+++ b/sci-astronomy/lephare/files/lephare-2.2-read-int.patch
@@ -0,0 +1,11 @@
+--- zphota.f.orig 2012-06-14 22:11:52.000000000 +0100
++++ zphota.f 2012-06-14 22:12:18.000000000 +0100
+@@ -1725,7 +1725,7 @@
+ if (cattyp(1:4).eq.'LONG') then
+ j=2*imagm+2
+ if (gbcont.eq.-1) then
+- read(paravc(j),'(E24.0)') conti
++ read(paravc(j),'(I24)') conti
+ cont = DBLE(conti)
+ else
+ cont=gbcont
diff --git a/sci-astronomy/lephare/lephare-2.2.ebuild b/sci-astronomy/lephare/lephare-2.2.ebuild
new file mode 100644
index 000000000..0f10100b3
--- /dev/null
+++ b/sci-astronomy/lephare/lephare-2.2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit eutils check-reqs fortran-2
+
+MYP=${PN}_dev_v${PV}
+
+DESCRIPTION="Photometric Analysis for Redshift Estimate for galaxies"
+HOMEPAGE="http://www.cfht.hawaii.edu/~arnouts/LEPHARE/lephare.html"
+SRC_URI="http://www.cfht.hawaii.edu/~arnouts/LEPHARE/DOWNLOAD/${MYP}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${PN}_dev/source"
+
+CHECKREQS_DISK_BUILD="400M"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-read-int.patch
+ export LEPHAREDIR="${WORKDIR}/${PN}_dev" LEPHAREWORK="${WORKDIR}"
+ # clean up mac left over crap
+ find . -name ._\* -delete
+ # respect user flags and compiler
+ sed -i -e '/^FC/d' -e '/^FFLAGS/d' Makefile || die
+}
+
+src_test() {
+ # from pdf manual
+ cd ${LEPHAREDIR}/test
+ ${LEPHAREDIR}/source/sedtolib -t S -c ../config/zphot.para || die
+ ${LEPHAREDIR}/source/sedtolib -t Q -c ../config/zphot.para || die
+ ${LEPHAREDIR}/source/sedtolib -t G -c ../config/zphot.para || die
+ ${LEPHAREDIR}/source/filter -c ../config/zphot.para || die
+ ${LEPHAREDIR}/source/mag_star -c ../config/zphot.para || die
+ ${LEPHAREDIR}/source/mag_gal -t Q -c ../config/zphot.para -EB_V 0. || die
+ ${LEPHAREDIR}/source/mag_gal -t G -c ../config/zphot.para -MOD_EXTINC 4,8 -LIB_ASCII YES || die
+ ${LEPHAREDIR}/source/zphota -c ../config/zphot.para || die
+}
+
+src_install() {
+ # FILES target in Makefile
+ dobin \
+ sedtolib \
+ filter \
+ filter_info \
+ filter_extinc \
+ mag_star \
+ mag_gal \
+ zphota \
+ mag_zform
+ dodoc README_TECH
+ insinto /usr/share/${PN}
+ cd ..
+ doins -r {ext,filt,config,opa,sed,simul,test,tools,vega}
+ echo "LEPHAREDIR=${EPREFIX}/usr/share/${PN}" > 99lephare
+ doenvd 99lephare
+ newdoc INSTALL README
+ use doc && dodoc doc/*.pdf
+}
diff --git a/sci-astronomy/lephare/metadata.xml b/sci-astronomy/lephare/metadata.xml
new file mode 100644
index 000000000..e68e8f647
--- /dev/null
+++ b/sci-astronomy/lephare/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">
+ Le Photometric Analysis for Redshift Estimate is a set of commands
+ to compute photometric redshifts and to perform SED fitting.
+</longdescription>
+</pkgmetadata>