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/lxqt-config/files/
Date: Mon, 18 Feb 2019 18:34:16
Message-Id: 1550514780.cd69137c3a3db5d9699c681250b6c802257cba29.chiitoo@gentoo
1 commit: cd69137c3a3db5d9699c681250b6c802257cba29
2 Author: Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 18 18:33:00 2019 +0000
4 Commit: Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 18 18:33:00 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=cd69137c
7
8 lxqt-base/lxqt-config: remove upstreamed touchpad patch redux
9
10 Remove the actual patch file, too, which somehow got left
11 lingering about after 91e8f038.
12
13 Package-Manager: Portage-2.3.61, Repoman-2.3.12
14 Signed-off-by: Jimi Huotari <chiitoo <AT> gentoo.org>
15
16 ...lxqt-config-0.14.0-make-touchpad-optional.patch | 206 ---------------------
17 1 file changed, 206 deletions(-)
18
19 diff --git a/lxqt-base/lxqt-config/files/lxqt-config-0.14.0-make-touchpad-optional.patch b/lxqt-base/lxqt-config/files/lxqt-config-0.14.0-make-touchpad-optional.patch
20 deleted file mode 100644
21 index 1090d6f2..00000000
22 --- a/lxqt-base/lxqt-config/files/lxqt-config-0.14.0-make-touchpad-optional.patch
23 +++ /dev/null
24 @@ -1,206 +0,0 @@
25 -From 0d4690c116a1775e4e129878d9f5a2f5f77c068f Mon Sep 17 00:00:00 2001
26 -From: Jimi Huotari <chiitoo@g.o>
27 -Date: Sun, 23 Dec 2018 23:30:57 +0200
28 -Subject: [PATCH] lxqt-config-input: make touchpad settings/dependencies
29 - optional
30 -
31 -Add a configure option for building the touchpad section of the
32 -'Keyboard and Mouse Settings' (enabled by default). This allows
33 -for reducing the dependencies on systems that do not have a use
34 -for them.
35 -
36 -Closes: https://github.com/lxqt/lxqt-config/issues/358
37 ----
38 - lxqt-config-input/CMakeLists.txt | 71 ++++++++++++++++++++-----
39 - lxqt-config-input/lxqt-config-input.cpp | 10 ++++
40 - lxqt-config-input/touchpad-config.h.in | 1 +
41 - 3 files changed, 69 insertions(+), 13 deletions(-)
42 - create mode 100644 lxqt-config-input/touchpad-config.h.in
43 -
44 -diff --git a/lxqt-config-input/CMakeLists.txt b/lxqt-config-input/CMakeLists.txt
45 -index a315e71..8c4c0fb 100644
46 ---- a/lxqt-config-input/CMakeLists.txt
47 -+++ b/lxqt-config-input/CMakeLists.txt
48 -@@ -1,24 +1,44 @@
49 - project(lxqt-config-input)
50 -
51 -+option(WITH_TOUCHPAD "Build touchpad settings" ON)
52 -+
53 - find_package(X11 REQUIRED)
54 --find_package(PkgConfig REQUIRED)
55 --pkg_check_modules(XORG_LIBINPUT REQUIRED xorg-libinput)
56 --pkg_check_modules(XORG_XI REQUIRED xi)
57 --pkg_check_modules(LIBUDEV REQUIRED libudev)
58 -
59 --include_directories(
60 -+if (WITH_TOUCHPAD)
61 -+ find_package(PkgConfig REQUIRED)
62 -+ pkg_check_modules(XORG_LIBINPUT REQUIRED xorg-libinput)
63 -+ pkg_check_modules(XORG_XI REQUIRED xi)
64 -+ pkg_check_modules(LIBUDEV REQUIRED libudev)
65 -+endif ()
66 -+
67 -+set(lxqt-config-input_INCS
68 - ${X11_INCLUDE_DIR}
69 -- ${XORG_LIBINPUT_INCLUDE_DIRS}
70 - "${CMAKE_CURRENT_SOURCE_DIR}/../liblxqt-config-cursor"
71 - )
72 -
73 -+if (WITH_TOUCHPAD)
74 -+ set(lxqt-config-input_INCS
75 -+ ${lxqt-config-input_INCS}
76 -+ ${XORG_LIBINPUT_INCLUDE_DIRS}
77 -+ )
78 -+endif ()
79 -+
80 -+include_directories(
81 -+ ${lxqt-config-input_INCS}
82 -+)
83 -+
84 -+configure_file(
85 -+ "${CMAKE_CURRENT_SOURCE_DIR}/touchpad-config.h.in"
86 -+ "${CMAKE_CURRENT_SOURCE_DIR}/touchpad-config.h"
87 -+ @ONLY
88 -+)
89 -+
90 - set(lxqt-config-input_HDRS
91 - keyboardconfig.h
92 - mouseconfig.h
93 - mouseconfig.h
94 - keyboardlayoutconfig.h
95 - selectkeyboardlayoutdialog.h
96 -- touchpadconfig.h
97 - )
98 -
99 - set(lxqt-config-input_SRCS
100 -@@ -27,8 +47,6 @@ set(lxqt-config-input_SRCS
101 - mouseconfig.cpp
102 - keyboardlayoutconfig.cpp
103 - selectkeyboardlayoutdialog.cpp
104 -- touchpadconfig.cpp
105 -- touchpaddevice.cpp
106 - )
107 -
108 - set(lxqt-config-input_UIS
109 -@@ -36,9 +54,26 @@ set(lxqt-config-input_UIS
110 - keyboardconfig.ui
111 - keyboardlayoutconfig.ui
112 - selectkeyboardlayoutdialog.ui
113 -- touchpadconfig.ui
114 - )
115 -
116 -+if (WITH_TOUCHPAD)
117 -+ set(lxqt-config-input_HDRS
118 -+ ${lxqt-config-input_HDRS}
119 -+ touchpadconfig.h
120 -+ )
121 -+
122 -+ set(lxqt-config-input_SRCS
123 -+ ${lxqt-config-input_SRCS}
124 -+ touchpadconfig.cpp
125 -+ touchpaddevice.cpp
126 -+ )
127 -+
128 -+ set(lxqt-config-input_UIS
129 -+ ${lxqt-config-input_UIS}
130 -+ touchpadconfig.ui
131 -+ )
132 -+endif ()
133 -+
134 - # Translations **********************************
135 - lxqt_translate_ts(QM_FILES
136 - UPDATE_TRANSLATIONS
137 -@@ -67,14 +102,24 @@ add_executable(lxqt-config-input
138 - ${QM_LOADER}
139 - )
140 -
141 --target_link_libraries(lxqt-config-input
142 -+set(lxqt-config-input_TLBS
143 - Qt5::Widgets
144 - Qt5::X11Extras
145 - ${X11_LIBRARIES}
146 -- ${X11_Xinput_LIB}
147 - lxqt
148 - lxqt-config-cursor
149 -- udev
150 -+)
151 -+
152 -+if (WITH_TOUCHPAD)
153 -+ set(lxqt-config-input_TLBS
154 -+ ${lxqt-config-input_TLBS}
155 -+ ${X11_Xinput_LIB}
156 -+ udev
157 -+ )
158 -+endif ()
159 -+
160 -+target_link_libraries(lxqt-config-input
161 -+ ${lxqt-config-input_TLBS}
162 - )
163 -
164 - set_target_properties(lxqt-config-input
165 -diff --git a/lxqt-config-input/lxqt-config-input.cpp b/lxqt-config-input/lxqt-config-input.cpp
166 -index 9aa3134..ec7fa73 100644
167 ---- a/lxqt-config-input/lxqt-config-input.cpp
168 -+++ b/lxqt-config-input/lxqt-config-input.cpp
169 -@@ -25,8 +25,12 @@
170 - #include "keyboardconfig.h"
171 - #include "../liblxqt-config-cursor/selectwnd.h"
172 - #include "keyboardlayoutconfig.h"
173 -+#include "touchpad-config.h"
174 -+
175 -+#ifdef WITH_TOUCHPAD
176 - #include "touchpadconfig.h"
177 - #include "touchpaddevice.h"
178 -+#endif
179 -
180 - int main(int argc, char** argv) {
181 - LXQt::SingleApplication app(argc, argv);
182 -@@ -41,9 +45,11 @@ int main(int argc, char** argv) {
183 - app.setApplicationVersion(VERINFO);
184 -
185 - dlgOptions.setCommandLine(&parser);
186 -+#ifdef WITH_TOUCHPAD
187 - QCommandLineOption loadOption("load-touchpad",
188 - app.tr("Load last touchpad settings."));
189 - parser.addOption(loadOption);
190 -+#endif
191 - parser.addVersionOption();
192 - parser.addHelpOption();
193 - parser.process(app);
194 -@@ -54,11 +60,13 @@ int main(int argc, char** argv) {
195 - configName = "session";
196 - LXQt::Settings settings(configName);
197 -
198 -+#ifdef WITH_TOUCHPAD
199 - bool loadLastTouchpadSettings = parser.isSet(loadOption);
200 - if (loadLastTouchpadSettings) {
201 - TouchpadDevice::loadSettings(&settings);
202 - return 0;
203 - }
204 -+#endif
205 -
206 - LXQt::ConfigDialog dlg(QObject::tr("Keyboard and Mouse Settings"), &settings);
207 - app.setActivationWindow(&dlg);
208 -@@ -80,10 +88,12 @@ int main(int argc, char** argv) {
209 - dlg.addPage(keyboardLayoutConfig, QObject::tr("Keyboard Layout"), "input-keyboard");
210 - QObject::connect(&dlg, SIGNAL(reset()), keyboardLayoutConfig, SLOT(reset()));
211 -
212 -+#ifdef WITH_TOUCHPAD
213 - TouchpadConfig* touchpadConfig = new TouchpadConfig(&settings, &dlg);
214 - dlg.addPage(touchpadConfig, QObject::tr("Mouse and Touchpad"), "input-tablet");
215 - QObject::connect(&dlg, &LXQt::ConfigDialog::reset,
216 - touchpadConfig, &TouchpadConfig::reset);
217 -+#endif
218 -
219 - dlg.setWindowIcon(QIcon::fromTheme("input-keyboard"));
220 -
221 -diff --git a/lxqt-config-input/touchpad-config.h.in b/lxqt-config-input/touchpad-config.h.in
222 -new file mode 100644
223 -index 0000000..d5bdab6
224 ---- /dev/null
225 -+++ b/lxqt-config-input/touchpad-config.h.in
226 -@@ -0,0 +1 @@
227 -+#cmakedefine WITH_TOUCHPAD @WITH_TOUCHPAD@
228 ---
229 -2.20.1
230 -