homebrew-core/Formula/minbif.rb

35 lines
840 B
Ruby
Raw Normal View History

2010-08-03 03:34:39 +00:00
require 'formula'
class Minbif <Formula
url 'http://minbif.im/attachments/download/50/minbif-1.0.3.tar.gz'
homepage 'http://minbif.im/'
md5 'c08add6234a6dd4a45b46b590fa63268'
depends_on 'cmake' => :build
depends_on 'glib'
depends_on 'gettext'
depends_on 'libpurple'
depends_on 'imlib2' => :optional
depends_on 'libcaca' => :optional
def install
inreplace "minbif.conf" do |s|
s.gsub! "users = /var", "users = #{var}"
s.gsub! "motd = /etc", "motd = #{etc}"
end
2010-11-14 05:40:29 +00:00
system "make", "PREFIX=#{prefix}"
system "make", "PREFIX=#{prefix}", "install"
2010-08-03 03:34:39 +00:00
(var + "lib/minbif/users").mkpath
end
def caveats; <<-EOS.undent
Minbif must be passed its config as first argument:
minbif #{etc}/minbif/minbif.conf
Learn more about minbif: http://minbif.im/Quick_start
EOS
end
end