blob: aaa1fde5bdd9f11b483fc4d01caa1c2d0fe36fec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  | 
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
    system "make", "PREFIX=#{prefix}"
    system "make", "PREFIX=#{prefix}", "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
  |