/[gentoo-x86]/sci-astronomy/wcslib/wcslib-4.10.ebuild
Gentoo

Contents of /sci-astronomy/wcslib/wcslib-4.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Mar 2 05:41:28 2012 UTC (2 years, 1 month ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump

(Portage version: 2.1.10.44/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/wcslib/wcslib-4.10.ebuild,v 1.1 2012/02/09 18:51:13 bicatali Exp $
4
5 EAPI=4
6
7 inherit eutils fortran-2
8
9 DESCRIPTION="Astronomical World Coordinate System transformations library"
10 HOMEPAGE="http://www.atnf.csiro.au/people/mcalabre/WCS/"
11 SRC_URI="ftp://ftp.atnf.csiro.au/pub/software/${PN}/${P}.tar.bz2"
12
13 SLOT="0"
14 LICENSE="LGPL-3"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="fortran fits pgplot static-libs"
17
18 RDEPEND="fortran? ( virtual/fortran )
19 fits? ( sci-libs/cfitsio )
20 pgplot? ( sci-libs/pgplot )"
21 DEPEND="${RDEPEND}"
22
23 pkg_setup() {
24 use fortran && fortran-2_pkg_setup
25 }
26
27 src_prepare() {
28 sed -i -e 's/COPYING\*//' GNUmakefile || die
29 }
30
31 src_configure() {
32 econf \
33 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
34 $(use_enable static-libs static) \
35 $(use_enable fortran) \
36 $(use_with fits cfitsio) \
37 $(use_with pgplot)
38 }
39
40 src_compile() {
41 # nasty makefile, debugging means full rewrite
42 emake -j1
43 }
44
45 src_test() {
46 emake -j1 check
47 }
48
49 src_install () {
50 default
51 # static libs are same as shared (compiled with PIC)
52 # so they are not compiled twice
53 use static-libs || rm -f "${ED}"/usr/$(get_libdir)/lib*.a
54 }

  ViewVC Help
Powered by ViewVC 1.1.20