2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-01 14:17:44 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Icu4c < Formula
|
2010-07-25 20:04:27 +00:00
|
|
|
homepage 'http://site.icu-project.org/'
|
2013-04-22 12:19:34 +00:00
|
|
|
url 'http://download.icu-project.org/files/icu4c/51.1/icu4c-51_1-src.tgz'
|
|
|
|
version '51.1'
|
|
|
|
sha1 '7905632335e3dcd6667224da0fa087b49f9095e9'
|
2013-08-19 20:57:59 +00:00
|
|
|
head 'http://source.icu-project.org/repos/icu/icu/trunk/', :using => :svn
|
2012-12-01 13:21:30 +00:00
|
|
|
|
2013-05-03 16:53:15 +00:00
|
|
|
bottle do
|
|
|
|
sha1 '6b5b4ab5704cc2a8b17070a087c7f9594466cf1d' => :mountain_lion
|
|
|
|
sha1 'a555b051a65717e1ca731eec5743969d8190a9f8' => :lion
|
|
|
|
sha1 'bcb1ab988f67c3d48fb7c5829153c136c16c059b' => :snow_leopard
|
|
|
|
end
|
|
|
|
|
2012-11-29 06:20:31 +00:00
|
|
|
keg_only "Conflicts; see: https://github.com/mxcl/homebrew/issues/issue/167"
|
2012-11-18 16:57:18 +00:00
|
|
|
|
2012-08-10 05:10:50 +00:00
|
|
|
option :universal
|
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?
|
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
|
2009-09-01 14:17:44 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|