homebrew-core/Formula/icu4c.rb

24 lines
638 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
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'
2012-08-10 05:10:50 +00:00
option :universal
def install
2012-08-10 05:10:50 +00:00
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