commit: 49e4ded308b52da5663bf16030823ada14eeeb66
Author: Sergey Alirzaev <l29ah <AT> riseup <DOT> net>
AuthorDate: Sat Oct 11 14:52:24 2025 +0000
Commit: Sergey Alirzaev <zl29ah <AT> gmail <DOT> com>
CommitDate: Sat Oct 11 14:52:24 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=49e4ded3
app-accessibility/whisper-cpp: add 1.8.0
+ fixup for iGPUs
Signed-off-by: Sergey Alirzaev <l29ah <AT> riseup.net>
app-accessibility/whisper-cpp/Manifest | 2 +
.../whisper-cpp/whisper-cpp-1.8.0.ebuild | 52 ++++++++++++++++++++++
2 files changed, 54 insertions(+)
diff --git a/app-accessibility/whisper-cpp/Manifest
b/app-accessibility/whisper-cpp/Manifest
index 6ed96e375f..8a5669983c 100644
--- a/app-accessibility/whisper-cpp/Manifest
+++ b/app-accessibility/whisper-cpp/Manifest
@@ -1 +1,3 @@
+DIST 350bce5df7dec9c0b3def74d96947811e8e4c429.patch 2589 BLAKE2B
633687f1d29d2a557d2d92b44411dd907f674e5fdd28de6e9fbd076ed13d83756389918dfaa93ef69012cb01a08afc4daf1fb38eb3e9ee116698cda9c35cc808
SHA512
c08e8ae4a6bff0d9588fb610d0d0dbea62bc7b99f4ff78aa79ab9795159804706acfa99ef5840ae4cad0483c763c62e41b102272fdf5916755e72de7c13fe04a
DIST whisper.cpp-1.7.6.tar.gz 7307730 BLAKE2B
3c03346f2f2aef0aed5c4c2dc856efc730f6a7440106fde0db47ac7d042830c5c5d5cd18c5a8ab4871f54ae60e50aa89c0900bb6509f9c61dc1745dd497b74f2
SHA512
7e0ec9d6afe234afaaa83d7d69051504252c27ecdacbedf3d70992429801bcd1078794a0bb76cf4dafb74131dd0f506bd24c3f3100815c35b8ac2b12336492ef
+DIST whisper.cpp-1.8.0.tar.gz 7552279 BLAKE2B
0220d3b10b7411dd8769d7ccd4868533e5fd5f0e9a9bdb5d80b65afa06cc6e4e765cd45fdfdcdd06d53a9d73ae1d8d84c5ff8cf3d123a940ace1b694cb4457cf
SHA512
98f47473d537143a2fcdda7d10adf55a3dd78318768de2625fde4bc84ce61150d60cfd2ae03145d90ac1954b4735ae4fcef71268239e9735c45714721dd31103
diff --git a/app-accessibility/whisper-cpp/whisper-cpp-1.8.0.ebuild
b/app-accessibility/whisper-cpp/whisper-cpp-1.8.0.ebuild
new file mode 100644
index 0000000000..d4f4ddab6b
--- /dev/null
+++ b/app-accessibility/whisper-cpp/whisper-cpp-1.8.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+MyPN="whisper.cpp"
+MyP="${MyPN}-${PV}"
+
+DESCRIPTION="Port of OpenAI's Whisper model in C/C++ "
+HOMEPAGE="https://github.com/ggml-org/whisper.cpp"
+SRC_URI="https://github.com/ggml-org/whisper.cpp/archive/refs/tags/v${PV}.tar.gz
-> ${MyP}.tar.gz
+
https://github.com/ggml-org/whisper.cpp/commit/350bce5df7dec9c0b3def74d96947811e8e4c429.patch"
+
+S="${WORKDIR}/${MyP}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="blas cuda hip opencl sdl2 vulkan"
+
+CDEPEND="blas? ( sci-libs/openblas )
+ cuda? ( dev-util/nvidia-cuda-toolkit:= )
+ hip? ( sci-libs/hipBLAS:= )
+ opencl? ( sci-libs/clblast:= )
+ sdl2? ( media-libs/libsdl2:= )"
+DEPEND="${CDEPEND}
+ vulkan? ( dev-util/vulkan-headers )
+"
+RDEPEND="${CDEPEND}
+ vulkan? ( media-libs/vulkan-loader )
+"
+BDEPEND="media-libs/shaderc"
+
+PATCHES=( "${DISTDIR}/350bce5df7dec9c0b3def74d96947811e8e4c429.patch" )
+
+src_configure() {
+ # Note: CUDA and HIP are currently untested. Build failures may occur.
+ # Turning off examples causes errors during configure
+ # -DWHISPER_BUILD_TESTS=$(usex test)
+ local mycmakeargs=(
+ -DWHISPER_BUILD_EXAMPLES=ON
+ -DGGML_BLAS=$(usex blas)
+ -DGGML_CLBLAST=$(usex opencl)
+ -DGGML_CUBLAS=$(usex cuda)
+ -DGGML_HIPBLAS=$(usex hip)
+ -DGGML_VULKAN=$(usex vulkan)
+ -DWHISPER_SDL2=$(usex sdl2)
+ )
+ cmake_src_configure
+}