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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Feb 27 18:18:19 2012 UTC (7 years, 7 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Install samples in proper FHS directory. Python routines now installed without changing PYTHONPATH (bug #405177). Switchd to EAPI4

(Portage version: 2.1.10.44/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.9.ebuild,v 1.3 2011/12/21 07:55:03 jlec Exp $
4
5 EAPI=3
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 sed \
33 -e '/LDFLAGS=/d' \
34 -i configure.ac || die
35 eautoreconf
36 }
37
38 src_configure() {
39 local myconf
40 if use jpeg2k; then
41 myconf="--enable-jpeg"
42 if hasv media-libs/jasper; then
43 myconf="${myconf} --with-jasper=system --without-openjpeg"
44 elif hasv media-libs/openjpeg; then
45 myconf="${myconf} --without-jasper --with-openjpeg=system"
46 fi
47 else
48 myconf="--disable-jpeg --without-jasper --without-openjpeg"
49 fi
50 econf \
51 --enable-install-system-perl \
52 --with-perl-options="INSTALLDIRS=vendor" \
53 $(use_enable fortran) \
54 $(use_enable openmp omp-packing) \
55 $(use_enable python) \
56 $(use_enable python numpy) \
57 $(use_enable static-libs static) \
58 $(use_with netcdf netcdf "${EPREFIX}"/usr) \
59 $(use_with perl) \
60 $(use_with png png-support) \
61 ${myconf}
62 }
63
64 src_install() {
65 emake DESTDIR="${D}" install || die "emake install failed"
66 dodoc AUTHORS ChangeLog README
67 if use doc; then
68 dohtml html/* || die
69 fi
70 if use examples; then
71 insinto /usr/share/doc/${PF}/examples
72 emake clean
73 doins -r * || die
74 fi
75 }

  ViewVC Help
Powered by ViewVC 1.1.20