2011-03-10 05:11:03 +00:00
|
|
|
class Icu4c < Formula
|
2014-08-08 04:12:11 +00:00
|
|
|
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-21 20:14:11 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "244dbb217c95a79f87a35df70aca493a05c9ff39" => :yosemite
|
|
|
|
sha1 "a963404c60a1de000c3e9d7478f6318e8f3c9291" => :mavericks
|
|
|
|
sha1 "fb48ee8a8fa5aa9537d4e594178bc7e62689156a" => :mountain_lion
|
2013-10-11 07:53:47 +00:00
|
|
|
end
|
|
|
|
|
2014-10-16 06:09:45 +00:00
|
|
|
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
|
2013-10-12 08:18:01 +00:00
|
|
|
option :cxx11
|
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?
|
2013-10-12 08:18:01 +00:00
|
|
|
ENV.cxx11 if build.cxx11?
|
2012-02-25 09:12:46 +00:00
|
|
|
|
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
|
2014-08-08 04:12:11 +00:00
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
2009-09-01 14:17:44 +00:00
|
|
|
end
|
|
|
|
end
|
2014-12-27 16:08:31 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/gendict", "--uchars", "/usr/share/dict/words", "dict"
|
|
|
|
end
|
2009-09-01 14:17:44 +00:00
|
|
|
end
|