forked from stephanemagnenat/homebrew-kf5
-
Notifications
You must be signed in to change notification settings - Fork 3
/
kf5-kconfig.rb
55 lines (43 loc) · 1.79 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
44
45
46
47
48
49
50
51
52
53
54
55
require "formula"
class Kf5Kconfig < Formula
url "http://download.kde.org/stable/frameworks/5.38/kconfig-5.38.0.tar.xz"
sha256 "79744af26c90b78f01e065049daea0a6470f0d8b8e71334652179bac1b12243a"
homepage "http://www.kde.org/"
head "git://anongit.kde.org/kconfig.git"
depends_on "cmake" => :build
depends_on "chigraph/kf5/kf5-extra-cmake-modules" => :build
depends_on "qt"
def patches
DATA
end
bottle do
root_url "http://dl.chigraph.io/dependencies/darwin/brew"
sha256 "07f4730913cb7606a5b2e6171b1ac704dbddafa7af7f39c510af4e9b8b30e41d" => :sierra
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
def caveats; <<-EOS.undent
You need to take some manual steps in order to make this formula work:
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/"
EOS
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})