aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/bmon.rb
blob: 68943b3b10dcd31630c40606492a1b3a6dda807c (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
35
require 'formula'

class Bmon < Formula
  homepage 'https://github.com/tgraf/bmon'
  url "https://github.com/tgraf/bmon/releases/download/v3.6/bmon-3.6.tar.gz"
  sha1 "abbe4362061493a1120eed074debd875916dd49a"

  bottle do
    sha1 "a6288882c0c468f2d3d3c484c2f58c3ec2ec1856" => :yosemite
    sha1 "b1735717a26afeb7e5d06172ba7ed0f14d2e70a0" => :mavericks
    sha1 "70b7cb76fa2f1f3f53e0baaaf3b089276ca7a5db" => :mountain_lion
  end

  head do
    url "https://github.com/tgraf/bmon.git"
    depends_on "autoconf" => :build
    depends_on "automake" => :build
  end

  depends_on "confuse" => :build
  depends_on "pkg-config" => :build

  def install
    system "./autogen.sh" if build.head?
    system "./configure", "--disable-debug",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}"
    system "make" # two steps to prevent blowing up
    system "make install"
  end

  test do
    system "#{bin}/bmon", "-o", "ascii:quitafter=1"
  end
end