58 lines
1.9 KiB
Ruby
58 lines
1.9 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"
|
|
|
|
head "https://github.com/weechat/weechat.git"
|
|
|
|
bottle do
|
|
sha256 "95a3fae242250ee13f5860950235dc124a5b36784294962018d7bdcb5f3dd518" => :el_capitan
|
|
sha256 "58745939cd1018bcb338da7007b1ddee07b005d26770cbb0b03bdb90cc1846fa" => :yosemite
|
|
sha256 "86fe26b70c1faabc2469469686bf2e106671cbf3c14f47d72862d215b0bb22c1" => :mavericks
|
|
end
|
|
|
|
option "with-perl", "Build the perl module"
|
|
option "with-ruby", "Build the ruby module"
|
|
option "with-curl", "Build with brewed curl"
|
|
|
|
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
|
|
|
|
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
|