aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/icu4c.rb
blob: 9241100afbdde38cf17c288b7a9bb38b034762be (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
require "formula"

class Icu4c < Formula
  homepage "http://site.icu-project.org/"
  head "http://source.icu-project.org/repos/icu/icu/trunk/", :using => :svn
  url "http://download.icu-project.org/files/icu4c/54.1/icu4c-54_1-src.tgz"
  version "54.1"
  sha1 "8c752490bbf31cea26e20246430cee67d48abe34"

  bottle do
    sha1 "984f992aa1e6e35866aa8ed28da06e6d3e6ce29d" => :mavericks
    sha1 "2d6234ded70b57db9f8bc18a956dec3a9666491d" => :mountain_lion
    sha1 "c7de3cc30819af40dbbc185d9cd9dd299ea3dc5a" => :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 = ["--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
end