[arch-commits] Commit in deepin-qt5integration/repos (8 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 11 05:00:17 UTC 2017


    Date: Tuesday, July 11, 2017 @ 05:00:16
  Author: felixonmars
Revision: 243845

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  deepin-qt5integration/repos/community-testing-i686/
  deepin-qt5integration/repos/community-testing-i686/PKGBUILD
    (from rev 243844, deepin-qt5integration/trunk/PKGBUILD)
  deepin-qt5integration/repos/community-testing-i686/qt-5.9.patch
    (from rev 243844, deepin-qt5integration/trunk/qt-5.9.patch)
  deepin-qt5integration/repos/community-testing-i686/use-system-qt5-headers.patch
    (from rev 243844, deepin-qt5integration/trunk/use-system-qt5-headers.patch)
  deepin-qt5integration/repos/community-testing-x86_64/
  deepin-qt5integration/repos/community-testing-x86_64/PKGBUILD
    (from rev 243844, deepin-qt5integration/trunk/PKGBUILD)
  deepin-qt5integration/repos/community-testing-x86_64/qt-5.9.patch
    (from rev 243844, deepin-qt5integration/trunk/qt-5.9.patch)
  deepin-qt5integration/repos/community-testing-x86_64/use-system-qt5-headers.patch
    (from rev 243844, deepin-qt5integration/trunk/use-system-qt5-headers.patch)

-------------------------------------------------------+
 community-testing-i686/PKGBUILD                       |   37 ++++++++++++
 community-testing-i686/qt-5.9.patch                   |   46 ++++++++++++++++
 community-testing-i686/use-system-qt5-headers.patch   |   27 +++++++++
 community-testing-x86_64/PKGBUILD                     |   37 ++++++++++++
 community-testing-x86_64/qt-5.9.patch                 |   46 ++++++++++++++++
 community-testing-x86_64/use-system-qt5-headers.patch |   27 +++++++++
 6 files changed, 220 insertions(+)

Copied: deepin-qt5integration/repos/community-testing-i686/PKGBUILD (from rev 243844, deepin-qt5integration/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2017-07-11 05:00:16 UTC (rev 243845)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=deepin-qt5integration
+pkgver=0.2.1
+pkgrel=1
+pkgdesc='Deepin Qt5 platform plugin'
+arch=('i686' 'x86_64')
+url="http://github.com/linuxdeepin/qt5integration"
+license=('GPL3')
+depends=('deepin-tool-kit' 'libqtxdg' 'gtk2')
+makedepends=('xcb-util-renderutil' 'deepin-file-manager' 'qt5-xcb-private-headers')
+replaces=('qt5dxcb-plugin')
+conflicts=('qt5dxcb-plugin')
+groups=('deepin')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/qt5integration/archive/$pkgver.tar.gz"
+        use-system-qt5-headers.patch qt-5.9.patch)
+sha512sums=('833d9716f10a5dbe7de19f5dc6ef2b11af3baac9108b96ab09b38f2dd71471257a26a4947bd0ff2f2258b7b35c66a3c298284aba269c327f1a255f98829e9989'
+            '29152204a36efc5fc2376b74be2ebe1d9cb253f9371ca8b0e9bf95c415c903f956d0d400eaffb3f708f81b19acd0a5383647af3a5a10cf6a61dfa586eb1bd57b'
+            'b5c8a41184e5fd4d9bc6b7b3f1028181e1c98b5c2ca6cc072efcd49b643844f7999b13de66ffdf0260825ae1e1921437476d4865c96043dd376a4c452536379c')
+
+prepare() {
+  cd qt5integration-$pkgver
+  patch -p1 -i ../use-system-qt5-headers.patch
+  patch -p1 -i ../qt-5.9.patch
+}
+
+build() {
+  cd qt5integration-$pkgver
+  qmake-qt5 QMAKE_CFLAGS_ISYSTEM= PREFIX=/usr
+  make
+}
+
+package() {
+  cd qt5integration-$pkgver
+  make INSTALL_ROOT="$pkgdir" install
+}

Copied: deepin-qt5integration/repos/community-testing-i686/qt-5.9.patch (from rev 243844, deepin-qt5integration/trunk/qt-5.9.patch)
===================================================================
--- community-testing-i686/qt-5.9.patch	                        (rev 0)
+++ community-testing-i686/qt-5.9.patch	2017-07-11 05:00:16 UTC (rev 243845)
@@ -0,0 +1,46 @@
+commit c07d348bae9bbb96dcecd682ff50e2e31fdffc48
+Author: Felix Yan <felixonmars at archlinux.org>
+Date:   Tue Jul 11 12:46:16 2017 +0800
+
+    Fix compatibility with Qt 5.9
+    
+    Change-Id: I53f07a89ff49c69a40e06ae91fc4b6e431280630
+
+diff --git a/platformplugin/dplatformwindowhelper.cpp b/platformplugin/dplatformwindowhelper.cpp
+index 3145836..1700d6a 100644
+--- a/platformplugin/dplatformwindowhelper.cpp
++++ b/platformplugin/dplatformwindowhelper.cpp
+@@ -314,10 +314,17 @@ bool DPlatformWindowHelper::isExposed() const
+     return me()->m_frameWindow->handle()->isExposed();
+ }
+ 
++#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
++bool DPlatformWindowHelper::isEmbedded() const
++{
++    return me()->m_frameWindow->handle()->isEmbedded();
++}
++#else
+ bool DPlatformWindowHelper::isEmbedded(const QPlatformWindow *parentWindow) const
+ {
+     return me()->m_frameWindow->handle()->isEmbedded(parentWindow);
+ }
++#endif
+ 
+ void DPlatformWindowHelper::propagateSizeHints()
+ {
+diff --git a/platformplugin/dplatformwindowhelper.h b/platformplugin/dplatformwindowhelper.h
+index 4c2f367..843aecc 100644
+--- a/platformplugin/dplatformwindowhelper.h
++++ b/platformplugin/dplatformwindowhelper.h
+@@ -60,7 +60,11 @@ public:
+ 
+     bool isExposed() const;
+     bool isActive() const;
++#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
++    bool isEmbedded() const;
++#else
+     bool isEmbedded(const QPlatformWindow *parentWindow = 0) const;
++#endif
+ 
+     void propagateSizeHints();
+ 

Copied: deepin-qt5integration/repos/community-testing-i686/use-system-qt5-headers.patch (from rev 243844, deepin-qt5integration/trunk/use-system-qt5-headers.patch)
===================================================================
--- community-testing-i686/use-system-qt5-headers.patch	                        (rev 0)
+++ community-testing-i686/use-system-qt5-headers.patch	2017-07-11 05:00:16 UTC (rev 243845)
@@ -0,0 +1,27 @@
+diff --git a/platformplugin/linux.pri b/platformplugin/linux.pri
+index a36b405..9e4fce8 100644
+--- a/platformplugin/linux.pri
++++ b/platformplugin/linux.pri
+@@ -22,7 +22,7 @@ SOURCES += \
+     $$PWD/utility_x11.cpp \
+     $$PWD/dxcbwmsupport.cpp
+ 
+-INCLUDEPATH += $$PWD/libqt5xcbqpa-dev
++INCLUDEPATH += /usr/include/qtxcb-private
+
+ contains(QT_CONFIG, xcb-xlib)|qtConfig(xcb-xlib) {
+     DEFINES += XCB_USE_XLIB
+@@ -63,13 +63,3 @@ contains(QT_CONFIG, xcb-sm)|qtConfig(xcb-sm) {
+ contains(QT_CONFIG, xcb-qt) {
+     DEFINES += XCB_USE_RENDER
+ }
+-
+-exists($$PWD/libqt5xcbqpa-dev) {
+-    !system(cd $$PWD/libqt5xcbqpa-dev && git checkout $$VERSION) {
+-        !system(cd $$PWD/libqt5xcbqpa-dev && git fetch -p):error(update libqt5xcbqpa header sources failed)
+-        !system(cd $$PWD/libqt5xcbqpa-dev && git checkout $$VERSION):error(Not support Qt Version: $$VERSION)
+-    }
+-} else {
+-    !system(git clone https://cr.deepin.io/libqt5xcbqpa-dev):error(clone libqt5xcbqpa header sources failed)
+-    !system(cd $$PWD/libqt5xcbqpa-dev && git checkout $$VERSION):error(Not support Qt Version: $$VERSION)
+-}

Copied: deepin-qt5integration/repos/community-testing-x86_64/PKGBUILD (from rev 243844, deepin-qt5integration/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-07-11 05:00:16 UTC (rev 243845)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=deepin-qt5integration
+pkgver=0.2.1
+pkgrel=1
+pkgdesc='Deepin Qt5 platform plugin'
+arch=('i686' 'x86_64')
+url="http://github.com/linuxdeepin/qt5integration"
+license=('GPL3')
+depends=('deepin-tool-kit' 'libqtxdg' 'gtk2')
+makedepends=('xcb-util-renderutil' 'deepin-file-manager' 'qt5-xcb-private-headers')
+replaces=('qt5dxcb-plugin')
+conflicts=('qt5dxcb-plugin')
+groups=('deepin')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/qt5integration/archive/$pkgver.tar.gz"
+        use-system-qt5-headers.patch qt-5.9.patch)
+sha512sums=('833d9716f10a5dbe7de19f5dc6ef2b11af3baac9108b96ab09b38f2dd71471257a26a4947bd0ff2f2258b7b35c66a3c298284aba269c327f1a255f98829e9989'
+            '29152204a36efc5fc2376b74be2ebe1d9cb253f9371ca8b0e9bf95c415c903f956d0d400eaffb3f708f81b19acd0a5383647af3a5a10cf6a61dfa586eb1bd57b'
+            'b5c8a41184e5fd4d9bc6b7b3f1028181e1c98b5c2ca6cc072efcd49b643844f7999b13de66ffdf0260825ae1e1921437476d4865c96043dd376a4c452536379c')
+
+prepare() {
+  cd qt5integration-$pkgver
+  patch -p1 -i ../use-system-qt5-headers.patch
+  patch -p1 -i ../qt-5.9.patch
+}
+
+build() {
+  cd qt5integration-$pkgver
+  qmake-qt5 QMAKE_CFLAGS_ISYSTEM= PREFIX=/usr
+  make
+}
+
+package() {
+  cd qt5integration-$pkgver
+  make INSTALL_ROOT="$pkgdir" install
+}

Copied: deepin-qt5integration/repos/community-testing-x86_64/qt-5.9.patch (from rev 243844, deepin-qt5integration/trunk/qt-5.9.patch)
===================================================================
--- community-testing-x86_64/qt-5.9.patch	                        (rev 0)
+++ community-testing-x86_64/qt-5.9.patch	2017-07-11 05:00:16 UTC (rev 243845)
@@ -0,0 +1,46 @@
+commit c07d348bae9bbb96dcecd682ff50e2e31fdffc48
+Author: Felix Yan <felixonmars at archlinux.org>
+Date:   Tue Jul 11 12:46:16 2017 +0800
+
+    Fix compatibility with Qt 5.9
+    
+    Change-Id: I53f07a89ff49c69a40e06ae91fc4b6e431280630
+
+diff --git a/platformplugin/dplatformwindowhelper.cpp b/platformplugin/dplatformwindowhelper.cpp
+index 3145836..1700d6a 100644
+--- a/platformplugin/dplatformwindowhelper.cpp
++++ b/platformplugin/dplatformwindowhelper.cpp
+@@ -314,10 +314,17 @@ bool DPlatformWindowHelper::isExposed() const
+     return me()->m_frameWindow->handle()->isExposed();
+ }
+ 
++#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
++bool DPlatformWindowHelper::isEmbedded() const
++{
++    return me()->m_frameWindow->handle()->isEmbedded();
++}
++#else
+ bool DPlatformWindowHelper::isEmbedded(const QPlatformWindow *parentWindow) const
+ {
+     return me()->m_frameWindow->handle()->isEmbedded(parentWindow);
+ }
++#endif
+ 
+ void DPlatformWindowHelper::propagateSizeHints()
+ {
+diff --git a/platformplugin/dplatformwindowhelper.h b/platformplugin/dplatformwindowhelper.h
+index 4c2f367..843aecc 100644
+--- a/platformplugin/dplatformwindowhelper.h
++++ b/platformplugin/dplatformwindowhelper.h
+@@ -60,7 +60,11 @@ public:
+ 
+     bool isExposed() const;
+     bool isActive() const;
++#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
++    bool isEmbedded() const;
++#else
+     bool isEmbedded(const QPlatformWindow *parentWindow = 0) const;
++#endif
+ 
+     void propagateSizeHints();
+ 

Copied: deepin-qt5integration/repos/community-testing-x86_64/use-system-qt5-headers.patch (from rev 243844, deepin-qt5integration/trunk/use-system-qt5-headers.patch)
===================================================================
--- community-testing-x86_64/use-system-qt5-headers.patch	                        (rev 0)
+++ community-testing-x86_64/use-system-qt5-headers.patch	2017-07-11 05:00:16 UTC (rev 243845)
@@ -0,0 +1,27 @@
+diff --git a/platformplugin/linux.pri b/platformplugin/linux.pri
+index a36b405..9e4fce8 100644
+--- a/platformplugin/linux.pri
++++ b/platformplugin/linux.pri
+@@ -22,7 +22,7 @@ SOURCES += \
+     $$PWD/utility_x11.cpp \
+     $$PWD/dxcbwmsupport.cpp
+ 
+-INCLUDEPATH += $$PWD/libqt5xcbqpa-dev
++INCLUDEPATH += /usr/include/qtxcb-private
+
+ contains(QT_CONFIG, xcb-xlib)|qtConfig(xcb-xlib) {
+     DEFINES += XCB_USE_XLIB
+@@ -63,13 +63,3 @@ contains(QT_CONFIG, xcb-sm)|qtConfig(xcb-sm) {
+ contains(QT_CONFIG, xcb-qt) {
+     DEFINES += XCB_USE_RENDER
+ }
+-
+-exists($$PWD/libqt5xcbqpa-dev) {
+-    !system(cd $$PWD/libqt5xcbqpa-dev && git checkout $$VERSION) {
+-        !system(cd $$PWD/libqt5xcbqpa-dev && git fetch -p):error(update libqt5xcbqpa header sources failed)
+-        !system(cd $$PWD/libqt5xcbqpa-dev && git checkout $$VERSION):error(Not support Qt Version: $$VERSION)
+-    }
+-} else {
+-    !system(git clone https://cr.deepin.io/libqt5xcbqpa-dev):error(clone libqt5xcbqpa header sources failed)
+-    !system(cd $$PWD/libqt5xcbqpa-dev && git checkout $$VERSION):error(Not support Qt Version: $$VERSION)
+-}



More information about the arch-commits mailing list