homebrew-core/Formula/feedgnuplot.rb

31 lines
1.0 KiB
Ruby

class Feedgnuplot < Formula
desc "Tool to plot realtime and stored data from the command-line"
homepage "https://github.com/dkogan/feedgnuplot"
url "https://github.com/dkogan/feedgnuplot/archive/v1.55.tar.gz"
sha256 "1205afedf8ce79d8531e0d0f8f9565df365a568a0ee6a8e17738602682095303"
# licensed under either "GPL-3.0" or "Artistic-1.0"
license "GPL-3.0"
bottle do
cellar :any_skip_relocation
sha256 "7d394a581a614dcc5130eac02310e58f994067b94a8dbd413c983157e3d37cc2" => :catalina
sha256 "76988d6017ae6c60402ef6eb02046e4a73fbc67e64ac8f55442a661dd1689832" => :mojave
sha256 "55c59a68946e0979048dc4ef95f8746053d4b9e8c5f0d1709f781a69708051a8" => :high_sierra
end
depends_on "gnuplot"
def install
system "perl", "Makefile.PL", "prefix=#{prefix}"
system "make"
system "make", "install"
bash_completion.install "completions/bash/feedgnuplot"
zsh_completion.install "completions/zsh/_feedgnuplot"
end
test do
pipe_output("#{bin}/feedgnuplot --terminal 'dumb 80,20' --exit", "seq 5", 0)
end
end