require 'formula' class Minbif :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 system "make" system "make install" (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