forked from stephanemagnenat/homebrew-kf5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kf5-konsole.rb
93 lines (82 loc) · 2.92 KB
/
kf5-konsole.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
require "formula"
class Kf5Konsole < Formula
homepage "http://www.kde.org/"
url "http://download.kde.org/stable/applications/15.08.1/src/konsole-15.08.1.tar.xz"
sha1 ""
head "git://anongit.kde.org/konsole.git"
depends_on "cmake" => :build
depends_on "haraldf/kf5/kf5-extra-cmake-modules" => :build
depends_on "qt5" => "with-d-bus"
depends_on "haraldf/kf5/kf5-kdbusaddons"
depends_on "haraldf/kf5/kf5-kcoreaddons"
depends_on "haraldf/kf5/kf5-kconfig"
depends_on "haraldf/kf5/kf5-kcodecs"
depends_on "haraldf/kf5/kf5-ki18n"
depends_on "haraldf/kf5/kf5-kservice"
depends_on "haraldf/kf5/kf5-kwidgetsaddons"
depends_on "haraldf/kf5/kf5-kwindowsystem"
depends_on "haraldf/kf5/kf5-kcrash"
depends_on "haraldf/kf5/kf5-sonnet"
depends_on "haraldf/kf5/kf5-karchive"
depends_on "haraldf/kf5/kf5-kitemmodels"
depends_on "haraldf/kf5/kf5-kauth"
depends_on "haraldf/kf5/kf5-kguiaddons"
depends_on "haraldf/kf5/kf5-kconfigwidgets"
depends_on "haraldf/kf5/kf5-kitemviews"
depends_on "haraldf/kf5/kf5-knotifications"
depends_on "haraldf/kf5/kf5-kjs"
depends_on "haraldf/kf5/kf5-kpty"
depends_on "haraldf/kf5/kf5-kjobwidgets"
depends_on "haraldf/kf5/kf5-kiconthemes"
depends_on "haraldf/kf5/kf5-kcompletion"
depends_on "haraldf/kf5/kf5-ktextwidgets"
depends_on "haraldf/kf5/kf5-kglobalaccel"
depends_on "haraldf/kf5/kf5-attica"
depends_on "haraldf/kf5/kf5-kxmlgui"
depends_on "haraldf/kf5/kf5-solid"
depends_on "haraldf/kf5/kf5-kwallet"
depends_on "haraldf/kf5/kf5-kbookmarks"
depends_on "haraldf/kf5/kf5-kio"
depends_on "haraldf/kf5/kf5-kunitconversion"
depends_on "haraldf/kf5/kf5-knotifyconfig"
depends_on "haraldf/kf5/kf5-kparts"
depends_on "haraldf/kf5/kf5-kross"
depends_on "haraldf/kf5/kf5-kinit"
depends_on "haraldf/kf5/kf5-kdelibs4support"
def patches
DATA
end
def install
args = std_cmake_args
args << "-DCMAKE_CXX_FLAGS='-D_DARWIN_C_SOURCE'"
args << "-DCMAKE_INSTALL_BUNDLEDIR=/Applications/KDE"
system "cmake", ".", *args
system "make", "install"
prefix.install "install_manifest.txt"
end
end
__END__
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a3d9a1c..793e586 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,6 +41,6 @@ include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
add_subdirectory( src )
add_subdirectory( data )
add_subdirectory( desktop )
-add_subdirectory( doc/manual )
+#add_subdirectory( doc/manual )
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2ff6f37..86f86e7 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -138,6 +138,10 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
#kinfo_getfile() is in libutil
list(APPEND konsole_LIBS util)
endif()
+if(APPLE)
+ # OSX still requires kde_file.h
+ list(APPEND konsole_LIBS KF5::KDELibs4Support)
+endif()
### Konsole Application