forked from stephanemagnenat/homebrew-kf5
-
Notifications
You must be signed in to change notification settings - Fork 3
/
kf5-kinit.rb
54 lines (43 loc) · 1.63 KB
/
kf5-kinit.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
require "formula"
class Kf5Kinit < Formula
url "http://download.kde.org/stable/frameworks/5.38/kinit-5.38.0.tar.xz"
sha256 "ae49e0a3cf8a86868afb57bfd820c65be60939e4a79d39e54608fcc9f307914c"
homepage "http://www.kde.org/"
head "git://anongit.kde.org/kinit.git"
depends_on "cmake" => :build
depends_on "chigraph/kf5/kf5-extra-cmake-modules" => :build
depends_on "qt"
depends_on "chigraph/kf5/kf5-kio"
bottle do
root_url "https://dl.chigraph.io/dependencies/darwin/brew"
sha256 "45954b164085363bf957b5e700547d7a7366b4837bdaefc747e4496ca92fa447" => :sierra
end
patch :DATA
def install
args = std_cmake_args
system "cmake", ".", *args
system "make", "install"
# mkdir_p "#{HOMEBREW_PREFIX}/lib/kde5/libexec"
# ln_sf "#{lib}/kde5/libexec/klauncher", "#{HOMEBREW_PREFIX}/lib/kde5/libexec/"
prefix.install "install_manifest.txt"
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/klauncher" "#{HOMEBREW_PREFIX}/lib/kde5/libexec/"
EOS
end
end
__END__
diff --git a/src/kdeinit/CMakeLists.txt b/src/kdeinit/CMakeLists.txt
index f00dd77..6c5f593 100644
--- a/src/kdeinit/CMakeLists.txt
+++ b/src/kdeinit/CMakeLists.txt
@@ -3,6 +3,7 @@ if (WIN32)
set(kdeinit_LIBS psapi)
elseif (APPLE)
set(kdeinit_SRCS kinit.cpp kinit_mac.mm proctitle.cpp ../klauncher_cmds.cpp )
+ set_source_files_properties(kinit_mac.mm PROPERTIES COMPILE_DEFINITIONS QT_NO_EXCEPTIONS)
set(kdeinit_LIBS "")
else ()
set(kdeinit_SRCS kinit.cpp proctitle.cpp ../klauncher_cmds.cpp )