diff options
author | Sébastien Fabbro <bicatali@gentoo.org> | 2016-03-15 00:04:26 +0000 |
---|---|---|
committer | Sébastien Fabbro <bicatali@gentoo.org> | 2016-03-18 20:09:58 +0000 |
commit | 4cb737b6dc7bd7b2e377ed324491cc4a0859b75d (patch) | |
tree | f7c6466bf7211fd277818058214ba6018526b460 /sci-libs/grib_api | |
parent | sci-libs/cgnslib: Version bump (diff) | |
download | gentoo-4cb737b6dc7bd7b2e377ed324491cc4a0859b75d.tar.gz gentoo-4cb737b6dc7bd7b2e377ed324491cc4a0859b75d.tar.bz2 gentoo-4cb737b6dc7bd7b2e377ed324491cc4a0859b75d.zip |
sci-libs/grib_api: Version bump
Package-Manager: portage-2.2.27
Diffstat (limited to 'sci-libs/grib_api')
-rw-r--r-- | sci-libs/grib_api/Manifest | 2 | ||||
-rw-r--r-- | sci-libs/grib_api/files/grib_api-1.14.5-add-missing-destdir.patch | 19 | ||||
-rw-r--r-- | sci-libs/grib_api/files/grib_api-1.14.5-disable-failing-test.patch | 15 | ||||
-rw-r--r-- | sci-libs/grib_api/grib_api-1.14.5.ebuild | 94 | ||||
-rw-r--r-- | sci-libs/grib_api/metadata.xml | 1 |
5 files changed, 131 insertions, 0 deletions
diff --git a/sci-libs/grib_api/Manifest b/sci-libs/grib_api/Manifest index 6776c1fafe8d..8eb59a24061e 100644 --- a/sci-libs/grib_api/Manifest +++ b/sci-libs/grib_api/Manifest @@ -1,2 +1,4 @@ DIST grib_api-1.11.0.tar.gz 14412684 SHA256 7a7ee16c6df1b0dceff3d8b5cd5f614804ca6e49b6aa99892f99fd6d6a2f5b35 SHA512 09c50d194049d2d19686139fb7150bd7399fc05bb5b7e40e8d91ce0301698263c40357b8524f925642ae6f78d9bc61218be26bef7f2dfeb326ccc9e8bc3a49e3 WHIRLPOOL 0e1f3bf8b36c12f12ef04dd653aa9eb024095adaec0a56fae7beb1c666f4410e912f56bbba3a0526e08f78000859b113ffff4a6f3ee11f6fa1944aa249e4289a +DIST grib_api-1.14.5-Source.tar.gz 4530071 SHA256 047029afca9445047f8fce8250146f6b17d1bc4eb9c17fcaa8e74aa173c4ab08 SHA512 ad31dc27adcdeeded1aa3c3620181c0d4a5250734724c242443d19332b84f2297b4dea2aa02027627321fa35822c94865a41f24d03eb1143756621da14a59322 WHIRLPOOL 29b48fb8babe5cca4695480f675eba557d86e26ea1e230e164586b713dfebd9ce4033ae4e72e7cdcce258ed8129860897c66e6acf0393f7ccc710c649b5cc80d DIST grib_api-1.9.16.tar.gz 6267489 SHA256 9066a18e2366eca147cfdf4406c0d80f6fd65e23d51d8e781a22d08694417a05 SHA512 fdb04d39b906de1acbbde635540baf408156aca6a7243849c121e941de1878107ef2348162c135f9aaf9e4cc97d0970c562264f11ea6b8f82ecf8ae896575ba9 WHIRLPOOL 0174627ffe6611b72424d4cd5b516f90a32dc0e72498b0617a8f24de6345c3ecc01628a4027f121ae468eddc322e1c354e3a69326313602d17b97128ad49ca65 +DIST grib_api_test_data.tar.gz 131042849 SHA256 faf56d38c9776c52a48fddaaa3651e25293978e0f8697764b37e36d312877c91 SHA512 25b37c3e725f7a2c18979d96e7d512111ba54f4e448c57e6a8ae913b7f13be25d9e643edb45ebc714daf6de51d85e9a7d252e735299affc562b9911e53a95058 WHIRLPOOL a6c46854b2e01ec1c4e28254c50809d9a8450012ce75225eb50bde04ee53dadcbf3e269bc7fb8884155852494123cb2277d8b581a61c322feccc1ef6a9a90fb0 diff --git a/sci-libs/grib_api/files/grib_api-1.14.5-add-missing-destdir.patch b/sci-libs/grib_api/files/grib_api-1.14.5-add-missing-destdir.patch new file mode 100644 index 000000000000..6bd6fb53f6e9 --- /dev/null +++ b/sci-libs/grib_api/files/grib_api-1.14.5-add-missing-destdir.patch @@ -0,0 +1,19 @@ +From: Sébastien Fabbro <bicatali@gentoo.org> +Subject: add missing DESTDIR to respect sandbox install + +--- grib_api-1.14.5-Source.orig/fortran/CMakeLists.txt 2016-03-14 22:53:44.310678929 +0000 ++++ grib_api-1.14.5-Source/fortran/CMakeLists.txt 2016-03-14 22:55:42.479193350 +0000 +@@ -55,11 +55,11 @@ + install( CODE + " + if( EXISTS ${CMAKE_Fortran_MODULE_DIRECTORY}/${CMAKE_CFG_INTDIR}/GRIB_API.mod ) +- execute_process( COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_Fortran_MODULE_DIRECTORY}/${CMAKE_CFG_INTDIR}/GRIB_API.mod ${CMAKE_INSTALL_PREFIX}/${INSTALL_INCLUDE_DIR}/grib_api.mod ) ++ execute_process( COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_Fortran_MODULE_DIRECTORY}/${CMAKE_CFG_INTDIR}/GRIB_API.mod \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${INSTALL_INCLUDE_DIR}/grib_api.mod ) + endif() + + if( EXISTS ${CMAKE_Fortran_MODULE_DIRECTORY}/${CMAKE_CFG_INTDIR}/grib_api.mod ) +- execute_process( COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_Fortran_MODULE_DIRECTORY}/${CMAKE_CFG_INTDIR}/grib_api.mod ${CMAKE_INSTALL_PREFIX}/${INSTALL_INCLUDE_DIR}/GRIB_API.mod ) ++ execute_process( COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_Fortran_MODULE_DIRECTORY}/${CMAKE_CFG_INTDIR}/grib_api.mod \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${INSTALL_INCLUDE_DIR}/GRIB_API.mod ) + endif() + " ) + diff --git a/sci-libs/grib_api/files/grib_api-1.14.5-disable-failing-test.patch b/sci-libs/grib_api/files/grib_api-1.14.5-disable-failing-test.patch new file mode 100644 index 000000000000..0615edc15420 --- /dev/null +++ b/sci-libs/grib_api/files/grib_api-1.14.5-disable-failing-test.patch @@ -0,0 +1,15 @@ +From: Sébastien Fabbro <bicatali@gentoo.org> +Subject: comment out failing test +https://software.ecmwf.int/issues/browse/SUP-521 +--- grib_api-1.14.5-Source.orig/tests/ls.sh 2016-03-14 21:56:28.933867464 +0000 ++++ grib_api-1.14.5-Source/tests/ls.sh 2016-03-14 21:56:57.103513324 +0000 +@@ -62,7 +62,8 @@ + + # Test for bug GRIB-56 + ${tools_dir}grib_set -s typeOfLevel=depthBelowLandLayer,topLevel=missing regular_latlon_surface.grib1 tmp_rlls.grib1 +-${tools_dir}grib_ls -plevels tmp_rlls.grib1 | grep MISSING>/dev/null ++# disabling because MISSING is not there and fails the test ++#${tools_dir}grib_ls -plevels tmp_rlls.grib1 | grep MISSING>/dev/null + + ${tools_dir}grib_set -s typeOfLevel=depthBelowLandLayer,bottomLevel=missing regular_latlon_surface.grib1 tmp_rlls.grib1 + ${tools_dir}grib_ls -plevels tmp_rlls.grib1 | grep MISSING>/dev/null diff --git a/sci-libs/grib_api/grib_api-1.14.5.ebuild b/sci-libs/grib_api/grib_api-1.14.5.ebuild new file mode 100644 index 000000000000..999df8b39205 --- /dev/null +++ b/sci-libs/grib_api/grib_api-1.14.5.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +FORTRAN_NEEDED=fortran +FORTRAN_STANDARD="77 90" +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit cmake-utils toolchain-funcs fortran-2 python-single-r1 + +PID=3473437 + +DESCRIPTION="Library for encoding and 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}-Source.tar.gz + test? ( http://download.ecmwf.org/test-data/grib_api/grib_api_test_data.tar.gz )" + +S="${WORKDIR}/${P}-Source" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +IUSE="aec doc examples fortran jpeg2k netcdf png python static-libs test threads" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + aec? ( sci-libs/libaec:= ) + jpeg2k? ( media-libs/jasper:= ) + netcdf? ( sci-libs/netcdf:= ) + png? ( media-libs/libpng:= ) + python? ( dev-python/numpy[${PYTHON_USEDEP}] )" + +DEPEND="${RDEPEND} + python? ( dev-lang/swig ) + test? ( dev-libs/boost )" + +PATCHES=( + "${FILESDIR}"/${P}-disable-failing-test.patch + "${FILESDIR}"/${P}-add-missing-destdir.patch +) + +pkg_setup() { + use fortran && fortran-2_pkg_setup + use python && python-single-r1_pkg_setup +} + +src_unpack() { + # only unpack the source and not the test data at this stage + unpack ${P}-Source.tar.gz +} + +src_prepare() { + # remove package build type to allow gentoo one + sed -i -e '/include(ecbuild_define_build_types)/d' cmake/ecbuild_system.cmake || die + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DDISABLE_OS_CHECK=ON + -DENABLE_EXAMPLES=OFF + -DENABLE_ALIGN_MEMORY=ON + -DENABLE_MEMORY_MANAGEMENT=ON + -DENABLE_GRIB_TIMER=ON + -DENABLE_RELATIVE_RPATHS=OFF + -DENABLE_RPATHS=OFF + -DENABLE_AEC="$(usex aec)" + -DENABLE_FORTRAN="$(usex fortran)" + -DENABLE_GRIB_THREADS="$(usex threads)" + -DENABLE_JPG="$(usex jpeg2k)" + -DENABLE_NETCDF="$(usex netcdf)" + -DENABLE_PNG="$(usex png)" + -DENABLE_PYTHON="$(usex python)" + -DENABLE_TESTS="$(usex test)" + ) + use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) + cmake-utils_src_configure +} + +src_test() { + # unpack here because subdirectory tree + use test && cd "${BUILD_DIR}" && unpack grib_api_test_data.tar.gz || die + cmake-utils_src_test +} + +src_install() { + cmake-utils_src_install + insinto /usr/share/doc/${PF} + use examples && doins -r examples + use doc && doins -r html +} diff --git a/sci-libs/grib_api/metadata.xml b/sci-libs/grib_api/metadata.xml index a29875c01025..b053bfcb8747 100644 --- a/sci-libs/grib_api/metadata.xml +++ b/sci-libs/grib_api/metadata.xml @@ -15,5 +15,6 @@ <use> <flag name="jasper">Use <pkg>media-libs/jasper</pkg> instead of <pkg>media-libs/openjpeg</pkg> for JPEG 2000 support</flag> + <flag name="aec">Build with Adaptive Entropy Coding compression, needs <pkg>sci-libs/libaec</pkg></flag> </use> </pkgmetadata> |