forked from stephanemagnenat/homebrew-kf5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kf5-kate.rb
49 lines (38 loc) · 1.46 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
require "formula"
class Kf5Kate < Formula
url "http://download.kde.org/stable/applications/15.08.2/src/kate-15.08.2.tar.xz"
sha256 "c804ee703667960779aabce9d4ede23d66d36e28479f44a1c0f151165c91430f"
homepage "http://www.kde.org/"
head "git://anongit.kde.org/kate.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-kactivities"
depends_on "haraldf/kf5/kf5-kconfig"
depends_on "haraldf/kf5/kf5-kdoctools"
depends_on "haraldf/kf5/kf5-kguiaddons"
depends_on "haraldf/kf5/kf5-ki18n"
depends_on "haraldf/kf5/kf5-kiconthemes"
depends_on "haraldf/kf5/kf5-kinit"
depends_on "haraldf/kf5/kf5-kjobwidgets"
depends_on "haraldf/kf5/kf5-kio"
depends_on "haraldf/kf5/kf5-kparts"
depends_on "haraldf/kf5/kf5-ktexteditor"
depends_on "haraldf/kf5/kf5-kwindowsystem"
depends_on "haraldf/kf5/kf5-kxmlgui"
depends_on "haraldf/kf5/kf5-kitemmodels"
depends_on "haraldf/kf5/kf5-knewstuff"
depends_on "haraldf/kf5/kf5-kwallet"
depends_on "kf5-breeze-icons"
def install
args = std_cmake_args
system "cmake", *args, "."
system "make", "install"
prefix.install "install_manifest.txt"
#fix icons to work as part of 'breeze' theme
mv share/"icons/hicolor", share/"icons/breeze"
# remove icons that conflict with breeze theme before linking
Dir.glob(share/"icons/breeze/**/kate.*") { |icon| File.delete(icon) }
end
end
__END__