forked from stephanemagnenat/homebrew-kf5
-
Notifications
You must be signed in to change notification settings - Fork 3
/
kf5-ki18n.rb
30 lines (23 loc) · 875 Bytes
/
kf5-ki18n.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
require "formula"
class Kf5Ki18n < Formula
url "http://download.kde.org/stable/frameworks/5.38/ki18n-5.38.0.tar.xz"
sha256 "240ccf22a65cf85da900c88afceac8bedc40b71a4d19bad526c03aa285cc2a7d"
homepage "http://www.kde.org/"
head "git://anongit.kde.org/ki18n.git"
depends_on "cmake" => :build
depends_on "chigraph/kf5/kf5-extra-cmake-modules" => :build
depends_on "gettext" => :build
depends_on "qt"
bottle do
root_url "https://dl.chigraph.io/dependencies/darwin/brew"
sha256 "25c2397cb13e0ea657ceb8d57e070813a4d0f3d11558b442d9a30c1f997a3c74" => :sierra
end
def install
args = std_cmake_args
args << "-DCMAKE_SHARED_LINKER_FLAGS=-lintl" # cmake thinks libintl is part of libc
args << "-DCMAKE_EXE_LINKER_FLAGS=-lintl"
system "cmake", ".", *args
system "make", "install"
prefix.install "install_manifest.txt"
end
end