homebrew-core/Formula/ttyplot.rb

21 lines
605 B
Ruby
Raw Normal View History

class Ttyplot < Formula
desc "Realtime plotting utility for terminal with data input from stdin"
homepage "https://github.com/tenox7/ttyplot"
url "https://github.com/tenox7/ttyplot/archive/1.4.tar.gz"
sha256 "11974754981406d19cfa16865b59770faaf3ade8d909d9a0134dc56e00d29bd4"
uses_from_macos "ncurses"
def install
system "make"
bin.install "ttyplot"
end
test do
system "#{bin}/ttyplot", "--help"
# ttyplot normally reads data over time:
# piping lines to it will just let it start and immediately exit successfully.
system "echo 1 2 3 | #{bin}/ttyplot"
end
end