Skip to content

Instantly share code, notes, and snippets.

@bbatsche
Last active December 8, 2021 17:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbatsche/c1c747bb9297661772ae7e106c556c3f to your computer and use it in GitHub Desktop.
Save bbatsche/c1c747bb9297661772ae7e106c556c3f to your computer and use it in GitHub Desktop.
Homebrew formula to install Icu4c pinned at version 64
class Icu4cAT64 < Formula
desc "C/C++ and Java libraries for Unicode and globalization"
homepage "http://site.icu-project.org/home"
url "https://github.com/unicode-org/icu/releases/download/release-64-2/icu4c-64_2-src.tgz"
version "64.2"
sha256 "627d5d8478e6d96fc8c90fed4851239079a561a6a8b9e48b0892f24e82d31d6c"
keg_only :versioned_formula
def install
args = %W[
--prefix=#{prefix}
--disable-samples
--disable-tests
--enable-static
--with-library-bits=64
]
cd "source" do
system "./configure", *args
system "make"
system "make", "install"
end
end
test do
system "#{bin}/gendict", "--uchars", "/usr/share/dict/words", "dict"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment