24 lines
839 B
Ruby
24 lines
839 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.4.tar.gz"
|
|
sha256 "066579c0805616075c49c705d1431fb4b7c94a08ef2b27dd8846bd3569a188a4"
|
|
# license ["Artistic-1.0", "GPL-1.0"] - pending https://github.com/Homebrew/brew/pull/7953
|
|
license "Artistic-1.0"
|
|
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
|