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
|
2011-11-17 19:33:51 +00:00
|
|
|
url 'http://download.icu-project.org/files/icu4c/4.8.1.1/icu4c-4_8_1_1-src.tgz'
|
2010-07-25 20:04:27 +00:00
|
|
|
homepage 'http://site.icu-project.org/'
|
2011-11-17 19:33:51 +00:00
|
|
|
md5 'ea93970a0275be6b42f56953cd332c17'
|
|
|
|
version '4.8.1.1'
|
2009-12-02 11:38:57 +00:00
|
|
|
|
2012-01-23 04:32:15 +00:00
|
|
|
bottle do
|
|
|
|
url 'https://downloads.sf.net/project/machomebrew/Bottles/icu4c-4.8.1.1-bottle.tar.gz'
|
|
|
|
sha1 '51b6e6e735ea581a2736127414e600362846b7e1'
|
|
|
|
end
|
2011-10-05 20:51:01 +00:00
|
|
|
|
2010-11-10 18:16:28 +00:00
|
|
|
keg_only "Conflicts; see: https://github.com/mxcl/homebrew/issues/issue/167"
|
2009-12-02 11:38:57 +00:00
|
|
|
|
2009-09-01 14:17:44 +00:00
|
|
|
def install
|
2010-07-28 19:32:40 +00:00
|
|
|
ENV.append "LDFLAGS", "-headerpad_max_install_names"
|
2009-09-01 14:17:44 +00:00
|
|
|
config_flags = ["--prefix=#{prefix}", "--disable-samples", "--enable-static"]
|
2011-03-18 17:30:47 +00:00
|
|
|
config_flags << "--with-library-bits=64" if MacOS.prefer_64_bit?
|
2009-09-01 14:17:44 +00:00
|
|
|
Dir.chdir "source" do
|
|
|
|
system "./configure", *config_flags
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|