forked from stephanemagnenat/homebrew-kf5
-
Notifications
You must be signed in to change notification settings - Fork 3
/
kf5-extra-cmake-modules.rb
35 lines (28 loc) · 1.26 KB
/
kf5-extra-cmake-modules.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 Kf5ExtraCmakeModules < Formula
url "http://download.kde.org/stable/frameworks/5.38/extra-cmake-modules-5.38.0.tar.xz"
sha256 "6188a8ac8d799439204f69a1eb229431fc9f196790b88d6fb72bb3d57edb2332"
homepage "http://www.kde.org/"
head "git://anongit.kde.org/extra-cmake-modules"
depends_on "cmake" => :build
bottle do
root_url "https://dl.chigraph.io/dependencies/darwin/brew"
cellar :any_skip_relocation
sha256 "d6d47f60838b5c6a604d6aa6fd916d56a0c468f2964f0a752474247cd016911d" => :sierra
end
def install
system "cmake", ".", *std_cmake_args
system "make", "install"
prefix.install "install_manifest.txt"
### Hack - QStandardDirs only looks in $HOME/Library/Application Support/, but kf5 installs
### to share. Make a symlink
# ln_sf Dir["#{HOMEBREW_PREFIX}/share/kf5"], "#{Etc.getpwuid.dir}/Library/Application Support/"
# ln_sf Dir["#{HOMEBREW_PREFIX}/share/kxmlgui5"], "#{Etc.getpwuid.dir}/Library/Application Support/"
end
def caveats; <<-EOS.undent
You need to take some manual steps in order to make this formula work:
ln -sf "#{HOMEBREW_PREFIX}/share/kf5" "~/Library/Application Support/"
ln -sf "#{HOMEBREW_PREFIX}/share/kxmlgui5" "~/Library/Application Support/"
EOS
end
end