blob: 8333b4df0493d756437b158243b25bdc92f06045 (
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/52.1/icu4c-52_1-src.tgz'
  version '52.1'
  sha1 '6de440b71668f1a65a9344cdaf7a437291416781'
  head 'http://source.icu-project.org/repos/icu/icu/trunk/', :using => :svn
  bottle do
    revision 1
    sha1 'c38fd0be5f63a0dd187ee76a9321d543d02d3638' => :mavericks
    sha1 '636b03a9cfd3e686b7c89891eddb74ba34cbf456' => :mountain_lion
    sha1 'f09512efdb8b12edfe080492a5a1c0bafc5a2941' => :lion
  end
  keg_only "Conflicts; see: https://github.com/Homebrew/homebrew/issues/issue/167"
  option :universal
  option :cxx11
  def install
    ENV.universal_binary if build.universal?
    ENV.cxx11 if build.cxx11?
    args = ["--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", "VERBOSE=1"
      system "make", "VERBOSE=1", "install"
    end
  end
end
  |