2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-01 14:17:44 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Icu4c < Formula
|
2010-07-25 20:04:27 +00:00
|
|
|
homepage 'http://site.icu-project.org/'
|
2012-11-07 05:26:20 +00:00
|
|
|
url 'http://download.icu-project.org/files/icu4c/50.1/icu4c-50_1-src.tgz'
|
|
|
|
version '50.1'
|
|
|
|
sha1 '9a3369c00a8be8eff935d2893849ad2eb246c0ef'
|
2009-12-02 11:38:57 +00:00
|
|
|
|
2012-12-01 13:21:30 +00:00
|
|
|
bottle do
|
2013-03-03 23:33:04 +00:00
|
|
|
revision 2
|
|
|
|
sha1 '34c2ab788c5ca698c1902d3d6c38db0461f8b100' => :mountain_lion
|
|
|
|
sha1 '899afa2267843f7204583884885f2c05f8189ddc' => :lion
|
|
|
|
sha1 'a54cbdd33dbdcb0fd8ed2441580e91e8ff114640' => :snow_leopard
|
2012-12-01 13:21:30 +00:00
|
|
|
end
|
|
|
|
|
2012-11-29 06:20:31 +00:00
|
|
|
keg_only "Conflicts; see: https://github.com/mxcl/homebrew/issues/issue/167"
|
2012-11-18 16:57:18 +00:00
|
|
|
|
2012-08-10 05:10:50 +00:00
|
|
|
option :universal
|
2012-02-25 09:12:46 +00:00
|
|
|
|
2012-11-29 06:20:31 +00:00
|
|
|
fails_with :clang do
|
2013-02-05 22:03:22 +00:00
|
|
|
build 425
|
2012-11-29 06:20:31 +00:00
|
|
|
cause "Icu will turn on C++11 mode when built with clang, which causes incompatibilities."
|
|
|
|
end
|
|
|
|
|
2009-09-01 14:17:44 +00:00
|
|
|
def install
|
2012-08-10 05:10:50 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2012-02-25 09:12:46 +00:00
|
|
|
|
2010-07-28 19:32:40 +00:00
|
|
|
ENV.append "LDFLAGS", "-headerpad_max_install_names"
|
2012-07-22 15:10:44 +00:00
|
|
|
args = ["--prefix=#{prefix}", "--disable-samples", "--disable-tests", "--enable-static"]
|
2012-02-21 06:04:21 +00:00
|
|
|
args << "--with-library-bits=64" if MacOS.prefer_64_bit?
|
|
|
|
cd "source" do
|
|
|
|
system "./configure", *args
|
2009-09-01 14:17:44 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|