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'
|
2014-09-23 02:04:38 +00:00
|
|
|
url "https://github.com/tgraf/bmon/releases/download/v3.5/bmon-3.5.tar.gz"
|
|
|
|
sha1 "352f774e20f679e89de0f72159475d999cc7bf2f"
|
2014-07-21 20:44:52 +00:00
|
|
|
|
2014-07-22 06:22:31 +00:00
|
|
|
bottle do
|
2014-09-23 02:23:39 +00:00
|
|
|
sha1 "403e402182813cc1f63a6b75c2a40db32e328626" => :mavericks
|
|
|
|
sha1 "3a5cd94abd456aa3b49cc375ceb72115a4c3a1ad" => :mountain_lion
|
|
|
|
sha1 "081de28fe55bf0285c6310fffe8d25ce843b769f" => :lion
|
2014-07-22 06:22:31 +00:00
|
|
|
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
|