Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-misc/kshutdown/files/, kde-misc/kshutdown/
Date: Thu, 08 Aug 2019 20:03:24
Message-Id: 1565294380.bd5d96ae06e6aab02191d726d32f128b1f854eb5.asturm@gentoo
1 commit: bd5d96ae06e6aab02191d726d32f128b1f854eb5
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 8 19:57:23 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 8 19:59:40 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd5d96ae
7
8 kde-misc/kshutdown: Fix build with USE=kde and cmake-3.15
9
10 Closes: https://bugs.gentoo.org/691758
11 Package-Manager: Portage-2.3.71, Repoman-2.3.17
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 .../kshutdown/files/kshutdown-5.0-cmake-3.15.patch | 34 ++++++++++++++++++++++
15 kde-misc/kshutdown/kshutdown-5.0.ebuild | 2 ++
16 2 files changed, 36 insertions(+)
17
18 diff --git a/kde-misc/kshutdown/files/kshutdown-5.0-cmake-3.15.patch b/kde-misc/kshutdown/files/kshutdown-5.0-cmake-3.15.patch
19 new file mode 100644
20 index 00000000000..4911fc4daf0
21 --- /dev/null
22 +++ b/kde-misc/kshutdown/files/kshutdown-5.0-cmake-3.15.patch
23 @@ -0,0 +1,34 @@
24 +--- a/CMakeLists.txt 2019-05-04 16:33:55.000000000 +0200
25 ++++ b/CMakeLists.txt 2019-08-08 21:53:36.255257785 +0200
26 +@@ -1,6 +1,6 @@
27 + project(kshutdown)
28 +
29 +-cmake_minimum_required(VERSION 3.0.0)
30 ++cmake_minimum_required(VERSION 3.1)
31 + cmake_policy(SET CMP0063 NEW) # disables cmake warning
32 +
33 + set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
34 +@@ -45,7 +45,9 @@
35 + add_subdirectory(po)
36 + endif()
37 +
38 +-include(FeatureSummary)
39 +-feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
40 ++set (CMAKE_CXX_STANDARD 14)
41 +
42 + add_subdirectory(src)
43 ++
44 ++include(FeatureSummary)
45 ++feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
46 +--- a/src/CMakeLists.txt 2019-05-04 16:33:55.000000000 +0200
47 ++++ b/src/CMakeLists.txt 2019-08-08 21:53:48.791385858 +0200
48 +@@ -31,9 +31,6 @@
49 + add_executable(kshutdown ${kshutdown_SRC} ${kshutdown_MOC_SOURCES})
50 + endif()
51 +
52 +-# HACK: Add -std=gnu++14 option (cmake horror):
53 +-target_compile_features(kshutdown PUBLIC cxx_std_14)
54 +-
55 + if(KS_PURE_QT)
56 + target_link_libraries(kshutdown
57 + Qt5::DBus
58
59 diff --git a/kde-misc/kshutdown/kshutdown-5.0.ebuild b/kde-misc/kshutdown/kshutdown-5.0.ebuild
60 index c8a2047def2..adb5989ac72 100644
61 --- a/kde-misc/kshutdown/kshutdown-5.0.ebuild
62 +++ b/kde-misc/kshutdown/kshutdown-5.0.ebuild
63 @@ -42,6 +42,8 @@ DEPEND="
64 "
65 RDEPEND="${DEPEND}"
66
67 +PATCHES=( "${FILESDIR}/${P}-cmake-3.15.patch" )
68 +
69 src_configure() {
70 local mycmakeargs=(
71 -DKS_PURE_QT=$(usex !kde)