homebrew-core/Formula/cmatrix.rb

31 lines
910 B
Ruby

class Cmatrix < Formula
desc "Console Matrix"
homepage "https://github.com/abishekvashok/cmatrix/"
url "https://github.com/abishekvashok/cmatrix/archive/v2.0.tar.gz"
sha256 "ad93ba39acd383696ab6a9ebbed1259ecf2d3cf9f49d6b97038c66f80749e99a"
license "GPL-3.0"
bottle do
cellar :any_skip_relocation
sha256 "fcc9c366c560e89ee2b4f61d1bdece14379a2c598719fd2eef784564bf9ed677" => :catalina
sha256 "1b3d3155c87c8f2b788fe18c3e72f04af4e79c609030e3447c3e17f9d3870c7b" => :mojave
sha256 "2c3b0ce73a2f89ece3783885e44aba5f584268768283e650d8b6552bc00f058d" => :high_sierra
end
depends_on "autoconf" => :build
depends_on "automake" => :build
uses_from_macos "ncurses"
def install
system "autoreconf", "-i"
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
system "make"
system "make", "install"
end
test do
system "#{bin}/cmatrix", "-V"
end
end