/[gentoo-x86]/sci-libs/grib_api/grib_api-1.9.5.ebuild
Gentoo

Contents of /sci-libs/grib_api/grib_api-1.9.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Dec 21 05:29:33 2010 UTC (9 years, 6 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Fixed a bunch of bad enable/disable assumptions in the configure script

(Portage version: 2.1.9.25/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/grib_api/grib_api-1.9.5.ebuild,v 1.1 2010/11/30 17:49:46 bicatali Exp $
4
5 EAPI=2
6 inherit eutils autotools
7
8 DESCRIPTION="Library for decoding WMO FM-92 GRIB messages"
9 HOMEPAGE="http://www.ecmwf.int/products/data/software/grib_api.html"
10 SRC_URI="http://www.ecmwf.int/products/data/software/download/software_files/${P}.tar.gz"
11
12 LICENSE="LGPL-3"
13 SLOT="0"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="doc examples fortran jpeg2k openmp png perl python static-libs"
16
17 DEPEND="jpeg2k? ( || ( media-libs/jasper media-libs/openjpeg ) )
18 png? ( media-libs/libpng )
19 python? ( dev-python/numpy )"
20 RDEPEND="${DEPEND}"
21
22 src_prepare() {
23 epatch "${FILESDIR}"/${P}-autotools.patch
24 eautoreconf
25 }
26
27 src_configure() {
28 econf \
29 --enable-install-system-perl \
30 $(use_enable fortran) \
31 $(use_enable jpeg2k jpeg) \
32 $(use_enable openmp omp-packing) \
33 $(use_enable python) \
34 $(use_enable python numpy) \
35 $(use_enable static-libs static) \
36 $(use_with perl) \
37 $(use_with png png-support)
38
39 }
40
41 src_install() {
42 emake DESTDIR="${D}" install || die "emake install failed"
43 dodoc AUTHORS ChangeLog README
44 if use doc; then
45 dohtml html/* || die
46 fi
47 if use examples; then
48 insinto /usr/share/doc/${PF}/examples
49 emake clean
50 doins -r * || die
51 fi
52 }

  ViewVC Help
Powered by ViewVC 1.1.20