Сравнение qtspeech-5.15.10 с qtspeech-6.5.2

/usr/portage/dev-qt/qtspeech/qtspeech-6.5.2.ebuild 2023-10-09 14:52:30.412368373 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
if [[ ${PV} != *9999* ]]; then
7
	QT5_KDEPATCHSET_REV=1
8
	KEYWORDS="amd64 arm arm64 ~loong ppc64 ~riscv x86"
9
fi
6
inherit qt6-build
10 7

  
11
inherit qt5-build
8
DESCRIPTION="Text-to-speech library for the Qt6 framework"
12 9

  
13
DESCRIPTION="Text-to-speech library for the Qt5 framework"
10
if [[ ${QT6_BUILD_TYPE} == release ]]; then
11
	KEYWORDS="amd64"
12
fi
14 13

  
15
IUSE="alsa flite"
14
IUSE="flite +speechd"
15
# can build with neither, but then it is just mock tts and may be confusing
16
REQUIRED_USE="|| ( flite speechd )"
17

  
18
# TODO: tests are known failing with clang and needs looking into, albeit
19
# it is still usable at runtime save for applications segfaulting on exit
20
# similarly to QTBUG-90626 (not that this has in-tree revdeps as of writing
21
# of this). Restricting because also seen this result in hanging. Note that
22
# qtspeech:6 is still somewhat new (started in 6.4.0), and should review
23
# status on new major versions.
24
RESTRICT="test"
16 25

  
17 26
RDEPEND="
18
	>=app-accessibility/speech-dispatcher-0.8.7
19
	=dev-qt/qtcore-${QT5_PV}*
27
	~dev-qt/qtbase-${PV}:6
28
	~dev-qt/qtdeclarative-${PV}:6
20 29
	flite? (
21
		>=app-accessibility/flite-2[alsa?]
22
		=dev-qt/qtmultimedia-${QT5_PV}*[alsa?]
23
		alsa? ( media-libs/alsa-lib )
30
		app-accessibility/flite
31
		~dev-qt/qtmultimedia-${PV}:6
24 32
	)
33
	speechd? ( app-accessibility/speech-dispatcher )
25 34
"
26 35
DEPEND="${RDEPEND}"
27 36

  
28
src_prepare() {
29
	qt_use_disable_config flite flite \
30
		src/plugins/tts/tts.pro
31

  
32
	qt_use_disable_config alsa flite_alsa \
33
		src/plugins/tts/flite/flite.pro
37
src_configure() {
38
	local mycmakeargs=(
39
		$(qt_feature flite)
40
		$(qt_feature speechd)
41

  
42
		# flite_alsa was likely to work around old issues in flite, it does
43
		# nothing but add -lasound (no code change, and is unneeded)
44
		-DQT_FEATURE_flite_alsa=OFF
45
	)
34 46

  
35
	qt5-build_src_prepare
47
	qt6-build_src_configure
36 48
}
Спасибо!