File: 2010-Skip-CLD3.patch

package info (click to toggle)
telegram-desktop 5.7.2%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 63,488 kB
  • sloc: cpp: 756,228; python: 4,383; ansic: 1,505; javascript: 1,366; sh: 884; makefile: 820; objc: 652; xml: 565
file content (36 lines) | stat: -rw-r--r-- 1,527 bytes parent folder | download | duplicates (2)
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
36
Description: Skip CLD3 integration because the library is currently unpackaged in Debian
Bug-Debian: https://bugs.debian.org/1024816
Author: Nicholas Guriev <guriev-ns@ya.ru>
Last-Update: Sun, 04 Dec 2022 22:58:28 +0300

--- a/Telegram/lib_spellcheck/CMakeLists.txt
+++ b/Telegram/lib_spellcheck/CMakeLists.txt
@@ -28,7 +28,7 @@ if (APPLE)
 endif()
 
 set(use_cld3 0)
-if (LINUX OR DESKTOP_APP_USE_CLD3)
+if (DESKTOP_APP_USE_CLD3)
     set(use_cld3 1)
 endif()
 
--- a/cmake/variables.cmake
+++ b/cmake/variables.cmake
@@ -33,7 +33,7 @@ option(DESKTOP_APP_DISABLE_AUTOUPDATE "D
 option(DESKTOP_APP_USE_HUNSPELL_ONLY "Disable system spellchecker and use bundled Hunspell only. (For debugging purposes)" OFF)
 option(DESKTOP_APP_ASAN "Enable address sanitizer" OFF)
 cmake_dependent_option(DESKTOP_APP_USE_ENCHANT "Use Enchant instead of bundled Hunspell." OFF LINUX OFF)
-cmake_dependent_option(DESKTOP_APP_USE_CLD3 "Disable system text language recognition and use bundled cld3 only." OFF APPLE ON)
+cmake_dependent_option(DESKTOP_APP_USE_CLD3 "Disable system text language recognition and use bundled cld3 only." OFF "APPLE OR LINUX" ON)
 cmake_dependent_option(DESKTOP_APP_NO_PDB "Disable PDB file generation." OFF WIN32 OFF)
 cmake_dependent_option(DESKTOP_APP_DISABLE_JEMALLOC "Disable jemalloc, use system malloc." OFF "LINUX; NOT DESKTOP_APP_ASAN" ON)
 
@@ -53,7 +53,7 @@ if (WIN32
 endif()
 
 set(add_cld3_library 0)
-if (LINUX OR DESKTOP_APP_USE_CLD3)
+if (DESKTOP_APP_USE_CLD3)
     set(add_cld3_library 1)
 endif()