pkgsrc/misc/calibre/patches/patch-src_calibre_headless_fontconfig_database.cpp
2020-07-05 12:09:08 +00:00

36 lines
1.2 KiB
C++

$NetBSD: patch-src_calibre_headless_fontconfig_database.cpp,v 1.1 2020/07/05 12:09:08 rhialto Exp $
Qt 5.15.0 has more languages in an array that Calibre tries to match,
and it checks with a STATIC_ASSERT.
--- src/calibre/headless/fontconfig_database.cpp.orig 2020-07-02 17:32:43.809996191 +0000
+++ src/calibre/headless/fontconfig_database.cpp
@@ -295,7 +295,27 @@ static const char specialLanguages[][6]
"", // MasaramGondi
"", // Nushu
"", // Soyombo
- "" // ZanabazarSquare
+ "", // ZanabazarSquare
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
+ // Unicode 12.1 additions
+ "", // Script_Dogra,
+ "", // Script_GunjalaGondi,
+ "", // Script_HanifiRohingya,
+ "", // Script_Makasar,
+ "", // Script_Medefaidrin,
+ "", // Script_OldSogdian,
+ "", // Script_Sogdian,
+ "", // Script_Elymaic,
+ "", // Script_Nandinagari,
+ "", // Script_NyiakengPuachueHmong,
+ "", // Script_Wancho,
+
+ // Unicode 13.0 additions
+ "", // Script_Chorasmian,
+ "", // Script_DivesAkuru,
+ "", // Script_KhitanSmallScript,
+ "", // Script_Yezidi,
+#endif // Qt >= 5.15
#else
"" // SignWriting
#endif // Qt >= 5.11