File: Allow-packagers-set-kconfig_compiler-install-dir.patch

package info (click to toggle)
kconfig 5.116.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,072 kB
  • sloc: cpp: 17,783; xml: 73; perl: 63; sh: 14; makefile: 7
file content (32 lines) | stat: -rw-r--r-- 1,256 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Maximiliano Curia <maxy@gnuservers.com.ar>
Date: Thu, 25 Jan 2018 11:02:56 -0300
Subject: Allow packagers set kconfig_compiler install dir

Origin: Debian
Bug-Debian: https://bugs.debian.org/887452
Last-Update: 2018-01-25
---
 CMakeLists.txt                      | 3 +++
 src/kconfig_compiler/CMakeLists.txt | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -73,6 +73,9 @@ endif()
 include (ECMPoQmTools)
 ecm_install_po_files_as_qm(poqm)
 
+# allow kconfig_compiler install dir to be set as a configure argument
+set(KCONFIG_COMPILER_INSTALL_DIR "${KDE_INSTALL_LIBEXECDIR_KF}" CACHE STRING
+   "Set directory for kconfig compiler tool")
 
 # create a Config.cmake and a ConfigVersion.cmake file and install them
 set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5Config")
--- a/src/kconfig_compiler/CMakeLists.txt
+++ b/src/kconfig_compiler/CMakeLists.txt
@@ -25,4 +25,4 @@ target_link_libraries(kconfig_compiler Q
 
 ecm_mark_nongui_executable(kconfig_compiler)
 
-install(TARGETS kconfig_compiler EXPORT KF5ConfigCompilerTargets DESTINATION ${KDE_INSTALL_LIBEXECDIR_KF})
+install(TARGETS kconfig_compiler EXPORT KF5ConfigCompilerTargets DESTINATION ${KCONFIG_COMPILER_INSTALL_DIR})