aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Fabbro <bicatali@gentoo.org>2014-04-16 15:31:08 -0700
committerSébastien Fabbro <bicatali@gentoo.org>2014-04-16 15:31:08 -0700
commit2c8342fd8f5e71285b1797478755527daf77cbb8 (patch)
tree7e716a0fcf603e14b08358d026dc36af0efb6d21 /sci-astronomy
parentdev-python/montage-wrapper: Initial import (diff)
downloadsci-2c8342fd8f5e71285b1797478755527daf77cbb8.tar.gz
sci-2c8342fd8f5e71285b1797478755527daf77cbb8.tar.bz2
sci-2c8342fd8f5e71285b1797478755527daf77cbb8.zip
sci-astronomy/montage: Initial import
Package-Manager: portage-2.2.8-prefix
Diffstat (limited to 'sci-astronomy')
-rw-r--r--sci-astronomy/montage/ChangeLog9
-rw-r--r--sci-astronomy/montage/Manifest2
-rw-r--r--sci-astronomy/montage/metadata.xml9
-rw-r--r--sci-astronomy/montage/montage-3.3.ebuild52
4 files changed, 72 insertions, 0 deletions
diff --git a/sci-astronomy/montage/ChangeLog b/sci-astronomy/montage/ChangeLog
new file mode 100644
index 000000000..87812f105
--- /dev/null
+++ b/sci-astronomy/montage/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for sci-astronomy/montage
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*montage-3.3 (16 Apr 2014)
+
+ 16 Apr 2014; Sébastien Fabbro <bicatali@gentoo.org> +metadata.xml,
+ +montage-3.3.ebuild:
+ sci-astronomy/montage: Initial import
diff --git a/sci-astronomy/montage/Manifest b/sci-astronomy/montage/Manifest
new file mode 100644
index 000000000..97d0cb64b
--- /dev/null
+++ b/sci-astronomy/montage/Manifest
@@ -0,0 +1,2 @@
+DIST Montage_v3.3.tar.gz 6967237 SHA256 a4776d3f050ac9aed966de47986ee44f613f04b29fca55f72062754cfc258067 SHA512 3a1e5a63095d5ea5a27878712b79f370e92d9495e8eac1e43ddc4262194de7c4deb5c8fef1f14c3f579aa3343ba9ff3be0b3f3364f86b464057ed34973e734a8 WHIRLPOOL a7f52d325ad633c4a616355dbad1a90ed2b34f6d83399077d08aa2b430055bfb04e8010c58d93ec4fda1cc863717774bbc2e768cbad7f8daa07eaecd7667d3fb
+DIST montage-docs.tar.gz 91461226 SHA256 0037b49551001d4cc75ac7c084d65ff0ecb84026934853a9051b02976ef676b9 SHA512 5df4bf5e06486b43eb0ab3bd1cb9f8b99b3be375e319cb4ff95e850d4c89fc48abe3840832cabac54e378f12833ab3c5924610771a5dd22e5a2a19a3a5f32f38 WHIRLPOOL b18f2753316060693c2d0a93ed9e86f91fff8c6ceeb60ec5e6dd597b974e0f926418013c5c9dbe8e291d574ff26b52fdf1a0d1ff54bbe25f04fca3f4b8d4b0e1
diff --git a/sci-astronomy/montage/metadata.xml b/sci-astronomy/montage/metadata.xml
new file mode 100644
index 000000000..7f567c32e
--- /dev/null
+++ b/sci-astronomy/montage/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">
+ Montage is a toolkit for assembling Flexible Image Transport System
+ (FITS) images into custom mosaics
+</longdescription>
+</pkgmetadata>
diff --git a/sci-astronomy/montage/montage-3.3.ebuild b/sci-astronomy/montage/montage-3.3.ebuild
new file mode 100644
index 000000000..370bf1a73
--- /dev/null
+++ b/sci-astronomy/montage/montage-3.3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit toolchain-funcs
+
+MYP=Montage_v${PV}
+
+DESCRIPTION="Astronomical image mosaic engine"
+HOMEPAGE="http://montage.ipac.caltech.edu/"
+SRC_URI="http://montage.ipac.caltech.edu/download/${MYP}.tar.gz
+ doc? ( http://montage.ipac.caltech.edu/docs/docs.tar.gz -> ${PN}-docs.tar.gz )"
+
+LICENSE="Montage"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+SLOT="0"
+
+IUSE="doc mpi"
+
+# unfortunate upstream patching, cfitsio, wcstools, jpeg
+# see docs/ExternalLibraries
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MYP}"
+
+src_prepare() {
+ use doc && mv "${WORKDIR}"/docs/* docs/
+ sed -i \
+ -e "/CC.*=/s:\(gcc\|cc\):$(tc-getCC):g" \
+ -e "/CFLAGS.*=/s:-g:${CFLAGS}:g" \
+ -e "s:ar q:$(tc-getAR) q:g" \
+ $(find . -name Makefile) || die
+ if use mpi; then
+ sed -i \
+ -e 's:# MPICC:MPICC:' \
+ -e 's:# BINS:BINS:' \
+ Montage/Makefile || die
+ fi
+}
+
+src_install () {
+ dobin bin/*
+ dodoc README ChangeHistory
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins -r docs/*
+ fi
+}