app-accessibility/whisper-cpp: add 1.8.3

Signed-off-by: Sergey Alirzaev <l29ah@riseup.net>
This commit is contained in:
Sergey Alirzaev
2026-01-16 17:55:17 +01:00
parent 14de9b9f39
commit f375211133
2 changed files with 50 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST whisper.cpp-1.7.6.tar.gz 7307730 BLAKE2B 3c03346f2f2aef0aed5c4c2dc856efc730f6a7440106fde0db47ac7d042830c5c5d5cd18c5a8ab4871f54ae60e50aa89c0900bb6509f9c61dc1745dd497b74f2 SHA512 7e0ec9d6afe234afaaa83d7d69051504252c27ecdacbedf3d70992429801bcd1078794a0bb76cf4dafb74131dd0f506bd24c3f3100815c35b8ac2b12336492ef
DIST whisper.cpp-1.8.2.tar.gz 7584994 BLAKE2B 4364bd17052fc0d50e2f34db649eef8ccfa86852e13454f87186f84735e53117c53a8c84a07bb988da7f8598bef137633aca90cbc11951f580b72d1bd4c00958 SHA512 d858509b22183b885735415959fc996f0f5ca315aaf40b8640593c4ce881c88fec3fcd16e9a3adda8d1177feed01947fb4c1beaf32d7e4385c5f35a024329ef5
DIST whisper.cpp-1.8.3.tar.gz 7898461 BLAKE2B 6bee9c9a55bd24ac9c33e6223dcaec9153dca17ea209723ef5525d6646409cc9930ab15abd6d345b7efa9bbfe97a765612b2939298ca3ff8a547aa14e4a26199 SHA512 be5b02e4d48a92d632e5f2385c42c0c74b176021fb2a68fb6961ef3c83e85fe4930d168b6436667f62c4637315a321c5825644c6f459f6b6ed0660306a1bb4e0

View File

@@ -0,0 +1,49 @@
# 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"
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"
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
}