diff options
author | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2006-04-11 08:01:59 +0000 |
---|---|---|
committer | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2006-04-11 08:01:59 +0000 |
commit | 932dea0c1ba37798c0c16655075c7a3e90d06dd4 (patch) | |
tree | bf55b316845b84c64820ce7baae52e5f6f50e773 /sci-astronomy/swarp/swarp-2.15.7.ebuild | |
parent | cleaned numdisplay (diff) | |
download | sci-932dea0c1ba37798c0c16655075c7a3e90d06dd4.tar.gz sci-932dea0c1ba37798c0c16655075c7a3e90d06dd4.tar.bz2 sci-932dea0c1ba37798c0c16655075c7a3e90d06dd4.zip |
swarp-2.15.7 version bump
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@157 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-astronomy/swarp/swarp-2.15.7.ebuild')
-rw-r--r-- | sci-astronomy/swarp/swarp-2.15.7.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sci-astronomy/swarp/swarp-2.15.7.ebuild b/sci-astronomy/swarp/swarp-2.15.7.ebuild new file mode 100644 index 000000000..a0b69046f --- /dev/null +++ b/sci-astronomy/swarp/swarp-2.15.7.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Resample and coadd astronomical FITS images" +HOMEPAGE="http://terapix.iap.fr/soft/swarp" +SRC_URI="ftp://ftp.iap.fr/pub/from_users/bertin/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="static doc threads mpi icc" +DEPEND="mpi? ( virtual/mpi ) ) + icc? ( dev-lang/icc >= 9 )" + +# mpi stuff untested. +src_compile() { + # trust swarp cflags to be optimized. + filter-flags ${CFLAGS} + # --disable-threads does not compile + # todo: calculate a number of threads (~= ncpu) + local myconf="" + use threads && myconf="--enable-threads " + use mpi || export MPICC="$(tc-getCC)" + econf \ + $(use_enable static ) \ + $(use_enable icc ) \ + $(use_enable mpi ) \ + ${myconf} \ + || die "econf failed" + emake || die "emake failed" +} + +src_install () { + make DESTDIR=${D} install || die "make install failed" + dodoc AUTHORS ChangeLog COPYING HISTORY README THANKS + if use doc; then + insinto /usr/share/doc/${PF} + doins doc/* + fi +} + |