2009-10-17 13:25:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Bmon < Formula
|
2014-07-21 20:44:52 +00:00
|
|
|
homepage 'https://github.com/tgraf/bmon'
|
|
|
|
|
|
|
|
url "https://github.com/tgraf/bmon/releases/download/v3.3/bmon-3.3.tar.gz"
|
|
|
|
sha1 "f21d7fc70fdc140680f7ef466242d876474ed2aa"
|
|
|
|
|
2014-07-22 06:22:31 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "a5a4f7baad07a9c86ccb0a84b6404cbf9753f204" => :mavericks
|
|
|
|
sha1 "fe23553876a3699ce122e9b4f6ef30ca807104df" => :mountain_lion
|
|
|
|
sha1 "a926a43c20a7f774365d9f27a8d059b1507d709c" => :lion
|
|
|
|
end
|
|
|
|
|
2014-07-21 20:44:52 +00:00
|
|
|
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
|
2009-10-17 13:25:42 +00:00
|
|
|
|
|
|
|
def install
|
2014-07-21 20:44:52 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2011-03-11 04:34:57 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2009-10-17 13:25:42 +00:00
|
|
|
system "make" # two steps to prevent blowing up
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|