From 4ea1a447fc1b9e7361211a688b46878b15417d31 Mon Sep 17 00:00:00 2001 From: Amar1729 Date: Tue, 17 Sep 2019 18:22:27 -0400 Subject: [PATCH] ttyplot 1.4 (new formula) Closes #44382. Signed-off-by: FX Coudert --- Formula/ttyplot.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Formula/ttyplot.rb diff --git a/Formula/ttyplot.rb b/Formula/ttyplot.rb new file mode 100644 index 0000000000..9c4612b460 --- /dev/null +++ b/Formula/ttyplot.rb @@ -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