forked from stephanemagnenat/homebrew-kf5
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathkf5-kauth.rb
37 lines (29 loc) · 1.14 KB
/
kf5-kauth.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
require "formula"
class Kf5Kauth < Formula
url "http://download.kde.org/stable/frameworks/5.38/kauth-5.38.0.tar.xz"
sha256 "279af9593b3bf8b2730730877ff865944839e08d21855ea25864934fe372de8a"
homepage "http://www.kde.org/"
head "git://anongit.kde.org/kauth.git"
depends_on "cmake" => :build
depends_on "chigraph/kf5/kf5-extra-cmake-modules" => :build
depends_on "qt"
depends_on "chigraph/kf5/kf5-kcoreaddons"
bottle do
root_url "https://dl.chigraph.io/dependencies/darwin/brew"
sha256 "1354a33a896478f2be277b6e36f2e76f7e2e0c6c7c481013eeed582bea5c92ff" => :sierra
end
def install
args = std_cmake_args
system "cmake", ".", *args
system "make", "install"
prefix.install "install_manifest.txt"
# mkdir_p "#{HOMEBREW_PREFIX}/lib/kde5/libexec"
# ln_sf "#{lib}/kde5/libexec/kauth-policy-gen.app", "#{HOMEBREW_PREFIX}/lib/kde5/libexec/"
end
def caveats; <<-EOS.undent
You need to take some manual steps in order to make this formula work:
mkdir -p "#{HOMEBREW_PREFIX}/lib/kde5/libexec"
ln -sf "#{lib}/kde5/libexec/kauth-policy-gen.app" "#{HOMEBREW_PREFIX}/lib/kde5/libexec/"
EOS
end
end