forked from stephanemagnenat/homebrew-kf5
-
Notifications
You must be signed in to change notification settings - Fork 3
/
kf5-ktexteditor.rb
35 lines (28 loc) · 1.11 KB
/
kf5-ktexteditor.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
require "formula"
class Kf5Ktexteditor < Formula
url "http://download.kde.org/stable/frameworks/5.38/ktexteditor-5.38.0.tar.xz"
sha256 "31e7b3118a2cb56176d85538ef43f41842add3ef5c881786a7db7122c37ebea4"
homepage "http://www.kde.org/"
head "git://anongit.kde.org/ktexteditor.git"
depends_on "cmake" => :build
depends_on "chigraph/kf5/kf5-extra-cmake-modules" => :build
depends_on "qt"
depends_on "chigraph/kf5/kf5-kparts"
depends_on "chigraph/kf5/kf5-syntax-highlighting"
bottle do
root_url "https://dl.chigraph.io/dependencies/darwin/brew"
sha256 "9c23e4c0c6d1b368d14791b0158e0852608bcd87afd468f920fe52cc627b5d2e" => :sierra
end
def install
# ln_sf Dir["#{HOMEBREW_PREFIX}/share/kservicetypes5"], "#{Etc.getpwuid.dir}/Library/Application Support/"
args = std_cmake_args
system "cmake", ".", *args
system "make", "install"
prefix.install "install_manifest.txt"
end
def caveats; <<-EOS.undent
You need to take some manual steps in order to make this formula work:
ln -sf "#{HOMEBREW_PREFIX}/share/kservicetypes5" "~/Library/Application Support/"
EOS
end
end