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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Jun 13 12:45:59 2013 UTC (6 years, 4 months ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
Depend on SLOT=0 of media-libs/openjpeg (bug 440086)

(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)

1 # Copyright 1999-2013 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.16.ebuild,v 1.3 2012/11/29 18:05:47 bicatali Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="python? 2"
8 inherit eutils autotools python
9
10 DESCRIPTION="Library for decoding WMO FM-92 GRIB messages"
11 HOMEPAGE="http://www.ecmwf.int/products/data/software/grib_api.html"
12 SRC_URI="http://www.ecmwf.int/products/data/software/download/software_files/${P}.tar.gz"
13
14 LICENSE="LGPL-3"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
17 IUSE="doc examples fortran jasper jpeg2k netcdf openmp png python static-libs"
18
19 DEPEND="
20 jpeg2k? (
21 jasper? ( media-libs/jasper )
22 !jasper? ( media-libs/openjpeg:0 )
23 )
24 netcdf? ( sci-libs/netcdf )
25 png? ( media-libs/libpng )
26 python? ( dev-python/numpy )"
27 RDEPEND="${DEPEND}"
28
29 pkg_setup() {
30 use python && python_set_active_version 2
31 }
32
33 src_prepare() {
34 sed -i -e 's:/usr/bin/ksh:/bin/sh:' tools/grib1to2.txt || die
35 epatch \
36 "${FILESDIR}"/${PN}-1.9.9-ieeefloat.patch \
37 "${FILESDIR}"/${PN}-1.9.16-autotools.patch \
38 "${FILESDIR}"/${PN}-1.9.16-jpeg2k.patch
39 eautoreconf
40 }
41
42 src_configure() {
43 # perl sources disappear from tar ball
44 econf \
45 --without-perl \
46 $(use_enable jpeg2k jpeg) \
47 $(
48 use jasper && \
49 echo --with-jasper=system --without-openjpeg || \
50 echo --with-openjpeg=system --without-jasper
51 ) \
52 $(use_enable fortran) \
53 $(use_enable openmp omp-packing) \
54 $(use_enable python) \
55 $(use_enable python numpy) \
56 $(use_enable static-libs static) \
57 $(
58 use netcdf && echo --with-netcdf="${EPREFIX}"/usr || \
59 echo --with-netcdf=none
60 ) \
61 $(use_with png png-support) \
62 ${myconf}
63 }
64
65 src_install() {
66 default
67 use doc && dohtml html/*
68 if use examples; then
69 insinto /usr/share/doc/${PF}/examples
70 emake clean
71 doins -r *
72 fi
73 }

  ViewVC Help
Powered by ViewVC 1.1.20