Skip to content

Instantly share code, notes, and snippets.

@quaertym
Created June 9, 2021 09:06
Show Gist options
  • Save quaertym/08733162ea957464f4b33f2867988188 to your computer and use it in GitHub Desktop.
Save quaertym/08733162ea957464f4b33f2867988188 to your computer and use it in GitHub Desktop.
Apple M1 icu4c.rb 62
class Icu4c < Formula
desc "C/C++ and Java libraries for Unicode and globalization"
homepage "https://ssl.icu-project.org/"
url "https://ssl.icu-project.org/files/icu4c/62.1/icu4c-62_1-src.tgz"
mirror "https://downloads.sourceforge.net/project/icu/ICU4C/62.1/icu4c-62_1-src.tgz"
version "62.1"
sha256 "3dd9868d666350dda66a6e305eecde9d479fb70b30d5b55d78a1deffb97d5aa3"
bottle do
cellar :any
sha256 "29ee03c6a5c0754ff90f1618c75a851193e0a8a003b6f18c5673aa0003c2a313" => :mojave
sha256 "d1c24fa3df7e89935554ebcdbc6de6363cab0d264f01902db17eda35d8df0333" => :high_sierra
sha256 "a4d77bbdd2613440a8a49f1091c82cbcad6ba6538a72ffd1765c104a23b84f32" => :sierra
sha256 "6936900be3acec316cc0d05c5fa0a07d727a2b7a3fd736bc5fd1db2be9798cb8" => :el_capitan
end
keg_only :provided_by_macos, "macOS provides libicucore.dylib (but nothing else)"
def install
args = %W[--prefix=#{prefix} --disable-samples --disable-tests --enable-static]
args << "--with-library-bits=64" if Hardware::CPU.is_64_bit?
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