Last active
December 8, 2021 17:04
-
-
Save bbatsche/c1c747bb9297661772ae7e106c556c3f to your computer and use it in GitHub Desktop.
Homebrew formula to install Icu4c pinned at version 64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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