f89b04f888
Closes Homebrew/homebrew#44370. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
64 lines
2.1 KiB
Ruby
64 lines
2.1 KiB
Ruby
class Weechat < Formula
|
|
desc "Extensible IRC client"
|
|
homepage "https://www.weechat.org"
|
|
url "https://weechat.org/files/src/weechat-1.4.tar.gz"
|
|
sha256 "51859bf3b26ffeed95c0a3399167e6670e8240542c52772439fb9cade06857a5"
|
|
revision 1
|
|
|
|
head "https://github.com/weechat/weechat.git"
|
|
|
|
bottle do
|
|
sha256 "982b4881af5e9c041eeace8d54d392aec31cb34899a2cc77ce2a4fa1db771d1c" => :el_capitan
|
|
sha256 "382b0c6bf65d13a26dfe21c6f229c9f8a1607b669ded33ee4e303c074f7e6c67" => :yosemite
|
|
sha256 "e69326f74dd167f31ed5c3423790b8cb639d12746e14afbca2d49f0781fee54b" => :mavericks
|
|
end
|
|
|
|
option "with-perl", "Build the perl module"
|
|
option "with-ruby", "Build the ruby module"
|
|
option "with-curl", "Build with brewed curl"
|
|
option "with-debug", "Build with debug information"
|
|
|
|
depends_on "cmake" => :build
|
|
depends_on "gnutls"
|
|
depends_on "libgcrypt"
|
|
depends_on "gettext"
|
|
depends_on "guile" => :optional
|
|
depends_on "aspell" => :optional
|
|
depends_on "lua" => :optional
|
|
depends_on :python => :optional
|
|
depends_on "curl" => :optional
|
|
|
|
def install
|
|
args = std_cmake_args
|
|
if build.with? "debug"
|
|
args -= %w[-DCMAKE_BUILD_TYPE=Release]
|
|
args << "-DCMAKE_BUILD_TYPE=Debug"
|
|
end
|
|
|
|
args << "-DENABLE_LUA=OFF" if build.without? "lua"
|
|
args << "-DENABLE_PERL=OFF" if build.without? "perl"
|
|
args << "-DENABLE_RUBY=OFF" if build.without? "ruby"
|
|
args << "-DENABLE_ASPELL=OFF" if build.without? "aspell"
|
|
args << "-DENABLE_GUILE=OFF" if build.without? "guile"
|
|
args << "-DENABLE_PYTHON=OFF" if build.without? "python"
|
|
args << "-DENABLE_JAVASCRIPT=OFF"
|
|
|
|
mkdir "build" do
|
|
system "cmake", "..", *args
|
|
system "make", "install"
|
|
end
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
Weechat can depend on Aspell if you choose the --with-aspell option, but
|
|
Aspell should be installed manually before installing Weechat so that
|
|
you can choose the dictionaries you want. If Aspell was installed
|
|
automatically as part of weechat, there won't be any dictionaries.
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
ENV["TERM"] = "xterm"
|
|
system "weechat", "-r", "/quit"
|
|
end
|
|
end
|