homebrew-core/Formula/bwm-ng.rb
2019-01-25 14:41:20 +00:00

36 lines
1.4 KiB
Ruby

class BwmNg < Formula
desc "Console-based live network and disk I/O bandwidth monitor"
homepage "https://www.gropp.org/?id=projects&sub=bwm-ng"
url "https://github.com/vgropp/bwm-ng/releases/download/v0.6.1/bwm-ng-0.6.1.tar.gz"
mirror "https://www.gropp.org/bwm-ng/bwm-ng-0.6.1.tar.gz"
sha256 "027cf3c960cd96fc9ffacdf7713df62d0fc55eeef4a1388289f8a62ae5e50df0"
bottle do
cellar :any_skip_relocation
sha256 "6648df57246fb31f985565fd2283aff2ee94c1b49101b065a4b33309362792fa" => :mojave
sha256 "7ffab079c543246df990e4bc0c5ed2c2329d887aa496a4a14c99a6dfccadacbf" => :high_sierra
sha256 "095250d62c0cdd0e28f79e0099421d8033a1d82832fa0b3f63e663eb9fe8b2f1" => :sierra
sha256 "a8e98c7fdf6a66485ecbbacf4539a8572061d17335ac6baf8305b07afa4a9a22" => :el_capitan
sha256 "2b6af853a216dca06b1e692f2f03a453962b384bd5fba7bc8566f277f71d9d5b" => :yosemite
sha256 "d68545d5c597faccc236df30879008b2902623e6c60d35474f3e9559d8f91d35" => :mavericks
end
head do
url "https://github.com/vgropp/bwm-ng.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
end
def install
ENV.append "CFLAGS", "-std=gnu89"
system "./autogen.sh" if build.head?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
assert_match "<div class=\"bwm-ng-header\">", shell_output("#{bin}/bwm-ng -o html")
end
end