homebrew-core/Formula/icu4c.rb
Dominyk Tiller 4f9983ef95 icu4c 56.1
2015-11-27 01:09:37 +00:00

40 lines
1.4 KiB
Ruby

class Icu4c < Formula
desc "C/C++ and Java libraries for Unicode and globalization"
homepage "http://site.icu-project.org/"
url "https://ssl.icu-project.org/files/icu4c/56.1/icu4c-56_1-src.tgz"
mirror "https://fossies.org/linux/misc/icu4c-56_1-src.tgz"
version "56.1"
sha256 "3a64e9105c734dcf631c0b3ed60404531bce6c0f5a64bfe1a6402a4cc2314816"
head "https://ssl.icu-project.org/repos/icu/icu/trunk/", :using => :svn
bottle do
sha256 "11625fd5a49ecdc8d653b707db778d32eb1e7cf6cee04108822a7615289e7411" => :el_capitan
sha256 "a27e2b3645992acec22c95cb6ff4c4893139d3710c1a0be6d54c9f22593fc148" => :yosemite
sha256 "c68728ae3a0401fb32ddb3a85eb5ddf8c367268090421d66db2631d49f7b1ce1" => :mavericks
sha256 "be4ecad0c4f0542df384dd48c8c57380f6d843958c5d1eddb068e52f910e2dd9" => :mountain_lion
end
keg_only :provided_by_osx, "OS X provides libicucore.dylib (but nothing else)."
option :universal
option :cxx11
def install
ENV.universal_binary if build.universal?
ENV.cxx11 if build.cxx11?
args = %W[--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
test do
system "#{bin}/gendict", "--uchars", "/usr/share/dict/words", "dict"
end
end