pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/misc/calibre



Module Name:    pkgsrc
Committed By:   kamil
Date:           Tue Sep 24 16:39:51 UTC 2019

Modified Files:
        pkgsrc/misc/calibre: distinfo
Added Files:
        pkgsrc/misc/calibre/patches:
            patch-src_calibre_headless_headless__integration.cpp

Log Message:
calibre: Fix qt 5.13 compatibility

Cherry-pick upstream patch:
https://github.com/kovidgoyal/calibre/commit/0a5dc07da1cb0f9409803b4df1a92e497e3c0e95.patch


To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.104 pkgsrc/misc/calibre/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/misc/calibre/patches/patch-src_calibre_headless_headless__integration.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/misc/calibre/distinfo
diff -u pkgsrc/misc/calibre/distinfo:1.103 pkgsrc/misc/calibre/distinfo:1.104
--- pkgsrc/misc/calibre/distinfo:1.103  Mon Mar 25 13:11:56 2019
+++ pkgsrc/misc/calibre/distinfo        Tue Sep 24 16:39:50 2019
@@ -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 @@ SHA512 (calibre-3.40.1.tar.xz) = 1333c24
 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

Added files:

Index: pkgsrc/misc/calibre/patches/patch-src_calibre_headless_headless__integration.cpp
diff -u /dev/null pkgsrc/misc/calibre/patches/patch-src_calibre_headless_headless__integration.cpp:1.1
--- /dev/null   Tue Sep 24 16:39:51 2019
+++ pkgsrc/misc/calibre/patches/patch-src_calibre_headless_headless__integration.cpp    Tue Sep 24 16:39:51 2019
@@ -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