Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/scamp/
Date: Mon, 07 Mar 2016 20:06:30
Message-Id: 1457384541.174a68f95c2127998f99d3ce304028de6aae34d3.bicatali@gentoo
1 commit: 174a68f95c2127998f99d3ce304028de6aae34d3
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 7 20:59:36 2016 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 7 21:02:21 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=174a68f9
7
8 sci-astronomy/scamp: initial import
9
10 Package-Manager: portage-2.2.27
11
12 sci-astronomy/scamp/Manifest | 1 +
13 sci-astronomy/scamp/metadata.xml | 16 +++++++++++
14 sci-astronomy/scamp/scamp-2.0.4.ebuild | 52 ++++++++++++++++++++++++++++++++++
15 3 files changed, 69 insertions(+)
16
17 diff --git a/sci-astronomy/scamp/Manifest b/sci-astronomy/scamp/Manifest
18 new file mode 100644
19 index 0000000..c090ef8
20 --- /dev/null
21 +++ b/sci-astronomy/scamp/Manifest
22 @@ -0,0 +1 @@
23 +DIST scamp-2.0.4.tar.gz 4876618 SHA256 cbcd57f5042feefa081dc0c5ff07f7f50114a7ef41e79c060ed163caae119d41 SHA512 ed0a824ddcc3f9c791121323bb59969e89f509a2c429c0abb45655e6852bc452bd46c539dbebfd23097af1c7dbef9d3d905030083828974f75233ea4af4484d5 WHIRLPOOL bc87946ebacd2d723693898aac5a4702eecc138093cab987f76dfc8fb91c963bfaf13d25bd9042ee1fa23002816c4dde1d439da92839236f170adc119afee7d5
24
25 diff --git a/sci-astronomy/scamp/metadata.xml b/sci-astronomy/scamp/metadata.xml
26 new file mode 100644
27 index 0000000..d337960
28 --- /dev/null
29 +++ b/sci-astronomy/scamp/metadata.xml
30 @@ -0,0 +1,16 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 +<maintainer type="project">
35 + <email>sci-astronomy@g.o</email>
36 + <name>Gentoo Astronomy Project</name>
37 +</maintainer>
38 +<longdescription lang="en">
39 + SCAMP computes astrometric and photometric solutions from SExtractor catalogs
40 + and stores them in header files. These headers files can be read by SWarp to
41 + coadd images.
42 +</longdescription>
43 +<use>
44 + <flag name="plplot">Build with <pkg>sci-libs/plplot</pkg> to allow diagnostic plots during processing</flag>
45 +</use>
46 +</pkgmetadata>
47
48 diff --git a/sci-astronomy/scamp/scamp-2.0.4.ebuild b/sci-astronomy/scamp/scamp-2.0.4.ebuild
49 new file mode 100644
50 index 0000000..0d601c0
51 --- /dev/null
52 +++ b/sci-astronomy/scamp/scamp-2.0.4.ebuild
53 @@ -0,0 +1,52 @@
54 +# Copyright 1999-2016 Gentoo Foundation
55 +# Distributed under the terms of the GNU General Public License v2
56 +# $Id$
57 +
58 +EAPI=6
59 +
60 +inherit autotools
61 +
62 +DESCRIPTION="Astrometric and photometric solutions for astronomical images"
63 +HOMEPAGE="http://www.astromatic.net/software/scamp"
64 +SRC_URI="http://www.astromatic.net/download/${PN}/${P}.tar.gz"
65 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
66 +
67 +LICENSE="GPL-3"
68 +SLOT="0"
69 +IUSE="doc plplot threads"
70 +
71 +RDEPEND="
72 + sci-astronomy/cdsclient
73 + sci-libs/atlas[lapack,threads=]
74 + sci-libs/fftw:3.0
75 + plplot? ( sci-libs/plplot:= )"
76 +DEPEND="${RDEPEND}"
77 +
78 +src_prepare() {
79 + default
80 + local mycblas=atlcblas myclapack=atlclapack
81 + if use threads; then
82 + [[ -e "${EPREFIX}"/usr/$(get_libdir)/libptcblas.so ]] && \
83 + mycblas=ptcblas
84 + [[ -e "${EPREFIX}"/usr/$(get_libdir)/libptclapack.so ]] && \
85 + myclapack=ptclapack
86 + fi
87 + sed -e "s/-lcblas/-l${mycblas}/g" \
88 + -e "s/AC_CHECK_LIB(cblas/AC_CHECK_LIB(${mycblas}/g" \
89 + -e "s|lapack_lib=\"lapack\"|lapack_lib=${myclapack}|" \
90 + -i acx_atlas.m4 || die
91 + sed -e 's|plplotd|plplot|g' -i acx_plplot.m4 || die
92 + eautoreconf
93 +}
94 +
95 +src_configure() {
96 + econf \
97 + --with-atlas-incdir="${EPREFIX}/usr/include/atlas" \
98 + $(use_enable plplot) \
99 + $(use_enable threads)
100 +}
101 +
102 +src_install () {
103 + default
104 + use doc && dodoc doc/*
105 +}