commit:     9953f6bba78df544f68ebb4fa763e3069af336bd
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  7 17:13:40 2026 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Feb  8 11:55:41 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9953f6bb

sci-visualization/kst: add Qt6-based 2.1.0_p20260208

Patchset pending upstream:
https://invent.kde.org/graphics/kst-plot/-/merge_requests/14

Closes: https://bugs.gentoo.org/953888
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 sci-visualization/kst/Manifest                     |  2 +
 .../files/kst-2.1.0_p20260208-cmake-findhdf5.patch | 44 ++++++++++++++++
 sci-visualization/kst/kst-2.1.0_p20260208.ebuild   | 59 ++++++++++++++++++++++
 3 files changed, 105 insertions(+)

diff --git a/sci-visualization/kst/Manifest b/sci-visualization/kst/Manifest
index 2e41b364b13d..e5c07da1675b 100644
--- a/sci-visualization/kst/Manifest
+++ b/sci-visualization/kst/Manifest
@@ -1 +1,3 @@
+DIST kst-2.1.0_p20260208-cmake-patchset.tar.xz 3084 BLAKE2B 
cd7e217da753febe61e26eb7334c31b5208c91a07ae628139225c4ae126797cc8d507c81fce4d8728a6de1b0ced0716aa8caa40371ebf0bbc5c4e16297792fb8
 SHA512 
dcaff872f986efa7d864d929d52745ee021c7876736156f972a5109e67654e1942938c6ce1fb460198ee8d60d1cfd90705af9ba7397c85033a6a2f0d62c18597
 DIST kst-plot-2.1.0_p20250830-c250288d.tar.gz 18814925 BLAKE2B 
1fb5f6bec36c5baa9bd19400efc3ccd84479c6985138d1e03ccc2b21d7705b77e6dbac932303c89367044a0d014cbc562d231215c5584860ab2b926a2f78bab7
 SHA512 
3482d914b04fd477bbcf813761b1f6b57c787fea13cc5df5bdb62cee2172d8859f6fc831cf1cc7d650a86080807e8e66f3744d9ea7bf8d14f410af8994283f1f
+DIST kst-plot-2.1.0_p20260208-bc836006.tar.gz 16149026 BLAKE2B 
fe59707573775e24b4bd9e3fdae665ee752276a1d8f22159bd7854fc8dea667eda229a5bb546a5cf79c21549818bcdaeaf7dffdc6f98cd43ecada63a4edf1114
 SHA512 
0f38dfc4e6e020ebf85f977dcc9e25f6e4c1fa03e570a246cd6e38d74b40f7805f548265c53dbe3615bbae245deec660d59173f559e9264b93576fbd4c15045e

