pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/calibre calibre: Fix qt 5.13 compatibility
details: https://anonhg.NetBSD.org/pkgsrc/rev/d2d79de9e0e5
branches: trunk
changeset: 401746:d2d79de9e0e5
user: kamil <kamil%pkgsrc.org@localhost>
date: Tue Sep 24 16:39:50 2019 +0000
description:
calibre: Fix qt 5.13 compatibility
Cherry-pick upstream patch:
https://github.com/kovidgoyal/calibre/commit/0a5dc07da1cb0f9409803b4df1a92e497e3c0e95.patch
diffstat:
misc/calibre/distinfo | 3 +-
misc/calibre/patches/patch-src_calibre_headless_headless__integration.cpp | 20 ++++++++++
2 files changed, 22 insertions(+), 1 deletions(-)
diffs (39 lines):
diff -r 90ea49d72c15 -r d2d79de9e0e5 misc/calibre/distinfo
--- a/misc/calibre/distinfo Tue Sep 24 16:08:29 2019 +0000
+++ b/misc/calibre/distinfo Tue Sep 24 16:39:50 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.103 2019/03/25 13:11:56 wiz Exp $
+$NetBSD: distinfo,v 1.104 2019/09/24 16:39:50 kamil Exp $
SHA1 (calibre-3.40.1.tar.xz) = 12cea0bed963dde2b58c9cdd4c3c25c735d6d15a
RMD160 (calibre-3.40.1.tar.xz) = 72bf801e4164dcebec22ba36162fe034c9edad54
@@ -6,4 +6,5 @@
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_headless__integration.cpp) = 62ab6f5aaf6bd8bcbb875ab56eac1a474d8b446b
SHA1 (patch-src_calibre_linux.py) = 16c3122a612ec9996f774c5c2c9d40a475723662
diff -r 90ea49d72c15 -r d2d79de9e0e5 misc/calibre/patches/patch-src_calibre_headless_headless__integration.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/calibre/patches/patch-src_calibre_headless_headless__integration.cpp Tue Sep 24 16:39:50 2019 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-src_calibre_headless_headless__integration.cpp,v 1.1 2019/09/24 16:39:51 kamil Exp $
+
+Fix Qt 5.13 compat.
+https://github.com/kovidgoyal/calibre/commit/0a5dc07da1cb0f9409803b4df1a92e497e3c0e95.patch
+
+--- src/calibre/headless/headless_integration.cpp.orig 2019-03-08 06:09:34.000000000 +0000
++++ src/calibre/headless/headless_integration.cpp
+@@ -58,7 +58,12 @@ HeadlessIntegration::HeadlessIntegration
+ mPrimaryScreen->mDepth = 32;
+ mPrimaryScreen->mFormat = QImage::Format_ARGB32_Premultiplied;
+
++#if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0))
++ QWindowSystemInterface::handleScreenAdded(mPrimaryScreen);
++#else
+ screenAdded(mPrimaryScreen);
++#endif
++
+ #ifdef __APPLE__
+ m_fontDatabase.reset(new QCoreTextFontDatabase());
+ #else
Home |
Main Index |
Thread Index |
Old Index