Created
September 6, 2016 12:49
-
-
Save thiromi/ead89a52be460108eb8d16ccbcd31772 to your computer and use it in GitHub Desktop.
All credits to @yokomizor
This file contains 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
#!/bin/bash | |
echo 'class Icu4c < Formula | |
desc "C/C++ and Java libraries for Unicode and globalization" | |
homepage "http://site.icu-project.org/" | |
url "https://ssl.icu-project.org/files/icu4c/52.1/icu4c-52_1-src.tgz" | |
mirror "https://fossies.org/linux/misc/icu4c-52_1-src.tgz" | |
version "52.1" | |
sha256 "2f4d5e68d4698e87759dbdc1a586d053d96935787f79961d192c477b029d8092" | |
head "https://ssl.icu-project.org/repos/icu/icu/trunk/", :using => :svn | |
bottle do | |
cellar :any | |
sha256 "c244860b11f70115cecc19a81566232de900dd2f9d049555c77db3744087ca2a" => :el_capitan | |
sha256 "1a18b7c039316fee2376565085c71cb141cae0e5a9680c69b2ca0e8e6d32ce58" => :yosemite | |
sha256 "cadba844e31de5cf9a1f9d05dc8671662cfb52610c7ce92f1fef6e3617dee2ea" => :mavericks | |
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 = %W[--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 | |
test do | |
system "#{bin}/gendict", "--uchars", "/usr/share/dict/words", "dict" | |
end | |
end' > /usr/local/Library/Taps/homebrew/homebrew-core/Formula/icu4c.rb && \ | |
brew rm icu4c && \ | |
brew install --build-from-source icu4c && \ | |
brew rm php56-intl && \ | |
brew install --build-from-source php56-intl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment