homebrew-core/Formula/icu4c.rb

34 lines
1,005 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/"
head "http://source.icu-project.org/repos/icu/icu/trunk/", :using => :svn
2014-10-14 06:15:32 +00:00
url "http://download.icu-project.org/files/icu4c/54.1/icu4c-54_1-src.tgz"
version "54.1"
sha1 "8c752490bbf31cea26e20246430cee67d48abe34"
2012-12-01 13:21:30 +00:00
2013-10-11 07:53:47 +00:00
bottle do
2014-10-16 08:33:14 +00:00
sha1 "984f992aa1e6e35866aa8ed28da06e6d3e6ce29d" => :mavericks
sha1 "2d6234ded70b57db9f8bc18a956dec3a9666491d" => :mountain_lion
sha1 "c7de3cc30819af40dbbc185d9cd9dd299ea3dc5a" => :lion
2013-10-11 07:53:47 +00:00
end
keg_only :provided_by_osx, "OS X provides libicucore.dylib (but nothing else)."
2012-11-18 16:57:18 +00:00
2012-08-10 05:10:50 +00:00
option :universal
option :cxx11
def install
2012-08-10 05:10:50 +00:00
ENV.universal_binary if build.universal?
ENV.cxx11 if build.cxx11?
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