ttyplot 1.4 (new formula)

Closes #44382.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Amar1729 2019-09-17 18:22:27 -04:00 committed by FX Coudert
parent 675f3d1de1
commit 4ea1a447fc

20
Formula/ttyplot.rb Normal file
View file

@ -0,0 +1,20 @@
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