diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2023-12-04 21:45:52 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2023-12-06 22:41:34 +0100 |
commit | 62f5ccb8331bc228a0b790666078fab8822f963b (patch) | |
tree | 13704cbb32c2806400e0a6d509314566f2449a93 /dev-libs/ktextaddons | |
parent | sets: Add kde-frameworks/ktexttemplate to kde-frameworks-tier1-live (diff) | |
download | kde-62f5ccb8331bc228a0b790666078fab8822f963b.tar.gz kde-62f5ccb8331bc228a0b790666078fab8822f963b.tar.bz2 kde-62f5ccb8331bc228a0b790666078fab8822f963b.zip |
dev-libs/ktextaddons: Port to KF6
With "textspeechtotext" module disabled for missing deps.
Bug: https://bugs.gentoo.org/919236
Bug: https://bugs.gentoo.org/919234
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-libs/ktextaddons')
-rw-r--r-- | dev-libs/ktextaddons/files/ktextaddons-9999-no-textspeechtotext.patch | 16 | ||||
-rw-r--r-- | dev-libs/ktextaddons/ktextaddons-9999.ebuild | 40 |
2 files changed, 39 insertions, 17 deletions
diff --git a/dev-libs/ktextaddons/files/ktextaddons-9999-no-textspeechtotext.patch b/dev-libs/ktextaddons/files/ktextaddons-9999-no-textspeechtotext.patch new file mode 100644 index 0000000000..bcc7cbdc8a --- /dev/null +++ b/dev-libs/ktextaddons/files/ktextaddons-9999-no-textspeechtotext.patch @@ -0,0 +1,16 @@ +Unpackaged dependencies. + +https://bugs.gentoo.org/919236 +https://bugs.gentoo.org/919234 + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -100,7 +100,7 @@ add_subdirectory(textgrammarcheck) + add_subdirectory(texttranslator) + add_subdirectory(textemoticons) + add_subdirectory(textutils) +-if (QT_MAJOR_VERSION STREQUAL "6") ++if (FALSE) + find_package(Qt${QT_MAJOR_VERSION} ${REQUIRED_QT_VERSION} CONFIG REQUIRED MultimediaWidgets) + add_subdirectory(textspeechtotext) + endif() diff --git a/dev-libs/ktextaddons/ktextaddons-9999.ebuild b/dev-libs/ktextaddons/ktextaddons-9999.ebuild index 4a82c1597a..6242b3a76d 100644 --- a/dev-libs/ktextaddons/ktextaddons-9999.ebuild +++ b/dev-libs/ktextaddons/ktextaddons-9999.ebuild @@ -6,8 +6,8 @@ EAPI=8 ECM_DESIGNERPLUGIN="true" ECM_QTHELP="true" ECM_TEST="true" -KFMIN=5.106.0 -QTMIN=5.15.9 +KFMIN=5.245.0 +QTMIN=6.6.0 inherit ecm kde.org DESCRIPTION="Various text handling addons" @@ -19,29 +19,35 @@ if [[ ${KDE_BUILD_TYPE} = release ]]; then fi LICENSE="LGPL-2+" -SLOT="5" +SLOT="6" IUSE="speech" RESTRICT="test" -RDEPEND=" - dev-libs/qtkeychain:=[qt5(+)] - >=dev-qt/qtgui-${QTMIN}:5 - >=dev-qt/qtnetwork-${QTMIN}:5 - >=dev-qt/qtwidgets-${QTMIN}:5 - >=kde-frameworks/kconfig-${KFMIN}:5 - >=kde-frameworks/kconfigwidgets-${KFMIN}:5 - >=kde-frameworks/kcoreaddons-${KFMIN}:5 - >=kde-frameworks/ki18n-${KFMIN}:5 - >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 - >=kde-frameworks/kxmlgui-${KFMIN}:5 - speech? ( >=dev-qt/qtspeech-${QTMIN}:5 ) +DEPEND=" + >=dev-libs/qtkeychain-0.14.1-r1:=[qt6] + >=dev-qt/qtbase-${QTMIN}:6[gui,network,widgets] + >=dev-qt/qtmultimedia-${QTMIN}:6[widgets] + >=kde-frameworks/karchive-${KFMIN}:6 + >=kde-frameworks/kconfig-${KFMIN}:6 + >=kde-frameworks/kconfigwidgets-${KFMIN}:6 + >=kde-frameworks/kcoreaddons-${KFMIN}:6 + >=kde-frameworks/ki18n-${KFMIN}:6 + >=kde-frameworks/kio-${KFMIN}:6 + >=kde-frameworks/sonnet-${KFMIN}:6 + >=kde-frameworks/syntax-highlighting-${KFMIN}:6 + speech? ( >=dev-qt/qtspeech-${QTMIN}:6 ) " -DEPEND="${RDEPEND}" +RDEPEND="${DEPEND} + !${CATEGORY}/${PN}:5 +" + +# TODO: unpackaged vosk, kaldi (bugs #919236, 919234) +PATCHES=( "${FILESDIR}/${P}-no-textspeechtotext.patch" ) src_configure() { local mycmakeargs=( - $(cmake_use_find_package speech Qt5TextToSpeech) + $(cmake_use_find_package speech Qt6TextToSpeech) ) ecm_src_configure } |