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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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.1: +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-2012 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.9-r1.ebuild,v 1.1 2012/02/27 18:18:19 bicatali Exp $
4
5 EAPI=4
6 inherit eutils autotools
7
8 #MYP=${P}_libtool
9 MYP=${P}
10
11 DESCRIPTION="Library for decoding WMO FM-92 GRIB messages"
12 HOMEPAGE="http://www.ecmwf.int/products/data/software/grib_api.html"
13 SRC_URI="http://www.ecmwf.int/products/data/software/download/software_files/${MYP}.tar.gz"
14
15 LICENSE="LGPL-3"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="doc examples fortran jpeg2k netcdf openmp png perl python static-libs"
19
20 DEPEND="jpeg2k? ( || ( media-libs/jasper media-libs/openjpeg ) )
21 netcdf? ( sci-libs/netcdf )
22 png? ( media-libs/libpng )
23 python? ( dev-python/numpy )"
24 RDEPEND="${DEPEND}"
25
26 S="${WORKDIR}/${MYP}"
27
28 src_prepare() {
29 epatch \
30 "${FILESDIR}"/${P}-ieeefloat.patch \
31 "${FILESDIR}"/${P}-autotools.patch
32 eautoreconf
33 }
34
35 src_configure() {
36 local myconf
37 if use jpeg2k; then
38 myconf="--enable-jpeg"
39 if hasv media-libs/jasper; then
40 myconf="${myconf} --with-jasper=system --without-openjpeg"
41 elif hasv media-libs/openjpeg; then
42 myconf="${myconf} --without-jasper --with-openjpeg=system"
43 fi
44 else
45 myconf="--disable-jpeg --without-jasper --without-openjpeg"
46 fi
47 econf \
48 --enable-install-system-perl \
49 --with-perl-options="INSTALLDIRS=vendor" \
50 $(use_enable fortran) \
51 $(use_enable openmp omp-packing) \
52 $(use_enable python) \
53 $(use_enable python numpy) \
54 $(use_enable static-libs static) \
55 $(use_with netcdf netcdf "${EPREFIX}"/usr) \
56 $(use_with perl) \
57 $(use_with png png-support) \
58 ${myconf}
59 }
60
61 src_install() {
62 default
63 use doc && dohtml html/*
64 if use examples; then
65 insinto /usr/share/doc/${PF}/examples
66 emake clean
67 doins -r *
68 fi
69 }

  ViewVC Help
Powered by ViewVC 1.1.20