50 lines
1.4 KiB
Ruby
50 lines
1.4 KiB
Ruby
class Weechat < Formula
|
|
desc "Extensible IRC client"
|
|
homepage "https://www.weechat.org"
|
|
url "https://weechat.org/files/src/weechat-2.3.tar.xz"
|
|
sha256 "ef8654313bfb0ca92e27cf579efb2d9b17e53505e615bf3d71a51aef44e56a5f"
|
|
revision 2
|
|
head "https://github.com/weechat/weechat.git"
|
|
|
|
bottle do
|
|
sha256 "e0c017500f05ddc06b17aa49d238cd6f476bb09b6750f2149e6104ed6f5b9683" => :mojave
|
|
sha256 "d2d39e4694dd13069a667eb097745ed6cc5deed3698cd9f33542119c7d1deb11" => :high_sierra
|
|
sha256 "3e9da856ced905785daa74a4d779160eecabb35ea4741b3c0a0ebf310e9fde57" => :sierra
|
|
end
|
|
|
|
depends_on "asciidoctor" => :build
|
|
depends_on "cmake" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "aspell"
|
|
depends_on "gettext"
|
|
depends_on "gnutls"
|
|
depends_on "libgcrypt"
|
|
depends_on "lua"
|
|
depends_on "ncurses"
|
|
depends_on "perl"
|
|
depends_on "python@2"
|
|
depends_on "ruby" if MacOS.version <= :sierra
|
|
|
|
def install
|
|
args = std_cmake_args + %W[
|
|
-DENABLE_MAN=ON
|
|
-DENABLE_GUILE=OFF
|
|
-DCA_FILE=#{etc}/openssl/cert.pem
|
|
-DENABLE_JAVASCRIPT=OFF
|
|
]
|
|
|
|
if MacOS.version >= :sierra
|
|
args << "-DRUBY_EXECUTABLE=/usr/bin/ruby"
|
|
args << "-DRUBY_LIB=/usr/lib/libruby.dylib"
|
|
end
|
|
|
|
mkdir "build" do
|
|
system "cmake", "..", *args
|
|
system "make", "install", "VERBOSE=1"
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/weechat", "-r", "/quit"
|
|
end
|
|
end
|