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/files/, sci-visualization/kst/
Date: Tue, 12 Jun 2018 07:33:41
Message-Id: 1528787806.10b8466f663b78d2dcbbe012310db237c2b8d7ee.asturm@gentoo
1 commit: 10b8466f663b78d2dcbbe012310db237c2b8d7ee
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 12 07:04:55 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 12 07:16:46 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10b8466f
7
8 sci-visualization/kst: Fix build with Qt-5.11.0_beta3
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 .../kst/files/kst-2.0.8-qt-5.11b3.patch | 25 ++++++++++++++++++++++
13 sci-visualization/kst/kst-2.0.8.ebuild | 8 +++++--
14 2 files changed, 31 insertions(+), 2 deletions(-)
15
16 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
17 new file mode 100644
18 index 00000000000..b211e1ed21e
19 --- /dev/null
20 +++ b/sci-visualization/kst/files/kst-2.0.8-qt-5.11b3.patch
21 @@ -0,0 +1,25 @@
22 +From 91867d80df4fe8f26c9adbfe10c1c883ccb36697 Mon Sep 17 00:00:00 2001
23 +From: Andreas Sturmlechner <asturm@g.o>
24 +Date: Tue, 12 Jun 2018 08:57:08 +0200
25 +Subject: [PATCH] Fix configure with Qt-5.11.0_beta3 (no more qt5_use_modules)
26 +
27 +---
28 + cmake/modules/KstMacros.cmake | 2 +-
29 + 1 file changed, 1 insertion(+), 1 deletion(-)
30 +
31 +diff --git a/cmake/modules/KstMacros.cmake b/cmake/modules/KstMacros.cmake
32 +index 676d5731..95848f20 100644
33 +--- a/cmake/modules/KstMacros.cmake
34 ++++ b/cmake/modules/KstMacros.cmake
35 +@@ -240,7 +240,7 @@ endmacro()
36 + macro(kst_link)
37 + target_link_libraries(${kst_name} ${ARGV})
38 + if(kst_qt5)
39 +- qt5_use_modules(${kst_name} Widgets Xml Network PrintSupport)
40 ++ target_link_libraries(${kst_name} Qt5::Widgets Qt5::Xml Qt5::Network Qt5::PrintSupport)
41 + else()
42 + target_link_libraries(${kst_name}
43 + ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTXML_LIBRARY} ${QT_QTSVG_LIBRARY} ${QT_QTNETWORK_LIBRARY})
44 +--
45 +2.17.1
46 +
47
48 diff --git a/sci-visualization/kst/kst-2.0.8.ebuild b/sci-visualization/kst/kst-2.0.8.ebuild
49 index 408da47f298..9d4e9bb326f 100644
50 --- a/sci-visualization/kst/kst-2.0.8.ebuild
51 +++ b/sci-visualization/kst/kst-2.0.8.ebuild
52 @@ -1,4 +1,4 @@
53 -# Copyright 1999-2017 Gentoo Foundation
54 +# Copyright 1999-2018 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56
57 EAPI=5
58 @@ -40,7 +40,11 @@ DEPEND="${RDEPEND}
59 S=${WORKDIR}/${MY_P}
60
61 DOCS=( AUTHORS README.kstScript )
62 -PATCHES=( "${FILESDIR}/${P}-includes.patch" )
63 +
64 +PATCHES=(
65 + "${FILESDIR}/${P}-includes.patch"
66 + "${FILESDIR}/${P}-qt-5.11b3.patch"
67 +)
68
69 src_configure() {
70 local mycmakeargs=(