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-07-22 15:10:44 +00:00
|
|
|
url 'http://download.icu-project.org/files/icu4c/49.1.2/icu4c-49_1_2-src.tgz'
|
2012-08-27 14:49:14 +00:00
|
|
|
version '49.1.2'
|
2012-09-04 03:28:30 +00:00
|
|
|
sha1 'd8cee6d2b2a91a0da7464acd97a5b7b462d93225'
|
2009-12-02 11:38:57 +00:00
|
|
|
|
2012-01-23 04:32:15 +00:00
|
|
|
bottle do
|
2012-08-26 20:11:24 +00:00
|
|
|
sha1 '9e424ea5de5c5847b8a600078f9494f42d7f6168' => :mountainlion
|
2012-07-22 15:10:44 +00:00
|
|
|
sha1 '528b8bec1b821d5503eb98b565840d8a3aeca63e' => :lion
|
|
|
|
sha1 'c77579349187ee0cec5842f71aea2a446c770db7' => :snowleopard
|
2012-01-23 04:32:15 +00:00
|
|
|
end
|
2011-10-05 20:51:01 +00:00
|
|
|
|
2010-11-10 18:16:28 +00:00
|
|
|
keg_only "Conflicts; see: https://github.com/mxcl/homebrew/issues/issue/167"
|
2009-12-02 11:38:57 +00:00
|
|
|
|
2012-08-10 05:10:50 +00:00
|
|
|
option :universal
|
2012-02-25 09:12:46 +00:00
|
|
|
|
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
|