/[gentoo-x86]/sci-astronomy/wcstools/wcstools-3.8.6.ebuild
Gentoo

Contents of /sci-astronomy/wcstools/wcstools-3.8.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Aug 21 11:50:52 2012 UTC (8 months, 4 weeks ago) by xarthisius
Branch: MAIN
CVS Tags: HEAD
Version bump

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-astronomy/wcstools/wcstools-3.8.5.ebuild,v 1.2 2012/08/05 20:42:30 bicatali Exp $
4
5 EAPI=4
6
7 inherit autotools eutils multilib
8
9 DESCRIPTION="World Coordinate System library for astronomical FITS images"
10 HOMEPAGE="http://tdc-www.harvard.edu/software/wcstools"
11 SRC_URI="${HOMEPAGE}/${P}.tar.gz"
12
13 LICENSE="GPL-2 LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
16 IUSE="static-libs"
17
18 DOCS=( Readme Programs NEWS libned/NED_client )
19
20 src_prepare() {
21 epatch \
22 "${FILESDIR}"/${PN}-3.8.3-autotools.patch \
23 "${FILESDIR}"/${PN}-3.8.4-implicits.patch
24
25 # avoid colliding with fixdos, getdate and remap from other packages
26 sed -i \
27 -e 's/getdate/wcsgetdate/' \
28 -e 's/crlf/wcscrlf/' \
29 -e 's/remap/wcsremap/' \
30 -e "s/3.... Programs/${PV} Programs/" \
31 wcstools || die
32 eautoreconf
33 }
34
35 src_configure() {
36 econf $(use_enable static-libs static)
37 }
38
39 src_test() {
40 einfo "Testing various wcstools programs"
41 ./newfits -a 10 -j 248 41 -p 0.15 test.fits || die "test newfits failed"
42 ./sethead test.fits A=1 B=1 || die "test sethead failed"
43 [[ "$(./gethead test.fits RA)" == "16:32:00.0000" ]] \
44 || die "test gethead failed"
45 rm test.fits
46 }
47
48 src_install() {
49 default
50 use static-libs || rm -rf "${D}"/usr/$(get_libdir)/*.la
51 doman Man/man1/*
52 newdoc libwcs/Readme Readme.libwcs
53 newdoc libwcs/NEWS NEWS.libwcs
54 }
55
56 pkg_postinst() {
57 elog "The following execs have been renamed to avoid colliding"
58 elog "with other packages:"
59 elog " getdate -> wcsgetdate"
60 elog " crlf -> wcscrlf"
61 elog " remap -> wcsremap"
62 }

  ViewVC Help
Powered by ViewVC 1.1.13