homebrew-core/Formula/minbif.rb
2018-09-05 23:23:14 +02:00

55 lines
1.8 KiB
Ruby

class Minbif < Formula
desc "IRC-to-other-IM-networks gateway using Pidgin library"
homepage "https://symlink.me/projects/minbif/wiki/"
url "https://mirrors.ocf.berkeley.edu/debian/pool/main/m/minbif/minbif_1.0.5+git20150505.orig.tar.gz"
mirror "https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/m/minbif/minbif_1.0.5+git20150505.orig.tar.gz"
version "1.0.5-20150505"
sha256 "4e264fce518a0281de9fc3d44450677c5fa91097a0597ef7a0d2a688ee66d40b"
revision 2
bottle do
cellar :any
sha256 "290a382d5cecfc665e446924cce87b091e0167754ace9f220ebf077f5bab42b4" => :mojave
sha256 "350bac71d2c91bb9026924d8e2ce09a34e364961045560ede2c59c059b999d9b" => :high_sierra
sha256 "110ae4736afaadcacb084d5aaad29f340297758c58958b57cc54fca700cf9c9b" => :sierra
sha256 "b88890787abd2c0f692a7c371e363ac2c0bed49f361b597ce1557f102ec94b67" => :el_capitan
end
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://symlink.me/projects/minbif/wiki/Quick_start
EOS
end
test do
system "#{bin}/minbif", "--version"
end
end