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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Aug 3 19:09:42 2012 UTC (7 years, 2 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Fixed a shell script, jpeg2k (bug #413703, thanks jer), and keyword amd64-linux x86-linux

(Portage version: 2.2.01.20796-prefix/cvs/Linux x86_64)

1 # Copyright 1999-2011 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-r1.ebuild,v 1.4 2011/06/21 15:18:12 jlec Exp $
4
5 EAPI=2
6 inherit eutils fortran-2 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="
18 fortran? ( virtual/fortran )
19 jpeg2k? ( || ( media-libs/jasper media-libs/openjpeg ) )
20 png? ( media-libs/libpng )
21 python? ( dev-python/numpy )"
22 RDEPEND="${DEPEND}"
23
24 src_prepare() {
25 epatch \
26 "${FILESDIR}"/${P}-autotools.patch \
27 "${FILESDIR}"/${P}-32bit.patch
28 eautoreconf
29 }
30
31 src_configure() {
32 econf \
33 --enable-install-system-perl \
34 $(use_enable fortran) \
35 $(use_enable jpeg2k jpeg) \
36 $(use_enable openmp omp-packing) \
37 $(use_enable python) \
38 $(use_enable python numpy) \
39 $(use_enable static-libs static) \
40 $(use_with perl) \
41 $(use_with png png-support)
42
43 }
44
45 src_install() {
46 emake DESTDIR="${D}" install || die "emake install failed"
47 dodoc AUTHORS ChangeLog README
48 if use doc; then
49 dohtml html/* || die
50 fi
51 if use examples; then
52 insinto /usr/share/doc/${PF}/examples
53 emake clean
54 doins -r * || die
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20