diff options
author | rhialto <rhialto@pkgsrc.org> | 2020-07-05 12:09:08 +0000 |
---|---|---|
committer | rhialto <rhialto@pkgsrc.org> | 2020-07-05 12:09:08 +0000 |
commit | d6a627376e5d3ec6aa6c9d0f81a3b83010569075 (patch) | |
tree | 9d0e82700b4e7b1a90cd59192765b716caf74b3a | |
parent | 5372f93faa439bbee5cfb21951763a19c38daa60 (diff) | |
download | pkgsrc-d6a627376e5d3ec6aa6c9d0f81a3b83010569075.tar.gz |
misc/calibre: fix build with Qt 5.15.0.
-rw-r--r-- | misc/calibre/Makefile | 4 | ||||
-rw-r--r-- | misc/calibre/distinfo | 3 | ||||
-rw-r--r-- | misc/calibre/patches/patch-src_calibre_headless_fontconfig_database.cpp | 36 |
3 files changed, 40 insertions, 3 deletions
diff --git a/misc/calibre/Makefile b/misc/calibre/Makefile index 751461c2007..1b350efc74e 100644 --- a/misc/calibre/Makefile +++ b/misc/calibre/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.239 2020/06/22 11:13:18 nia Exp $ +# $NetBSD: Makefile,v 1.240 2020/07/05 12:09:08 rhialto Exp $ DISTNAME= calibre-3.40.1 -PKGREVISION= 17 +PKGREVISION= 18 CATEGORIES= misc #MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=calibre/} MASTER_SITES= http://download.calibre-ebook.com/${PKGVERSION_NOREV}/ diff --git a/misc/calibre/distinfo b/misc/calibre/distinfo index d12d526637f..b1a9903e368 100644 --- a/misc/calibre/distinfo +++ b/misc/calibre/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.104 2019/09/24 16:39:50 kamil Exp $ +$NetBSD: distinfo,v 1.105 2020/07/05 12:09:08 rhialto Exp $ SHA1 (calibre-3.40.1.tar.xz) = 12cea0bed963dde2b58c9cdd4c3c25c735d6d15a RMD160 (calibre-3.40.1.tar.xz) = 72bf801e4164dcebec22ba36162fe034c9edad54 @@ -6,5 +6,6 @@ SHA512 (calibre-3.40.1.tar.xz) = 1333c24e384ccae79d264055e1e84b8a13919e68d9290a2 Size (calibre-3.40.1.tar.xz) = 38365300 bytes SHA1 (patch-setup_build.py) = f309c8f01af375fce1d09bf5c4bac9610cf4e0c5 SHA1 (patch-setup_build__environment.py) = dd6160233c717e935205649ee685e71df3f1858e +SHA1 (patch-src_calibre_headless_fontconfig_database.cpp) = d794a9f1c94c85d3406384bf25ade4be8d2f8a1c SHA1 (patch-src_calibre_headless_headless__integration.cpp) = 62ab6f5aaf6bd8bcbb875ab56eac1a474d8b446b SHA1 (patch-src_calibre_linux.py) = 16c3122a612ec9996f774c5c2c9d40a475723662 diff --git a/misc/calibre/patches/patch-src_calibre_headless_fontconfig_database.cpp b/misc/calibre/patches/patch-src_calibre_headless_fontconfig_database.cpp new file mode 100644 index 00000000000..ea57b2fb2ec --- /dev/null +++ b/misc/calibre/patches/patch-src_calibre_headless_fontconfig_database.cpp @@ -0,0 +1,36 @@ +$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 |