diff options
author | Esteve Varela Colominas <esteve.varela@gmail.com> | 2022-01-06 21:25:59 +0100 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2022-01-06 15:34:25 -0800 |
commit | 8466d07e680b8d7245fbe352bbd261933b232309 (patch) | |
tree | ee9221a932b73d775ed7d797781e52476e230691 /net-im | |
parent | media-libs/rnnoise: Bump to EAPI 8 (diff) | |
download | gentoo-8466d07e680b8d7245fbe352bbd261933b232309.tar.gz gentoo-8466d07e680b8d7245fbe352bbd261933b232309.tar.bz2 gentoo-8466d07e680b8d7245fbe352bbd261933b232309.zip |
net-im/telegram-desktop: Fix USE=enchant
The patched file isn't compiled without this USE flag.
No revbump.
Closes: https://bugs.gentoo.org/830180
Thanks-to: yongxiang <tanekliang@gmail.com>
Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/telegram-desktop/files/tdesktop-3.3.0-fix-enchant.patch | 20 | ||||
-rw-r--r-- | net-im/telegram-desktop/telegram-desktop-3.3.0.ebuild | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/net-im/telegram-desktop/files/tdesktop-3.3.0-fix-enchant.patch b/net-im/telegram-desktop/files/tdesktop-3.3.0-fix-enchant.patch new file mode 100644 index 000000000000..35781fda0ced --- /dev/null +++ b/net-im/telegram-desktop/files/tdesktop-3.3.0-fix-enchant.patch @@ -0,0 +1,20 @@ +--- tdesktop-3.3.0-full.orig/Telegram/lib_spellcheck/spellcheck/platform/linux/spellcheck_linux.cpp ++++ tdesktop-3.3.0-full/Telegram/lib_spellcheck/spellcheck/platform/linux/spellcheck_linux.cpp +@@ -34,7 +34,7 @@ + auto IsHebrew(const QString &word) { + // Words with mixed scripts will be automatically ignored, + // so this check should be fine. +- return ::Spellchecker::WordScript(&word) == QChar::Script_Hebrew; ++ return ::Spellchecker::WordScript(word) == QChar::Script_Hebrew; + } + + class EnchantSpellChecker { +@@ -154,7 +154,7 @@ + } + + auto EnchantSpellChecker::findSuggestions(const QString &word) { +- const auto wordScript = ::Spellchecker::WordScript(&word); ++ const auto wordScript = ::Spellchecker::WordScript(word); + auto w = word.toStdString(); + std::vector<QString> result; + if (!_validators.size()) { diff --git a/net-im/telegram-desktop/telegram-desktop-3.3.0.ebuild b/net-im/telegram-desktop/telegram-desktop-3.3.0.ebuild index cedaf383018b..a14b4b6bc825 100644 --- a/net-im/telegram-desktop/telegram-desktop-3.3.0.ebuild +++ b/net-im/telegram-desktop/telegram-desktop-3.3.0.ebuild @@ -71,6 +71,7 @@ S="${WORKDIR}/${MY_P}" PATCHES=( "${FILESDIR}/tdesktop-3.1.0-jemalloc-only-telegram.patch" "${FILESDIR}/tdesktop-3.1.0-fix-openssl3.patch" + "${FILESDIR}/tdesktop-3.3.0-fix-enchant.patch" ) pkg_pretend() { |