# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Meta package selecting which LocalAI inference backends are installed.
# Backend selection lives here rather than on sci-ml/local-ai so that
# toggling a backend never rebuilds the server: this package installs no
# files, so USE changes only add or remove the backend packages.

EAPI=8

DESCRIPTION="Meta package selecting LocalAI inference backends"
HOMEPAGE="https://localai.io https://github.com/mudler/LocalAI"

LICENSE="metapackage"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+llama-cpp +audio-cpp +bonsai +crispasr +depth-anything +diffusers +fish-speech +parakeet-cpp +piper +qwen3-tts-cpp +rfdetr-cpp +stablediffusion-ggml +vibevoice-cpp +vllm-cpp +whisper"
# An empty meta package is a configuration error: the whole point is to
# have at least one inference backend installed.
REQUIRED_USE="|| ( llama-cpp audio-cpp bonsai crispasr depth-anything diffusers fish-speech parakeet-cpp piper qwen3-tts-cpp rfdetr-cpp stablediffusion-ggml vibevoice-cpp vllm-cpp whisper )"

RDEPEND="
	llama-cpp? ( app-local-ai/llama-cpp )
	audio-cpp? ( app-local-ai/audio-cpp )
	bonsai? ( app-local-ai/bonsai )
	crispasr? ( app-local-ai/crispasr )
	depth-anything? ( app-local-ai/depth-anything )
	diffusers? ( app-local-ai/diffusers )
	fish-speech? ( app-local-ai/fish-speech )
	parakeet-cpp? ( app-local-ai/parakeet-cpp )
	piper? ( app-local-ai/piper )
	qwen3-tts-cpp? ( app-local-ai/qwen3-tts-cpp )
	rfdetr-cpp? ( app-local-ai/rfdetr-cpp )
	stablediffusion-ggml? ( app-local-ai/stablediffusion-ggml )
	vibevoice-cpp? ( app-local-ai/vibevoice-cpp )
	vllm-cpp? ( app-local-ai/vllm-cpp )
	whisper? ( app-local-ai/whisper )
"