summaryrefslogtreecommitdiff
path: root/app-accessibility/rhvoice/rhvoice-1.16.4.ebuild
blob: e9b72d5a166ac78c2cba12d095eaaec8713658d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

declare -A VOICES=(
	[en]="
		redistributable? (
			app-voices/rhvoice-bdl
			app-voices/rhvoice-clb
			app-voices/rhvoice-slt
		)
	"
	[ru]="redistributable? ( app-voices/rhvoice-arina )"
)

DESCRIPTION="Multilingual text-to-speech engine (metapackage)"
HOMEPAGE="
	https://rhvoice.org
	https://github.com/RHVoice/RHVoice
"

LICENSE="metapackage"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="redistributable"

for lang in "${!VOICES[@]}"; do
	usestr="l10n_${lang:?}"
	IUSE+=" ${usestr:?}"
	RHVOICE_REQ_USE+="${usestr:?}?,"
	RDEPEND+=" ${usestr}? ( ${VOICES[${lang:?}]} )"
done

RDEPEND+=" >=app-accessibility/rhvoice-core-${PV}[${RHVOICE_REQ_USE%,}]"