summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2013-10-28 17:25:56 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2013-10-28 17:25:56 +0000
commitf71a3ca6fc211ae6d21c6216c7d1260efc0350a5 (patch)
treea77cb6e53d9a6b5dbbb6c1e9c7ddea74b52972bb /sci-libs/grib_api
parentVersion bump (diff)
downloadgentoo-2-f71a3ca6fc211ae6d21c6216c7d1260efc0350a5.tar.gz
gentoo-2-f71a3ca6fc211ae6d21c6216c7d1260efc0350a5.tar.bz2
gentoo-2-f71a3ca6fc211ae6d21c6216c7d1260efc0350a5.zip
Version bump
(Portage version: 2.2.7-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
Diffstat (limited to 'sci-libs/grib_api')
-rw-r--r--sci-libs/grib_api/ChangeLog8
-rw-r--r--sci-libs/grib_api/grib_api-1.11.0.ebuild86
-rw-r--r--sci-libs/grib_api/metadata.xml6
3 files changed, 97 insertions, 3 deletions
diff --git a/sci-libs/grib_api/ChangeLog b/sci-libs/grib_api/ChangeLog
index 261fe153ce22..877bd42e745b 100644
--- a/sci-libs/grib_api/ChangeLog
+++ b/sci-libs/grib_api/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-libs/grib_api
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/grib_api/ChangeLog,v 1.13 2013/06/13 12:45:59 xmw Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/grib_api/ChangeLog,v 1.14 2013/10/28 17:25:56 bicatali Exp $
+
+*grib_api-1.11.0 (28 Oct 2013)
+
+ 28 Oct 2013; Sébastien Fabbro <bicatali@gentoo.org> +grib_api-1.11.0.ebuild,
+ metadata.xml:
+ Version bump
13 Jun 2013; Michael Weber <xmw@gentoo.org> grib_api-1.9.16.ebuild:
Depend on SLOT=0 of media-libs/openjpeg (bug 440086)
diff --git a/sci-libs/grib_api/grib_api-1.11.0.ebuild b/sci-libs/grib_api/grib_api-1.11.0.ebuild
new file mode 100644
index 000000000000..1e843fe4ebc4
--- /dev/null
+++ b/sci-libs/grib_api/grib_api-1.11.0.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/grib_api/grib_api-1.11.0.ebuild,v 1.1 2013/10/28 17:25:56 bicatali Exp $
+
+EAPI=5
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+FORTRAN_NEEDED=fortran
+FORTRAN_STANDARD="77 90"
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
+
+inherit autotools-utils toolchain-funcs fortran-2 python-single-r1
+
+PID=3473437
+
+DESCRIPTION="Library for decoding WMO FM-92 GRIB messages"
+HOMEPAGE="https://software.ecmwf.int/wiki/display/GRIB/Home"
+SRC_URI="https://software.ecmwf.int/wiki/download/attachments/${PID}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+
+IUSE="doc examples fortran jasper jpeg2k netcdf openmp png python static-libs threads perl"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ jpeg2k? (
+ jasper? ( media-libs/jasper )
+ !jasper? ( media-libs/openjpeg:0 )
+ )
+ netcdf? ( sci-libs/netcdf )
+ png? ( media-libs/libpng )
+ python? ( dev-python/numpy[${PYTHON_USEDEP}] )"
+DEPEND="${RDEPEND}
+ python? ( dev-lang/swig )"
+
+pkg_setup() {
+ if use openmp; then
+ if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then
+ ewarn "OpenMP is not available in your current selected gcc"
+ die "need openmp capable gcc"
+ fi
+ fi
+ fortran-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # failing test
+ sed -i \
+ -e 's/\(${tools_dir}grib_ls -plevels tmp_rlls.grib1 | grep MISSING\)/#\1/' \
+ tests/ls.sh
+}
+
+src_configure() {
+ # perl module needs serious packaging work from upstream
+ local myeconfargs=(
+ --without-perl
+ $(use_enable jpeg2k jpeg)
+ $(use_enable fortran)
+ $(use_enable openmp omp-packing)
+ $(use_enable python)
+ $(use_enable python numpy)
+ $(use_enable threads pthread)
+ $(
+ use netcdf && \
+ echo --with-netcdf="${EPREFIX}"/usr || \
+ echo --with-netcdf=none
+ )
+ $(use_with png png-support)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+ use doc && dohtml -r html/*
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ emake clean
+ doins -r *
+ fi
+ use python && python_optimize
+}
diff --git a/sci-libs/grib_api/metadata.xml b/sci-libs/grib_api/metadata.xml
index bcf58c960489..390ff4487e6e 100644
--- a/sci-libs/grib_api/metadata.xml
+++ b/sci-libs/grib_api/metadata.xml
@@ -9,6 +9,8 @@
FM-92 GRIB edition 1 and edition 2 messages. A useful set of command
line tools is also provided to give quick access to grib messages.
</longdescription>
-<use><flag name="jasper">Use <pkg>media-libs/jasper</pkg> instead of
-<pkg>media-libs/openjpeg</pkg> for JPEG 2000 support</flag></use>
+<use>
+ <flag name="jasper">Use <pkg>media-libs/jasper</pkg> instead of
+ <pkg>media-libs/openjpeg</pkg> for JPEG 2000 support</flag>
+</use>
</pkgmetadata>