Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weechat 2.7 #47660

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions Formula/weechat.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
class Weechat < Formula
desc "Extensible IRC client"
homepage "https://www.weechat.org"
url "https://weechat.org/files/src/weechat-2.6.tar.xz"
sha256 "fa9e3130e7afdfb6eff1b7892caac3efdd38a442f9989ca8c061eced2c755148"
revision 1
url "https://weechat.org/files/src/weechat-2.7.tar.xz"
sha256 "56fc42a4afece57bc27f95a2d155815a5e6472f32535add4c0ab4ce3b5e399e7"
head "https://github.com/weechat/weechat.git"

bottle do
Expand All @@ -19,25 +18,22 @@ class Weechat < Formula
depends_on "gettext"
depends_on "gnutls"
depends_on "libgcrypt"
depends_on "libiconv"
depends_on "lua"
depends_on "ncurses"
depends_on "perl"
depends_on "python"
depends_on "ruby" if MacOS.version <= :sierra
depends_on "ruby"

def install
args = std_cmake_args + %W[
-DENABLE_MAN=ON
-DENABLE_GUILE=OFF
-DCA_FILE=#{etc}/openssl/cert.pem
-DENABLE_JAVASCRIPT=OFF
-DENABLE_PHP=OFF
]

if MacOS.version >= :sierra
args << "-DRUBY_EXECUTABLE=/usr/bin/ruby"
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
Expand Down