-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathicu4c@58.1.rb
40 lines (32 loc) · 1.34 KB
/
icu4c@58.1.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
class Icu4cAT581 < Formula
desc "C/C++ and Java libraries for Unicode and globalization"
homepage "http://site.icu-project.org/"
url "https://ssl.icu-project.org/files/icu4c/58.1/icu4c-58_1-src.tgz"
mirror "https://nuxi.nl/distfiles/third_party/icu4c-58_1-src.tgz"
version "58.1"
sha256 "0eb46ba3746a9c2092c8ad347a29b1a1b4941144772d13a88667a7b11ea30309"
head "https://ssl.icu-project.org/repos/icu/icu/trunk/", :using => :svn
bottle do
cellar :any
sha256 "e48b889957aec71bcd3f437e13489a17ba39bdd71ff38a18d5858c48bfd404ec" => :sierra
sha256 "c244860b11f70115cecc19a81566232de900dd2f9d049555c77db3744087ca2a" => :el_capitan
sha256 "1a18b7c039316fee2376565085c71cb141cae0e5a9680c69b2ca0e8e6d32ce58" => :yosemite
sha256 "cadba844e31de5cf9a1f9d05dc8671662cfb52610c7ce92f1fef6e3617dee2ea" => :mavericks
end
keg_only :provided_by_macos, "macOS provides libicucore.dylib (but nothing else)."
option :universal
option :cxx11
def install
ENV.universal_binary if build.universal?
ENV.cxx11 if build.cxx11?
args = %W[--prefix=#{prefix} --disable-samples --disable-tests --enable-static --with-library-bits=64]
cd "source" do
system "./configure", *args
system "make"
system "make", "install"
end
end
test do
system "#{bin}/gendict", "--uchars", "/usr/share/dict/words", "dict"
end
end