Gentoo Archives: gentoo-commits

From: Jimi Huotari <chiitoo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qt:master commit in: lxqt-base/liblxqt/files/
Date: Wed, 05 Dec 2018 19:22:27
Message-Id: 1544037674.a10da08a2dccd41eb5449acaa5dad3036eee6469.chiitoo@gentoo
1 commit: a10da08a2dccd41eb5449acaa5dad3036eee6469
2 Author: Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 5 19:18:51 2018 +0000
4 Commit: Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 5 19:21:14 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=a10da08a
7
8 lxqt-base/liblxqt: update polkit optional making patch
9
10 Signed-off-by: Jimi Huotari <chiitoo <AT> gentoo.org>
11 Package-Manager: Portage-2.3.52, Repoman-2.3.12
12
13 .../files/liblxqt-make-polkit-optional.patch | 31 +++++++++++++++-------
14 1 file changed, 22 insertions(+), 9 deletions(-)
15
16 diff --git a/lxqt-base/liblxqt/files/liblxqt-make-polkit-optional.patch b/lxqt-base/liblxqt/files/liblxqt-make-polkit-optional.patch
17 index 7444318d..75ec71ec 100644
18 --- a/lxqt-base/liblxqt/files/liblxqt-make-polkit-optional.patch
19 +++ b/lxqt-base/liblxqt/files/liblxqt-make-polkit-optional.patch
20 @@ -1,29 +1,42 @@
21 ---- a/CMakeLists.txt 2018-05-21 16:51:42.359463205 +0300
22 -+++ b/CMakeLists.txt 2018-05-21 16:36:26.767259223 +0300
23 -@@ -160,7 +160,14 @@
24 +From f1b587d2d0f77ed8ea95bcf28880d231f048e0ee Mon Sep 17 00:00:00 2001
25 +From: Jimi Huotari <chiitoo@g.o>
26 +Date: Wed, 5 Dec 2018 21:16:13 +0200
27 +Subject: [PATCH] build: Make PolkitQt5-1 optional
28 +
29 +---
30 + CMakeLists.txt | 10 +++++++++-
31 + 1 file changed, 9 insertions(+), 1 deletion(-)
32 +
33 +diff --git a/CMakeLists.txt b/CMakeLists.txt
34 +index 56d16c6..dfe90fe 100644
35 +--- a/CMakeLists.txt
36 ++++ b/CMakeLists.txt
37 +@@ -41,8 +41,14 @@ find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED)
38 find_package(Qt5 ${QT_MINIMUM_VERSION} CONFIG REQUIRED Widgets DBus X11Extras LinguistTools)
39 find_package(Qt5Xdg ${QTXDG_MINIMUM_VERSION} REQUIRED)
40 - find_package(KF5WindowSystem REQUIRED)
41 + find_package(KF5WindowSystem ${KF5_MINIMUM_VERSION} REQUIRED)
42 -find_package(PolkitQt5-1 REQUIRED)
43 + find_package(X11 REQUIRED)
44 +
45 +# Optionally include the PolkitQt5-1 module.
46 +option(BUILD_POLKIT "Install the PolkitQt5-1 files." ON)
47 -+
48 +if(BUILD_POLKIT)
49 + find_package(PolkitQt5-1 REQUIRED)
50 +endif ()
51 +
52 message(STATUS "Building ${PROJECT_NAME} with Qt ${Qt5Core_VERSION}")
53
54 - QT5_ADD_DBUS_INTERFACE(DBUS_INTERFACE_SRCS
55 -@@ -367,7 +374,9 @@
56 + include(CMakePackageConfigHelpers)
57 +@@ -363,7 +369,9 @@ install(FILES ${LXQT_CONFIG_FILES}
58 COMPONENT Runtime
59 )
60
61 --install(FILES ${POLKIT_FILES} DESTINATION "${POLKITQT-1_POLICY_FILES_INSTALL_DIR}")
62 +if (PolkitQt5-1_FOUND)
63 -+ install(FILES ${POLKIT_FILES} DESTINATION "${POLKITQT-1_POLICY_FILES_INSTALL_DIR}")
64 + install(FILES ${POLKIT_FILES} DESTINATION "${POLKITQT-1_POLICY_FILES_INSTALL_DIR}")
65 +endif ()
66
67 #************************************************
68 # Create and install pkgconfig file
69 +--
70 +2.19.2
71 +