Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-visualization/kst/, sci-visualization/kst/files/
Date: Sun, 26 Aug 2018 18:24:18
Message-Id: 1535307829.901e0196c41d8c1b57e327370c6f9bbeba4d309f.asturm@gentoo
1 commit: 901e0196c41d8c1b57e327370c6f9bbeba4d309f
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 26 17:37:17 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 26 18:23:49 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=901e0196
7
8 sci-visualization/kst: Fix build with Qt 5.11
9
10 Closes: https://bugs.gentoo.org/664532
11 Package-Manager: Portage-2.3.48, Repoman-2.3.10
12
13 .../kst/files/kst-2.0.8-qt-5.11.patch | 46 ++++++++++++++++++++++
14 .../kst/files/kst-2.0.8-qt-5.11b3.patch | 25 ------------
15 sci-visualization/kst/kst-2.0.8.ebuild | 2 +-
16 3 files changed, 47 insertions(+), 26 deletions(-)
17
18 diff --git a/sci-visualization/kst/files/kst-2.0.8-qt-5.11.patch b/sci-visualization/kst/files/kst-2.0.8-qt-5.11.patch
19 new file mode 100644
20 index 00000000000..8409f6664d7
21 --- /dev/null
22 +++ b/sci-visualization/kst/files/kst-2.0.8-qt-5.11.patch
23 @@ -0,0 +1,46 @@
24 +From 9fc5140791ec00d6df2d65973f3ca61df17b1d47 Mon Sep 17 00:00:00 2001
25 +From: Christophe Giboudeaux <christophe@××××.fr>
26 +Date: Sun, 3 Jun 2018 19:43:34 +0200
27 +Subject: Fix build with Qt 5.11
28 +
29 +Summary:
30 +- qt5_use_modules was removed in Qt 5.11. use target_link_libraries instead.
31 +- Add a missing #include
32 +
33 +Subscribers: kde-edu
34 +
35 +Tags: #kde_edu
36 +
37 +Differential Revision: https://phabricator.kde.org/D13339
38 +---
39 + cmake/modules/KstMacros.cmake | 2 +-
40 + src/libkstapp/view.h | 1 +
41 + 2 files changed, 2 insertions(+), 1 deletion(-)
42 +
43 +diff --git a/cmake/modules/KstMacros.cmake b/cmake/modules/KstMacros.cmake
44 +index 4ff9c15..bc3d8a6 100644
45 +--- a/cmake/modules/KstMacros.cmake
46 ++++ b/cmake/modules/KstMacros.cmake
47 +@@ -240,7 +240,7 @@ endmacro()
48 + macro(kst_link)
49 + target_link_libraries(${kst_name} ${ARGV})
50 + if(kst_qt5)
51 +- qt5_use_modules(${kst_name} Widgets Xml Network PrintSupport)
52 ++ target_link_libraries(${kst_name} Qt5::Widgets Qt5::Xml Qt5::Network Qt5::PrintSupport)
53 + else()
54 + target_link_libraries(${kst_name}
55 + ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTXML_LIBRARY} ${QT_QTSVG_LIBRARY} ${QT_QTNETWORK_LIBRARY})
56 +diff --git a/src/libkstapp/view.h b/src/libkstapp/view.h
57 +index 95c8c6a..2af5393 100644
58 +--- a/src/libkstapp/view.h
59 ++++ b/src/libkstapp/view.h
60 +@@ -14,6 +14,7 @@
61 + #define VIEW_H
62 +
63 + #include <QGraphicsView>
64 ++#include <QMenu>
65 +
66 + #include "kst_export.h"
67 +
68 +--
69 +cgit v0.11.2
70
71 diff --git a/sci-visualization/kst/files/kst-2.0.8-qt-5.11b3.patch b/sci-visualization/kst/files/kst-2.0.8-qt-5.11b3.patch
72 deleted file mode 100644
73 index b211e1ed21e..00000000000
74 --- a/sci-visualization/kst/files/kst-2.0.8-qt-5.11b3.patch
75 +++ /dev/null
76 @@ -1,25 +0,0 @@
77 -From 91867d80df4fe8f26c9adbfe10c1c883ccb36697 Mon Sep 17 00:00:00 2001
78 -From: Andreas Sturmlechner <asturm@g.o>
79 -Date: Tue, 12 Jun 2018 08:57:08 +0200
80 -Subject: [PATCH] Fix configure with Qt-5.11.0_beta3 (no more qt5_use_modules)
81 -
82 ----
83 - cmake/modules/KstMacros.cmake | 2 +-
84 - 1 file changed, 1 insertion(+), 1 deletion(-)
85 -
86 -diff --git a/cmake/modules/KstMacros.cmake b/cmake/modules/KstMacros.cmake
87 -index 676d5731..95848f20 100644
88 ---- a/cmake/modules/KstMacros.cmake
89 -+++ b/cmake/modules/KstMacros.cmake
90 -@@ -240,7 +240,7 @@ endmacro()
91 - macro(kst_link)
92 - target_link_libraries(${kst_name} ${ARGV})
93 - if(kst_qt5)
94 -- qt5_use_modules(${kst_name} Widgets Xml Network PrintSupport)
95 -+ target_link_libraries(${kst_name} Qt5::Widgets Qt5::Xml Qt5::Network Qt5::PrintSupport)
96 - else()
97 - target_link_libraries(${kst_name}
98 - ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTXML_LIBRARY} ${QT_QTSVG_LIBRARY} ${QT_QTNETWORK_LIBRARY})
99 ---
100 -2.17.1
101 -
102
103 diff --git a/sci-visualization/kst/kst-2.0.8.ebuild b/sci-visualization/kst/kst-2.0.8.ebuild
104 index 1ea474c0cee..d8c58992ca3 100644
105 --- a/sci-visualization/kst/kst-2.0.8.ebuild
106 +++ b/sci-visualization/kst/kst-2.0.8.ebuild
107 @@ -43,7 +43,7 @@ DOCS=( AUTHORS README.kstScript )
108
109 PATCHES=(
110 "${FILESDIR}/${P}-includes.patch"
111 - "${FILESDIR}/${P}-qt-5.11b3.patch"
112 + "${FILESDIR}/${P}-qt-5.11.patch"
113 )
114
115 src_configure() {