Skip to content

Commit

Permalink
fmt: apply patch for Watchman build
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocab committed Jan 15, 2022
1 parent 2f4ec07 commit 5e79f13
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Formula/fmt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ class Fmt < Formula
url "https://github.com/fmtlib/fmt/archive/8.1.1.tar.gz"
sha256 "3d794d3cf67633b34b2771eb9f073bde87e846e0d395d254df7b211ef1ec7346"
license "MIT"
revision 1
head "https://github.com/fmtlib/fmt.git", branch: "master"

bottle do
sha256 cellar: :any, arm64_monterey: "6cbc489146c6c0dce9a3f9726d3a3fe4e81c5df58cfd506609244d5c22382dec"
Expand All @@ -16,6 +18,13 @@ class Fmt < Formula

depends_on "cmake" => :build

# Fix Watchman build.
# https://github.com/fmtlib/fmt/issues/2717
patch do
url "https://github.com/fmtlib/fmt/commit/8f8a1a02d5c5cb967d240feee3ffac00d66f22a2.patch?full_index=1"
sha256 "ac5d7a8f9eabd40e34f21b1e0034fbc4147008f13b7bf2314131239fb3a7bdab"
end

def install
system "cmake", ".", "-DBUILD_SHARED_LIBS=TRUE", *std_cmake_args
system "make", "install"
Expand Down

0 comments on commit 5e79f13

Please sign in to comment.