app-accessibility/whisper-cpp - 1.8.4 (guru)

Search

Install

Install this version:

emerge -a =app-accessibility/whisper-cpp-1.8.4

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-accessibility/whisper-cpp-1.8.4

Or alternatively:

emerge --autounmask-write -a =app-accessibility/whisper-cpp-1.8.4

Package Information

Description:
Port of OpenAI's Whisper model in C/C++
Homepage:
https://github.com/ggml-org/whisper.cpp
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.8.4 8 ~amd64 0
View Raw Ebuild
# 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 ffmpeg hip opencl sdl2 vulkan"

CDEPEND="blas? ( sci-libs/openblas )
	cuda? ( dev-util/nvidia-cuda-toolkit:= )
	ffmpeg? ( media-video/ffmpeg:= )
	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=(
	# https://bugs.gentoo.org/974516
	"${FILESDIR}"/remove-test-vad-full.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_HIP=$(usex hip)
		-DGGML_VULKAN=$(usex vulkan)
		-DWHISPER_FFMPEG=$(usex ffmpeg)
		-DWHISPER_SDL2=$(usex sdl2)
	)
	cmake_src_configure
}

src_install() {
	cmake_src_install

	newinitd "${FILESDIR}/${PN}.init" "${PN}"
	newconfd "${FILESDIR}/${PN}.confd" "${PN}"
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-accessibility/whisper-cpp | euse -E <flag> -p app-accessibility/whisper-cpp | euse -D <flag> -p app-accessibility/whisper-cpp

Global/Standard Flags

hip

Inherited Eclasses

Dependencies

DEPEND

blas? ( sci-libs/openblas )
	cuda? ( dev-util/nvidia-cuda-toolkit:= )
	ffmpeg? ( media-video/ffmpeg:= )
	hip? ( sci-libs/hipBLAS:= )
	opencl? ( sci-libs/clblast:= )
	sdl2? ( media-libs/libsdl2:= )
	vulkan? ( dev-util/vulkan-headers )

RDEPEND

blas? ( sci-libs/openblas )
	cuda? ( dev-util/nvidia-cuda-toolkit:= )
	ffmpeg? ( media-video/ffmpeg:= )
	hip? ( sci-libs/hipBLAS:= )
	opencl? ( sci-libs/clblast:= )
	sdl2? ( media-libs/libsdl2:= )
	vulkan? ( media-libs/vulkan-loader )

BDEPEND

media-libs/shaderc

Manifest for 1.8.4

Type File Size Source URLs
DIST whisper.cpp-1.8.4.tar.gz 8206306 bytes https://github.com/ggml-org/whisper.cpp/archive/refs/tags/v1.8.4.tar.gz