homebrew-core/Formula/icu4c.rb
Daniel Trebbien 82ae96f55c Update icu4c to 49.1.2
Fixes Homebrew/homebrew#12701, fixes Homebrew/homebrew#13185.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-07-22 16:16:32 +01:00

34 lines
931 B
Ruby

require 'formula'
class Icu4c < Formula
homepage 'http://site.icu-project.org/'
url 'http://download.icu-project.org/files/icu4c/49.1.2/icu4c-49_1_2-src.tgz'
version '49.1.2'
md5 'bbc609fe5237202d7abf016141012a45'
bottle do
sha1 '528b8bec1b821d5503eb98b565840d8a3aeca63e' => :lion
sha1 'c77579349187ee0cec5842f71aea2a446c770db7' => :snowleopard
end
keg_only "Conflicts; see: https://github.com/mxcl/homebrew/issues/issue/167"
def options
[
["--universal", "Build universal binaries."]
]
end
def install
ENV.universal_binary if ARGV.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