1 |
commit: e8512e4a1f5a9e2937343ed9710d0381d2a52ae4 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 24 20:45:47 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 24 20:49:18 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=e8512e4a |
7 |
|
8 |
kde-plasma/xembed-sni-proxy: Rebase standalone-patch on current HEAD |
9 |
|
10 |
Reported-by: Duncan <1i5t5.duncan <AT> cox.net> |
11 |
Closes: https://bugs.gentoo.org/744181 |
12 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
.../xembed-sni-proxy-5.20.80-standalone.patch | 60 ++++++++++++++++++++++ |
16 |
.../xembed-sni-proxy/xembed-sni-proxy-9999.ebuild | 2 +- |
17 |
2 files changed, 61 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/kde-plasma/xembed-sni-proxy/files/xembed-sni-proxy-5.20.80-standalone.patch b/kde-plasma/xembed-sni-proxy/files/xembed-sni-proxy-5.20.80-standalone.patch |
20 |
new file mode 100644 |
21 |
index 0000000000..a1f09aa93c |
22 |
--- /dev/null |
23 |
+++ b/kde-plasma/xembed-sni-proxy/files/xembed-sni-proxy-5.20.80-standalone.patch |
24 |
@@ -0,0 +1,60 @@ |
25 |
+From da1c5074e390b2ceca3f632f14adfba55def45ab Mon Sep 17 00:00:00 2001 |
26 |
+From: Andreas Sturmlechner <asturm@g.o> |
27 |
+Date: Thu, 24 Sep 2020 22:34:28 +0200 |
28 |
+Subject: [PATCH] xembed-sni-proxy: Allow standalone build |
29 |
+ |
30 |
+--- |
31 |
+ CMakeLists.txt | 36 +++++++++++++++++++++++++++++++++ |
32 |
+ 1 file changed, 36 insertions(+) |
33 |
+ |
34 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
35 |
+index 443ff07c1..ba15b9ea5 100644 |
36 |
+--- a/CMakeLists.txt |
37 |
++++ b/CMakeLists.txt |
38 |
+@@ -1,3 +1,35 @@ |
39 |
++project(xembed-sni-proxy) |
40 |
++ |
41 |
++if(${CMAKE_SOURCE_DIR} STREQUAL ${xembed-sni-proxy_SOURCE_DIR}) |
42 |
++ set(PROJECT_VERSION "GENTOO_PV") |
43 |
++ set(PROJECT_VERSION_MAJOR 5) |
44 |
++ |
45 |
++ cmake_minimum_required(VERSION 3.0) |
46 |
++ |
47 |
++ set(QT_MIN_VERSION "5.15.0") |
48 |
++ set(KF5_MIN_VERSION "5.74") |
49 |
++ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core DBus X11Extras) |
50 |
++ find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE) |
51 |
++ set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}) |
52 |
++ |
53 |
++ include(KDEInstallDirs) |
54 |
++ include(KDECMakeSettings) |
55 |
++ include(KDECompilerSettings NO_POLICY_SCOPE) |
56 |
++ include(FeatureSummary) |
57 |
++ include(ECMQtDeclareLoggingCategory) |
58 |
++ include(ECMConfiguredInstall) |
59 |
++ |
60 |
++ find_package(KF5WindowSystem ${KF5_MIN_VERSION} REQUIRED) |
61 |
++ find_package(X11 REQUIRED) |
62 |
++ find_package(XCB MODULE REQUIRED COMPONENTS XCB RANDR) |
63 |
++ set_package_properties(XCB PROPERTIES TYPE REQUIRED) |
64 |
++ |
65 |
++ configure_file(../config-X11.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-X11.h) |
66 |
++else() |
67 |
++ set(PROJECT_VERSION "5.20.80") |
68 |
++ set(PROJECT_VERSION_MAJOR 5) |
69 |
++endif() |
70 |
++ |
71 |
+ add_definitions(-DQT_NO_CAST_TO_ASCII |
72 |
+ -DQT_NO_CAST_FROM_ASCII |
73 |
+ -DQT_NO_URL_CAST_FROM_STRING |
74 |
+@@ -65,3 +97,7 @@ install(TARGETS xembedsniproxy ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) |
75 |
+ install(FILES xembedsniproxy.desktop DESTINATION ${KDE_INSTALL_AUTOSTARTDIR}) |
76 |
+ |
77 |
+ ecm_install_configured_files(INPUT plasma-xembedsniproxy.service.in @ONLY DESTINATION ${SYSTEMD_USER_UNIT_INSTALL_DIR}) |
78 |
++ |
79 |
++if ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") |
80 |
++ feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) |
81 |
++endif() |
82 |
+-- |
83 |
+2.28.0 |
84 |
+ |
85 |
|
86 |
diff --git a/kde-plasma/xembed-sni-proxy/xembed-sni-proxy-9999.ebuild b/kde-plasma/xembed-sni-proxy/xembed-sni-proxy-9999.ebuild |
87 |
index cc6b724e5f..1ab3a25559 100644 |
88 |
--- a/kde-plasma/xembed-sni-proxy/xembed-sni-proxy-9999.ebuild |
89 |
+++ b/kde-plasma/xembed-sni-proxy/xembed-sni-proxy-9999.ebuild |
90 |
@@ -34,7 +34,7 @@ RDEPEND="${DEPEND} |
91 |
|
92 |
S="${S}/${PN}" |
93 |
|
94 |
-PATCHES=( "${FILESDIR}/${PN}-5.14.90-standalone.patch" ) |
95 |
+PATCHES=( "${FILESDIR}/${PN}-5.20.80-standalone.patch" ) |
96 |
|
97 |
src_prepare() { |
98 |
cmake_src_prepare |