forked from stephanemagnenat/homebrew-kf5
-
Notifications
You must be signed in to change notification settings - Fork 3
/
kf5-kate.rb
58 lines (48 loc) · 2.02 KB
/
kf5-kate.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
class Kf5Kate < Formula
desc "Advanced KDE Text Editor"
homepage "http://kate-editor.org"
url "https://download.kde.org/stable/applications/17.08.0/src/kate-17.08.0.tar.xz"
sha256 "34eee6c384e2c2776c7d0ab65e7217e730cdbdecb82578c9dc90380cb82affd2"
head "git://anongit.kde.org/kate.git"
depends_on "cmake" => :build
depends_on "chigraph/kf5/kf5-extra-cmake-modules" => :build
depends_on "qt"
depends_on "chigraph/kf5/kf5-kactivities"
depends_on "chigraph/kf5/kf5-kconfig"
depends_on "chigraph/kf5/kf5-kdoctools"
depends_on "chigraph/kf5/kf5-kguiaddons"
depends_on "chigraph/kf5/kf5-ki18n"
depends_on "chigraph/kf5/kf5-kiconthemes"
depends_on "chigraph/kf5/kf5-kinit"
depends_on "chigraph/kf5/kf5-kjobwidgets"
depends_on "chigraph/kf5/kf5-kio"
depends_on "chigraph/kf5/kf5-kparts"
depends_on "chigraph/kf5/kf5-ktexteditor"
depends_on "chigraph/kf5/kf5-kwindowsystem"
depends_on "chigraph/kf5/kf5-kxmlgui"
depends_on "chigraph/kf5/kf5-kitemmodels"
depends_on "chigraph/kf5/kf5-knewstuff"
depends_on "chigraph/kf5/kf5-kwallet"
depends_on "chigraph/kf5/kf5-breeze-icons"
bottle do
root_url "https://dl.chigraph.io/dependencies/darwin/brew"
sha256 "669a66219f59267adf3540df5666e678d6e1ae1cac1adbfdefa6ec47e40c6159" => :sierra
end
def install
args = std_cmake_args
system "cmake", ".", *args
system "make", "install"
prefix.install "install_manifest.txt"
# mkdir_p "#{Etc.getpwuid.dir}/Library/Application Support/kate"
# system "ln", "-sf", "#{HOMEBREW_PREFIX}/share/icons/breeze/breeze-icons.rcc", "#{Etc.getpwuid.dir}/Library/Application Support/kate/icontheme.rcc"
end
def caveats; <<-EOS.undent
You need to take some manual steps in order to make this formula work:
mkdir -p "~/Library/Application Support/kate"
ln -sf "#{HOMEBREW_PREFIX}/share/icons/breeze/breeze-icons.rcc" "~/Library/Application Support/kate/icontheme.rcc"
EOS
end
test do
assert `/Applications/KDE/kate.app/Contents/MacOS/kate --help | grep -- --help` =~ /--help/
end
end