homebrew-core/Formula/rainbarf.rb
ilovezfs 34a42f3c4f rainbarf 1.3
fix the test
set bottle unneeded
add head spec

Closes #2618.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-09-05 03:58:49 -07:00

21 lines
721 B
Ruby

class Rainbarf < Formula
desc "CPU/RAM/battery stats chart bar for tmux (and GNU screen)"
homepage "https://github.com/creaktive/rainbarf"
url "https://github.com/creaktive/rainbarf/archive/v1.3.tar.gz"
sha256 "e2491e9f40f2822a416305a56e47228bd6bfc1688314ad5d8d8c702d4e79c578"
head "https://github.com/creaktive/rainbarf.git"
bottle :unneeded
def install
system "pod2man", "rainbarf", "rainbarf.1"
man1.install "rainbarf.1"
bin.install "rainbarf"
end
test do
# Avoid "Use of uninitialized value $battery" and sandbox violation
# Reported 5 Sep 2016 https://github.com/creaktive/rainbarf/issues/30
assert_match version.to_s, shell_output("#{bin}/rainbarf --help", 1)
end
end