1 |
commit: 8466d07e680b8d7245fbe352bbd261933b232309 |
2 |
Author: Esteve Varela Colominas <esteve.varela <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Jan 6 20:25:59 2022 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 6 23:34:25 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8466d07e |
7 |
|
8 |
net-im/telegram-desktop: Fix USE=enchant |
9 |
|
10 |
The patched file isn't compiled without this USE flag. |
11 |
No revbump. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/830180 |
14 |
Thanks-to: yongxiang <tanekliang <AT> gmail.com> |
15 |
Signed-off-by: Esteve Varela Colominas <esteve.varela <AT> gmail.com> |
16 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
17 |
|
18 |
.../files/tdesktop-3.3.0-fix-enchant.patch | 20 ++++++++++++++++++++ |
19 |
.../telegram-desktop/telegram-desktop-3.3.0.ebuild | 1 + |
20 |
2 files changed, 21 insertions(+) |
21 |
|
22 |
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 |
23 |
new file mode 100644 |
24 |
index 000000000000..35781fda0ced |
25 |
--- /dev/null |
26 |
+++ b/net-im/telegram-desktop/files/tdesktop-3.3.0-fix-enchant.patch |
27 |
@@ -0,0 +1,20 @@ |
28 |
+--- tdesktop-3.3.0-full.orig/Telegram/lib_spellcheck/spellcheck/platform/linux/spellcheck_linux.cpp |
29 |
++++ tdesktop-3.3.0-full/Telegram/lib_spellcheck/spellcheck/platform/linux/spellcheck_linux.cpp |
30 |
+@@ -34,7 +34,7 @@ |
31 |
+ auto IsHebrew(const QString &word) { |
32 |
+ // Words with mixed scripts will be automatically ignored, |
33 |
+ // so this check should be fine. |
34 |
+- return ::Spellchecker::WordScript(&word) == QChar::Script_Hebrew; |
35 |
++ return ::Spellchecker::WordScript(word) == QChar::Script_Hebrew; |
36 |
+ } |
37 |
+ |
38 |
+ class EnchantSpellChecker { |
39 |
+@@ -154,7 +154,7 @@ |
40 |
+ } |
41 |
+ |
42 |
+ auto EnchantSpellChecker::findSuggestions(const QString &word) { |
43 |
+- const auto wordScript = ::Spellchecker::WordScript(&word); |
44 |
++ const auto wordScript = ::Spellchecker::WordScript(word); |
45 |
+ auto w = word.toStdString(); |
46 |
+ std::vector<QString> result; |
47 |
+ if (!_validators.size()) { |
48 |
|
49 |
diff --git a/net-im/telegram-desktop/telegram-desktop-3.3.0.ebuild b/net-im/telegram-desktop/telegram-desktop-3.3.0.ebuild |
50 |
index cedaf383018b..a14b4b6bc825 100644 |
51 |
--- a/net-im/telegram-desktop/telegram-desktop-3.3.0.ebuild |
52 |
+++ b/net-im/telegram-desktop/telegram-desktop-3.3.0.ebuild |
53 |
@@ -71,6 +71,7 @@ S="${WORKDIR}/${MY_P}" |
54 |
PATCHES=( |
55 |
"${FILESDIR}/tdesktop-3.1.0-jemalloc-only-telegram.patch" |
56 |
"${FILESDIR}/tdesktop-3.1.0-fix-openssl3.patch" |
57 |
+ "${FILESDIR}/tdesktop-3.3.0-fix-enchant.patch" |
58 |
) |
59 |
|
60 |
pkg_pretend() { |