commit:     2c8342fd8f5e71285b1797478755527daf77cbb8
Author:     Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 16 22:31:08 2014 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Wed Apr 16 22:31:08 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=2c8342fd

sci-astronomy/montage: Initial import

Package-Manager: portage-2.2.8-prefix

---
 sci-astronomy/montage/ChangeLog          |  9 ++++++
 sci-astronomy/montage/metadata.xml       |  9 ++++++
 sci-astronomy/montage/montage-3.3.ebuild | 52 ++++++++++++++++++++++++++++++++
 3 files changed, 70 insertions(+)

diff --git a/sci-astronomy/montage/ChangeLog b/sci-astronomy/montage/ChangeLog
new file mode 100644
index 0000000..87812f1
--- /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 <[email protected]> +metadata.xml,
+  +montage-3.3.ebuild:
+  sci-astronomy/montage: Initial import

diff --git a/sci-astronomy/montage/metadata.xml 
b/sci-astronomy/montage/metadata.xml
new file mode 100644
index 0000000..7f567c3
--- /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 0000000..370bf1a
--- /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
+}

Reply via email to