public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/eccodes/
@ 2020-03-09 23:07 Steve Arnold
  0 siblings, 0 replies; 5+ messages in thread
From: Steve Arnold @ 2020-03-09 23:07 UTC (permalink / raw
  To: gentoo-commits

commit:     d0b0bb239cc58ab9a3d2b513f15d2d28a26d3b51
Author:     Stephen Arnold <nerdboy <AT> gentoo <DOT> org>
AuthorDate: Mon Mar  9 23:06:10 2020 +0000
Commit:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
CommitDate: Mon Mar  9 23:06:10 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0b0bb23

sci-libs/eccodes: new ebuild/upstream replacement for libbufr

* provides multi-language bindings and GRIB/BUFR C library
* obsoletes bugs #695486 and #709408

Package-Manager: Portage-2.3.67, Repoman-2.3.17
Signed-off-by: Steve Arnold <nerdboy <AT> gentoo.org>

 sci-libs/eccodes/Manifest              |  2 +
 sci-libs/eccodes/eccodes-2.16.0.ebuild | 79 ++++++++++++++++++++++++++++++++++
 sci-libs/eccodes/metadata.xml          | 24 +++++++++++
 3 files changed, 105 insertions(+)

diff --git a/sci-libs/eccodes/Manifest b/sci-libs/eccodes/Manifest
new file mode 100644
index 00000000000..d5d6bb46ae6
--- /dev/null
+++ b/sci-libs/eccodes/Manifest
@@ -0,0 +1,2 @@
+DIST eccodes-2.16.0-Source.tar.gz 11258869 BLAKE2B 4a1b3e953fc041beed47046c6ea4f74bb18230019b71c884f1dc5a102a7bae2b9083f51b74fc4078c493d188433f08db833a571e7deadd93b6c137f975f03006 SHA512 6e8768824152d8782c1457cfe79daed32114d1b4694d2843bd02a8aa63c42ccc435b53f7db6942239b3e56999fbaaba4ecef345d39fc5c5f7a5d20ceecf4422a
+DIST eccodes_test_data.tar.gz 139711871 BLAKE2B f2e89207835c78fa198f0a2fba8ac2cd4ab263c9160e02005a3ca851bc71586010e7f4742cbb9240463abb9421db83b7dadc83fe798f37321a553ca9856f68d7 SHA512 24c24ec9e01d230cf542abe5c131f05b8e627dd9d170c666628bb5fd8f7b1a6aa11a35456b8d742c59f54c6aabac78658efd68b0c50779d466aba3d35b4a0231

diff --git a/sci-libs/eccodes/eccodes-2.16.0.ebuild b/sci-libs/eccodes/eccodes-2.16.0.ebuild
new file mode 100644
index 00000000000..5f49a25c6be
--- /dev/null
+++ b/sci-libs/eccodes/eccodes-2.16.0.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{3_6,3_7} )
+
+inherit cmake-utils fortran-2 python-any-r1
+
+MY_P="${P}-Source"
+
+DESCRIPTION="A set of encoding/decoding APIs and tools for WMO GRIB, BUFR, and GTS messages"
+HOMEPAGE="https://confluence.ecmwf.int/display/ECC"
+SRC_URI="https://confluence.ecmwf.int/download/attachments/45757960/${MY_P}.tar.gz
+	extra-test? ( http://download.ecmwf.org/test-data/eccodes/${PN}_test_data.tar.gz )"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+IUSE="defs examples extra-test -fortran memfs netcdf jpeg2k png python szip test threads"
+
+REQUIRED_USE="threads? ( !fortran ) test? ( defs !memfs ) extra-test? ( test ) !test? ( memfs? ( python ) )"
+
+RDEPEND="
+	sys-libs/zlib
+	szip? ( sci-libs/szip )
+	netcdf? ( >=sci-libs/netcdf-4.2[hdf5] )
+	jpeg2k? ( >=media-libs/openjpeg-2:2 )
+	png? ( media-libs/libpng )"
+
+DEPEND="${RDEPEND}
+	${PYTHON_DEPS}"
+
+BDEPEND="virtual/pkgconfig"
+
+S="${WORKDIR}/${MY_P}"
+
+CMAKE_BUILD_TYPE=RelWithDebInfo
+
+pkg_setup() {
+	use fortran && fortran-2_pkg_setup
+	use python && python-any-r1_pkg_setup
+}
+
+src_configure() {
+	local mycmakeargs=(
+		-DENABLE_ECCODES_THREADS=$(usex threads TRUE FALSE)
+		-DENABLE_EXAMPLES=OFF  # no need to build examples
+		-DENABLE_INSTALL_ECCODES_DEFINITIONS=$(usex defs TRUE FALSE)
+		-DENABLE_FORTRAN=$(usex fortran TRUE FALSE)
+		-DENABLE_PYTHON=OFF  # py2 support is deprecated
+		-DENABLE_NETCDF=$(usex netcdf TRUE FALSE)
+		-DENABLE_JPG=$(usex jpeg2k TRUE FALSE)
+		-DENABLE_PNG=$(usex png TRUE FALSE)
+		-DENABLE_MEMFS=$(usex memfs TRUE FALSE)
+		-DENABLE_EXTRA_TESTS=$(usex extra-test TRUE FALSE)
+		-DBUILD_SHARED_LIBS=ON
+		-DINSTALL_LIB_DIR="${EPREFIX}/usr/$(get_libdir)"
+	)
+	cmake-utils_src_configure
+}
+
+src_install() {
+	cmake-utils_src_install
+
+	if use examples; then
+		insinto "/usr/share/${PN}/examples"
+		doins -r examples/C
+		use fortran && doins -r examples/F90
+		use python && doins -r examples/python
+	fi
+}
+
+src_test() {
+	use extra-test && cp -r "${WORKDIR}"/data/* "${BUILD_DIR}"/data/
+
+	cmake-utils_src_test
+}

diff --git a/sci-libs/eccodes/metadata.xml b/sci-libs/eccodes/metadata.xml
new file mode 100644
index 00000000000..a59cfc2a528
--- /dev/null
+++ b/sci-libs/eccodes/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+	<email>nerdboy@gentoo.org</email>
+	<name>Steve Arnold</name>
+</maintainer>
+<longdescription lang="en">
+	This is the new open source BUFR/GRIB library (from ECMWF)
+	supporting C, F90, and Python interfaces.
+</longdescription>
+<use>
+	<flag name="defs">
+		Install full set of definition files.
+	</flag>
+	<flag name="extra-test">
+		Install full set of test data (large).
+	</flag>
+	<flag name="memfs">
+		Enable memory based access to definition/sample files
+		(conflicts with tests).
+	</flag>
+</use>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-libs/eccodes/
@ 2020-09-14  3:20 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2020-09-14  3:20 UTC (permalink / raw
  To: gentoo-commits

commit:     a2235f14a91270cfb52592392b8c832e81dba97f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 14 03:15:05 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Sep 14 03:15:05 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2235f14

sci-libs/eccodes: [QA] Fix MissingTestRestrict

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sci-libs/eccodes/eccodes-2.16.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/eccodes/eccodes-2.16.0.ebuild b/sci-libs/eccodes/eccodes-2.16.0.ebuild
index 5f49a25c6be..e7b28f72d27 100644
--- a/sci-libs/eccodes/eccodes-2.16.0.ebuild
+++ b/sci-libs/eccodes/eccodes-2.16.0.ebuild
@@ -19,7 +19,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm ~x86"
 
 IUSE="defs examples extra-test -fortran memfs netcdf jpeg2k png python szip test threads"
-
+RESTRICT="!test? ( test )"
 REQUIRED_USE="threads? ( !fortran ) test? ( defs !memfs ) extra-test? ( test ) !test? ( memfs? ( python ) )"
 
 RDEPEND="


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-libs/eccodes/
@ 2021-01-18 22:43 Steve Arnold
  0 siblings, 0 replies; 5+ messages in thread
From: Steve Arnold @ 2021-01-18 22:43 UTC (permalink / raw
  To: gentoo-commits

commit:     25c8946be499b64f4b19be990292f3abbbaae9f3
Author:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 18 21:24:59 2021 +0000
Commit:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
CommitDate: Mon Jan 18 22:43:01 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25c8946b

sci-libs/eccodes: bump to newer upstream release

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Steve Arnold <nerdboy <AT> gentoo.org>

 sci-libs/eccodes/Manifest                          |  3 +-
 ...eccodes-2.16.0.ebuild => eccodes-2.18.0.ebuild} | 42 +++++++++++++++-------
 2 files changed, 31 insertions(+), 14 deletions(-)

diff --git a/sci-libs/eccodes/Manifest b/sci-libs/eccodes/Manifest
index d5d6bb46ae6..4a424f0a2a7 100644
--- a/sci-libs/eccodes/Manifest
+++ b/sci-libs/eccodes/Manifest
@@ -1,2 +1,3 @@
-DIST eccodes-2.16.0-Source.tar.gz 11258869 BLAKE2B 4a1b3e953fc041beed47046c6ea4f74bb18230019b71c884f1dc5a102a7bae2b9083f51b74fc4078c493d188433f08db833a571e7deadd93b6c137f975f03006 SHA512 6e8768824152d8782c1457cfe79daed32114d1b4694d2843bd02a8aa63c42ccc435b53f7db6942239b3e56999fbaaba4ecef345d39fc5c5f7a5d20ceecf4422a
+DIST eccodes-2.18.0-Source.tar.gz 11525701 BLAKE2B 9dc2861472309c0483e4e7eb7b79c2eb2eb72b1e99f8656bb0355630e8012468d9d6513fb3bab7b3fbc7b2c02c3c74d291a6a8862aa8434cdcce82868f359961 SHA512 8daf7f2e1aed055ca6402881f5473e4ae90ba24cc779005f57f99adc7468da459c7539e64f455e2122dd83df29992fd7a6dad2700c8331c4083226e091fbb629
 DIST eccodes_test_data.tar.gz 139711871 BLAKE2B f2e89207835c78fa198f0a2fba8ac2cd4ab263c9160e02005a3ca851bc71586010e7f4742cbb9240463abb9421db83b7dadc83fe798f37321a553ca9856f68d7 SHA512 24c24ec9e01d230cf542abe5c131f05b8e627dd9d170c666628bb5fd8f7b1a6aa11a35456b8d742c59f54c6aabac78658efd68b0c50779d466aba3d35b4a0231
+DIST mercator.grib2 6339 BLAKE2B b63a72c711c28fa81568d123758f61804d73886c1f8dc27ab444daf3d1a0d104ef40b1469e9940413b5311c1cdcfa5de76a9d46ea0c57d08ccfd44ab41b8d4fb SHA512 e3d4e93833345675558b58c2e6f2b5a583c52083718da05cae72dd015d2e7699ee83c2dcce695143ee5e4423c890ef80f2448146d93e87fbfff8845f6efa8178

diff --git a/sci-libs/eccodes/eccodes-2.16.0.ebuild b/sci-libs/eccodes/eccodes-2.18.0.ebuild
similarity index 60%
rename from sci-libs/eccodes/eccodes-2.16.0.ebuild
rename to sci-libs/eccodes/eccodes-2.18.0.ebuild
index e7b28f72d27..82c91c14eef 100644
--- a/sci-libs/eccodes/eccodes-2.16.0.ebuild
+++ b/sci-libs/eccodes/eccodes-2.18.0.ebuild
@@ -1,26 +1,33 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-PYTHON_COMPAT=( python{3_6,3_7} )
+PYTHON_COMPAT=( python3_{6..9} )
 
-inherit cmake-utils fortran-2 python-any-r1
+inherit cmake fortran-2 python-any-r1
 
 MY_P="${P}-Source"
 
 DESCRIPTION="A set of encoding/decoding APIs and tools for WMO GRIB, BUFR, and GTS messages"
 HOMEPAGE="https://confluence.ecmwf.int/display/ECC"
 SRC_URI="https://confluence.ecmwf.int/download/attachments/45757960/${MY_P}.tar.gz
-	extra-test? ( http://download.ecmwf.org/test-data/eccodes/${PN}_test_data.tar.gz )"
+	extra-test? ( http://download.ecmwf.org/test-data/eccodes/${PN}_test_data.tar.gz
+	http://download.ecmwf.org/test-data/eccodes/data/mercator.grib2 )"
 
 LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~x86"
 
-IUSE="defs examples extra-test -fortran memfs netcdf jpeg2k png python szip test threads"
-RESTRICT="!test? ( test )"
-REQUIRED_USE="threads? ( !fortran ) test? ( defs !memfs ) extra-test? ( test ) !test? ( memfs? ( python ) )"
+IUSE="+defs examples extra-test fortran memfs netcdf jpeg2k openmp png python szip test threads"
+
+REQUIRED_USE="
+	fortran? ( !threads ( openmp ) )
+	openmp? ( !threads ( fortran ) )
+	threads? ( !fortran !openmp )
+	test? ( defs !memfs )
+	extra-test? ( test )
+	!test? ( memfs? ( python ) )"
 
 RDEPEND="
 	sys-libs/zlib
@@ -45,24 +52,29 @@ pkg_setup() {
 
 src_configure() {
 	local mycmakeargs=(
+		-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
+		-DINSTALL_LIB_DIR="$(get_libdir)"
+		-DCMAKE_SKIP_INSTALL_RPATH=TRUE
 		-DENABLE_ECCODES_THREADS=$(usex threads TRUE FALSE)
+		-DENABLE_ECCODES_OMP_THREADS=$(usex openmp TRUE FALSE)
 		-DENABLE_EXAMPLES=OFF  # no need to build examples
 		-DENABLE_INSTALL_ECCODES_DEFINITIONS=$(usex defs TRUE FALSE)
 		-DENABLE_FORTRAN=$(usex fortran TRUE FALSE)
 		-DENABLE_PYTHON=OFF  # py2 support is deprecated
 		-DENABLE_NETCDF=$(usex netcdf TRUE FALSE)
 		-DENABLE_JPG=$(usex jpeg2k TRUE FALSE)
+		-DENABLE_JPG_LIBOPENJPEG=$(usex jpeg2k TRUE FALSE)
 		-DENABLE_PNG=$(usex png TRUE FALSE)
 		-DENABLE_MEMFS=$(usex memfs TRUE FALSE)
 		-DENABLE_EXTRA_TESTS=$(usex extra-test TRUE FALSE)
 		-DBUILD_SHARED_LIBS=ON
-		-DINSTALL_LIB_DIR="${EPREFIX}/usr/$(get_libdir)"
 	)
-	cmake-utils_src_configure
+	use fortran && mycmakeargs+=( -DCMAKE_Fortran_FLAGS="-fallow-argument-mismatch" )
+	cmake_src_configure
 }
 
 src_install() {
-	cmake-utils_src_install
+	cmake_src_install
 
 	if use examples; then
 		insinto "/usr/share/${PN}/examples"
@@ -73,7 +85,11 @@ src_install() {
 }
 
 src_test() {
-	use extra-test && cp -r "${WORKDIR}"/data/* "${BUILD_DIR}"/data/
+	if use extra-test; then
+		touch "${WORKDIR}"/data/.downloaded
+		cp -r "${WORKDIR}"/data/* "${BUILD_DIR}"/data/
+		cp "${DISTDIR}"/mercator.grib2 "${BUILD_DIR}"/data/
+	fi
 
-	cmake-utils_src_test
+	cmake_src_test
 }


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-libs/eccodes/
@ 2021-01-20 22:47 Steve Arnold
  0 siblings, 0 replies; 5+ messages in thread
From: Steve Arnold @ 2021-01-20 22:47 UTC (permalink / raw
  To: gentoo-commits

commit:     9407d9102cd4c8625c8ee77abbe4fd9db8ae9ed0
Author:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 20 22:45:56 2021 +0000
Commit:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
CommitDate: Wed Jan 20 22:46:50 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9407d910

sci-libs/eccodes: add missing test restrict to make QA happy again

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Steve Arnold <nerdboy <AT> gentoo.org>

 sci-libs/eccodes/eccodes-2.18.0.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sci-libs/eccodes/eccodes-2.18.0.ebuild b/sci-libs/eccodes/eccodes-2.18.0.ebuild
index 82c91c14eef..62965ad9e82 100644
--- a/sci-libs/eccodes/eccodes-2.18.0.ebuild
+++ b/sci-libs/eccodes/eccodes-2.18.0.ebuild
@@ -41,6 +41,8 @@ DEPEND="${RDEPEND}
 
 BDEPEND="virtual/pkgconfig"
 
+RESTRICT="!test? ( test )"
+
 S="${WORKDIR}/${MY_P}"
 
 CMAKE_BUILD_TYPE=RelWithDebInfo


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-libs/eccodes/
@ 2022-10-14 16:22 Arthur Zamarin
  0 siblings, 0 replies; 5+ messages in thread
From: Arthur Zamarin @ 2022-10-14 16:22 UTC (permalink / raw
  To: gentoo-commits

commit:     4ace434538caf6f30f4cf6f14e82aa73b326aaad
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 14 14:10:47 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Oct 14 16:14:17 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ace4345

sci-libs/eccodes: enable py3.10, py3.11

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 sci-libs/eccodes/eccodes-2.18.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-libs/eccodes/eccodes-2.18.0.ebuild b/sci-libs/eccodes/eccodes-2.18.0.ebuild
index e55c5858c27b..315bcf0d2221 100644
--- a/sci-libs/eccodes/eccodes-2.18.0.ebuild
+++ b/sci-libs/eccodes/eccodes-2.18.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{8..11} )
 
 inherit cmake fortran-2 python-any-r1
 


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-14 16:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-09 23:07 [gentoo-commits] repo/gentoo:master commit in: sci-libs/eccodes/ Steve Arnold
  -- strict thread matches above, loose matches on Subject: below --
2020-09-14  3:20 Michał Górny
2021-01-18 22:43 Steve Arnold
2021-01-20 22:47 Steve Arnold
2022-10-14 16:22 Arthur Zamarin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox