aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/icu4c.rb
blob: 1ca05c8dac0dbe28294552709022ad9e04f4c597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require 'formula'

class Icu4c < Formula
  homepage 'http://site.icu-project.org/'
  url 'http://download.icu-project.org/files/icu4c/4.8.1.1/icu4c-4_8_1_1-src.tgz'
  version '4.8.1.1'
  md5 'ea93970a0275be6b42f56953cd332c17'

  bottle do
    sha1 '1cedfcb295cf637ad98d4f891d5c87b072f3a870' => :snowleopard
    sha1 '51b6e6e735ea581a2736127414e600362846b7e1' => :lion
  end

  keg_only "Conflicts; see: https://github.com/mxcl/homebrew/issues/issue/167"

  def options
    [
      ["--universal", "Build universal binaries."]
    ]
  end

  def install
    ENV.universal_binary if ARGV.build_universal?

    ENV.append "LDFLAGS", "-headerpad_max_install_names"
    args = ["--prefix=#{prefix}", "--disable-samples", "--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