Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/grib_api: grib_api-1.9.9-r1.ebuild ChangeLog grib_api-1.9.9.ebuild
Date: Mon, 27 Feb 2012 18:18:29
Message-Id: 20120227181819.5BC332004B@flycatcher.gentoo.org
1 bicatali 12/02/27 18:18:19
2
3 Modified: ChangeLog
4 Added: grib_api-1.9.9-r1.ebuild
5 Removed: grib_api-1.9.9.ebuild
6 Log:
7 Install samples in proper FHS directory. Python routines now installed without changing PYTHONPATH (bug #405177). Switchd to EAPI4
8
9 (Portage version: 2.1.10.44/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.9 sci-libs/grib_api/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/grib_api/ChangeLog?rev=1.9&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/grib_api/ChangeLog?rev=1.9&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/grib_api/ChangeLog?r1=1.8&r2=1.9
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-libs/grib_api/ChangeLog,v
21 retrieving revision 1.8
22 retrieving revision 1.9
23 diff -u -r1.8 -r1.9
24 --- ChangeLog 21 Dec 2011 07:55:03 -0000 1.8
25 +++ ChangeLog 27 Feb 2012 18:18:19 -0000 1.9
26 @@ -1,6 +1,13 @@
27 # ChangeLog for sci-libs/grib_api
28 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/grib_api/ChangeLog,v 1.8 2011/12/21 07:55:03 jlec Exp $
30 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/grib_api/ChangeLog,v 1.9 2012/02/27 18:18:19 bicatali Exp $
32 +
33 +*grib_api-1.9.9-r1 (27 Feb 2012)
34 +
35 + 27 Feb 2012; Sébastien Fabbro <bicatali@g.o> -grib_api-1.9.9.ebuild,
36 + +grib_api-1.9.9-r1.ebuild, files/grib_api-1.9.9-autotools.patch:
37 + Install samples in proper FHS directory. Python routines now installed
38 + without changing PYTHONPATH (bug #405177). Switchd to EAPI4
39
40 21 Dec 2011; Justin Lecher <jlec@g.o> grib_api-1.9.9.ebuild:
41 Fix for linker failure, #391797
42
43
44
45 1.1 sci-libs/grib_api/grib_api-1.9.9-r1.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/grib_api/grib_api-1.9.9-r1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/grib_api/grib_api-1.9.9-r1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: grib_api-1.9.9-r1.ebuild
51 ===================================================================
52 # Copyright 1999-2012 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $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 $
55
56 EAPI=4
57 inherit eutils autotools
58
59 #MYP=${P}_libtool
60 MYP=${P}
61
62 DESCRIPTION="Library for decoding WMO FM-92 GRIB messages"
63 HOMEPAGE="http://www.ecmwf.int/products/data/software/grib_api.html"
64 SRC_URI="http://www.ecmwf.int/products/data/software/download/software_files/${MYP}.tar.gz"
65
66 LICENSE="LGPL-3"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69 IUSE="doc examples fortran jpeg2k netcdf openmp png perl python static-libs"
70
71 DEPEND="jpeg2k? ( || ( media-libs/jasper media-libs/openjpeg ) )
72 netcdf? ( sci-libs/netcdf )
73 png? ( media-libs/libpng )
74 python? ( dev-python/numpy )"
75 RDEPEND="${DEPEND}"
76
77 S="${WORKDIR}/${MYP}"
78
79 src_prepare() {
80 epatch \
81 "${FILESDIR}"/${P}-ieeefloat.patch \
82 "${FILESDIR}"/${P}-autotools.patch
83 eautoreconf
84 }
85
86 src_configure() {
87 local myconf
88 if use jpeg2k; then
89 myconf="--enable-jpeg"
90 if hasv media-libs/jasper; then
91 myconf="${myconf} --with-jasper=system --without-openjpeg"
92 elif hasv media-libs/openjpeg; then
93 myconf="${myconf} --without-jasper --with-openjpeg=system"
94 fi
95 else
96 myconf="--disable-jpeg --without-jasper --without-openjpeg"
97 fi
98 econf \
99 --enable-install-system-perl \
100 --with-perl-options="INSTALLDIRS=vendor" \
101 $(use_enable fortran) \
102 $(use_enable openmp omp-packing) \
103 $(use_enable python) \
104 $(use_enable python numpy) \
105 $(use_enable static-libs static) \
106 $(use_with netcdf netcdf "${EPREFIX}"/usr) \
107 $(use_with perl) \
108 $(use_with png png-support) \
109 ${myconf}
110 }
111
112 src_install() {
113 default
114 use doc && dohtml html/*
115 if use examples; then
116 insinto /usr/share/doc/${PF}/examples
117 emake clean
118 doins -r *
119 fi
120 }