forked from stephanemagnenat/homebrew-kf5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kf5-kconfig.rb
43 lines (32 loc) · 1.26 KB
/
kf5-kconfig.rb
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
33
34
35
36
37
38
39
40
41
42
43
require "formula"
class Kf5Kconfig < Formula
url "http://download.kde.org/stable/frameworks/5.15/kconfig-5.15.0.tar.xz"
sha1 "d3fd38117a4094fc67ace3848379f3c143e5a330"
homepage "http://www.kde.org/"
head 'git://anongit.kde.org/kconfig.git'
depends_on "cmake" => :build
depends_on "haraldf/kf5/kf5-extra-cmake-modules" => :build
depends_on "qt5" => "with-d-bus"
def patches
DATA
end
def install
args = std_cmake_args
system "cmake", ".", *args
system "make", "install"
prefix.install "install_manifest.txt"
mkdir_p "#{HOMEBREW_PREFIX}/lib/kde5/libexec"
ln_sf "#{lib}/kde5/libexec/kconf_update", "#{HOMEBREW_PREFIX}/lib/kde5/libexec/"
ln_sf "#{lib}/kde5/libexec/kconfig_compiler_kf5", "#{HOMEBREW_PREFIX}/lib/kde5/libexec/"
end
end
__END__
diff --git a/src/kconfig_compiler/CMakeLists.txt b/src/kconfig_compiler/CMakeLists.txt
index 368a4d8..004a649 100644
--- a/src/kconfig_compiler/CMakeLists.txt
+++ b/src/kconfig_compiler/CMakeLists.txt
@@ -20,4 +20,6 @@ find_package(Qt5Xml ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE)
target_link_libraries(kconfig_compiler Qt5::Xml)
+ecm_mark_nongui_executable(kconfig_compiler)
+
install(TARGETS kconfig_compiler EXPORT KF5ConfigCompilerTargets DESTINATION ${KDE_INSTALL_LIBEXECDIR_KF5})