diff --git 
a/sci-visualization/kst/files/kst-2.1.0_p20260208-cmake-findhdf5.patch 
b/sci-visualization/kst/files/kst-2.1.0_p20260208-cmake-findhdf5.patch
new file mode 100644
index 000000000000..3aa0e7ffddba
--- /dev/null
+++ b/sci-visualization/kst/files/kst-2.1.0_p20260208-cmake-findhdf5.patch
@@ -0,0 +1,44 @@
+From 3244742f3d2bfacd9265c19c7e24be6037a7dc9e Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <[email protected]>
+Date: Wed, 23 Apr 2025 19:07:28 +0200
+Subject: [PATCH] Use CMake provided FindHDF5 module
+
+Signed-off-by: Andreas Sturmlechner <[email protected]>
+---
+ CMakeLists.txt                 |  2 +-
+ cmake/modules/FindHDF5.cmake   | 79 ----------------------------------
+ src/datasources/CMakeLists.txt |  4 +-
+ 3 files changed, 3 insertions(+), 82 deletions(-)
+ delete mode 100644 cmake/modules/FindHDF5.cmake
+
+index ec5f0055..339ab3da 100644
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -45,7 +45,7 @@ find_package(Netcdf)
+ find_package(Matio)
+ find_package(CFITSIO)
+ find_package(TIFF)
+-find_package(HDF5)
++find_package(HDF5 COMPONENTS CXX)
+ message(STATUS "----------------------------------------------")
+ 
+ message(STATUS)
+diff --git a/src/datasources/CMakeLists.txt b/src/datasources/CMakeLists.txt
+diff --git a/src/datasources/CMakeLists.txt b/src/datasources/CMakeLists.txt
+--- a/src/datasources/CMakeLists.txt
++++ b/src/datasources/CMakeLists.txt
+@@ -49,7 +49,7 @@ if(TARGET TIFF::TIFF)
+       kst_add_plugin(. tiff16source LINK_LIBRARIES TIFF::TIFF) # Directory 
named after the file format, not the lib
+ endif()
+ 
+-if(TARGET HDF5::HDF5)
+-  include_directories(${HDF5_INCLUDE_DIR})
+-      kst_add_plugin(. hdf5 LINK_LIBRARIES ${HDF5_LIBRARIES})
++if(HDF5_FOUND)
++  include_directories(${HDF5_CXX_INCLUDE_DIRS})
++      kst_add_plugin(. hdf5 LINK_LIBRARIES ${HDF5_CXX_LIBRARIES})
+ endif()
+-- 
+2.53.0
+

diff --git a/sci-visualization/kst/kst-2.1.0_p20260208.ebuild 
b/sci-visualization/kst/kst-2.1.0_p20260208.ebuild
new file mode 100644
index 000000000000..a177976f7ca1
--- /dev/null
+++ b/sci-visualization/kst/kst-2.1.0_p20260208.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CMAKE_REMOVE_MODULES_LIST=( FindHDF5 )
+KDE_ORG_CATEGORY=graphics
+KDE_ORG_NAME=kst-plot
+KDE_ORG_COMMIT=bc8360064a4f6ac3b04e393fd502fef27e46b842
+PATCHSET=${P}-cmake-patchset
+inherit cmake flag-o-matic kde.org xdg
+
+DESCRIPTION="Fast real-time large-dataset viewing and plotting tool"
+HOMEPAGE="https://kst-plot.kde.org/";
+SRC_URI="https://dev.gentoo.org/~asturm/distfiles/kde/${KDE_ORG_NAME}-${PV}-${KDE_ORG_COMMIT:0:8}.tar.gz
+https://dev.gentoo.org/~asturm/distfiles/kde/${PATCHSET}.tar.xz";
+
+LICENSE="GPL-2 LGPL-2 FDL-1.2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug test"
+
+RESTRICT="test"
+
+RDEPEND="
+       dev-qt/qtbase:6[concurrent,gui,network,widgets,xml]
+       dev-qt/qtsvg:6
+       dev-qt/qttools:6[designer]
+       media-libs/tiff:=
+       sci-libs/cfitsio:=
+       sci-libs/getdata[cxx]
+       sci-libs/gsl:=
+       sci-libs/hdf5:=[cxx]
+       sci-libs/matio:=
+       sci-libs/netcdf-cxx:0=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="dev-qt/qttools:6[linguist]"
+
+DOCS=( AUTHORS README.kstScript )
+
+PATCHES=(
+       # pending upstream:
+       "${WORKDIR}"/${PATCHSET} # contains no-compress-man.patch for bug 
#812017
+       "${FILESDIR}"/${P}-cmake-findhdf5.patch # bug #954233; downstream patch
+)
+
+src_prepare() {
+       rm -r cmake/3rdparty pyKst || die
+       cmake_src_prepare
+}
+
+src_configure() {
+       # -Werror=odr, -Werror=lto-type=-mismatch
+       # https://bugs.gentoo.org/863296
+       # https://bugs.kde.org/show_bug.cgi?id=484572
+       filter-lto
+       cmake_src_configure
+}

Reply via email to