homebrew-core/Formula/minbif.rb

59 lines
2.0 KiB
Ruby

class Minbif < Formula
desc "IRC-to-other-IM-networks gateway using Pidgin library"
homepage "https://web.archive.org/web/20180831190920/https://symlink.me/projects/minbif/wiki/"
url "https://deb.debian.org/debian/pool/main/m/minbif/minbif_1.0.5+git20150505.orig.tar.gz"
version "1.0.5-20150505"
sha256 "4e264fce518a0281de9fc3d44450677c5fa91097a0597ef7a0d2a688ee66d40b"
license "GPL-2.0-only"
revision 3
bottle do
sha256 cellar: :any, arm64_big_sur: "fe93338a9056edd1860252df688c5924ec0b5846455a4b171360495c9a9f05fb"
sha256 cellar: :any, big_sur: "32991355535b355a589e921c72aba99a161d7b3a8dd83dd3e971d5bb9929afab"
sha256 cellar: :any, catalina: "57dc630a96ec93b8168d569cc1ff0152f381ca52c10d2b6b7bffc1d91cbc14a2"
sha256 cellar: :any, mojave: "479cfbb3b59f2c0c05b0553188ae2497ee313b02e5850172bb7055231def61b8"
sha256 cellar: :any, sierra: "5b8a0fd609cda94163f95c7d0b6620c143b3ff127178d37a57b76493231c73cc"
end
disable! date: "2022-07-31", because: :unmaintained
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "gettext"
depends_on "glib"
depends_on "gnutls"
depends_on "pidgin"
def install
inreplace "minbif.conf" do |s|
s.gsub! "users = /var", "users = #{var}"
s.gsub! "motd = /etc", "motd = #{etc}"
end
system "make", "PREFIX=#{prefix}",
"ENABLE_CACA=OFF",
"ENABLE_IMLIB=OFF",
"ENABLE_MINBIF=ON",
"ENABLE_PAM=OFF",
"ENABLE_PLUGIN=ON",
"ENABLE_TLS=ON",
"ENABLE_VIDEO=OFF"
system "make", "install"
(var/"lib/minbif/users").mkpath
end
def caveats
<<~EOS
Minbif must be passed its config as first argument:
minbif #{etc}/minbif/minbif.conf
Learn more about minbif: https://web.archive.org/web/20160714124330/https://symlink.me/projects/minbif/wiki/Quick_start
EOS
end
test do
system "#{bin}/minbif", "--version"
end
end