diff --git a/Formula/weechat.rb b/Formula/weechat.rb index 24ff250247..2e7aa159ea 100644 --- a/Formula/weechat.rb +++ b/Formula/weechat.rb @@ -3,6 +3,7 @@ class Weechat < Formula homepage "https://www.weechat.org" url "https://weechat.org/files/src/weechat-2.6.tar.xz" sha256 "fa9e3130e7afdfb6eff1b7892caac3efdd38a442f9989ca8c061eced2c755148" + revision 1 head "https://github.com/weechat/weechat.git" bottle do @@ -38,6 +39,10 @@ class Weechat < Formula args << "-DRUBY_LIB=/usr/lib/libruby.dylib" end + if MacOS.version >= :mojave && MacOS::CLT.installed? + ENV["SDKROOT"] = ENV["HOMEBREW_SDKROOT"] = MacOS::CLT.sdk_path(MacOS.version) + end + mkdir "build" do system "cmake", "..", *args system "make", "install", "VERBOSE=1"