blob: b4f6b0b7173455c15a2882326b72ba7dea44a7a3 (
plain)
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 Icu4c < Formula
homepage 'http://site.icu-project.org/'
url 'http://download.icu-project.org/files/icu4c/50.1/icu4c-50_1-src.tgz'
version '50.1'
sha1 '9a3369c00a8be8eff935d2893849ad2eb246c0ef'
bottle do
version 1
sha1 '0ec81beb069eeea0e3c2fb5a1193607084de2a7f' => :mountainlion
sha1 '280d2010c9f467a849366b0b20e5368297333afd' => :lion
sha1 '3789775bb60069eb62abc972d63c7f3baffe2883' => :snowleopard
end
keg_only "Conflicts; see: https://github.com/mxcl/homebrew/issues/issue/167"
option :universal
fails_with :clang do
build 421
cause "Icu will turn on C++11 mode when built with clang, which causes incompatibilities."
end
def install
ENV.universal_binary if build.universal?
ENV.append "LDFLAGS", "-headerpad_max_install_names"
args = ["--prefix=#{prefix}", "--disable-samples", "--disable-tests", "--enable-static"]
args << "--with-library-bits=64" if MacOS.prefer_64_bit?
cd "source" do
system "./configure", *args
system "make"
system "make install"
end
end
end
|