homebrew-core/Formula/nyancat.rb

34 lines
1.6 KiB
Ruby

class Nyancat < Formula
desc "Renders an animated, color, ANSI-text loop of the Poptart Cat"
homepage "https://github.com/klange/nyancat"
url "https://github.com/klange/nyancat/archive/1.5.2.tar.gz"
sha256 "88cdcaa9c7134503dd0364a97fa860da3381a09cb555c3aae9918360827c2032"
license "NCSA"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "e15caf1bc3a60334cb7e38466e50005cfbb15dd5e143abc876983fcb3d3a41d7"
sha256 cellar: :any_skip_relocation, big_sur: "9eef2795f2dc32491b4b948d39a8f68f6274964174ff735d3f42ee70c7035148"
sha256 cellar: :any_skip_relocation, catalina: "997fc4e89ef493a356e781543d69343e96a08547aba3bec53bd1db64b48f3436"
sha256 cellar: :any_skip_relocation, mojave: "6f14b77291021020bc45ea2182063fe16215faee9862786763798362ac664822"
sha256 cellar: :any_skip_relocation, high_sierra: "2272aa5028ca779224f68fd25a3c07ff41c71bb7d14511186808a6b59bfe32c3"
sha256 cellar: :any_skip_relocation, sierra: "413a6ff99b622e60b0878ca74c3051d0feac094a7eb1fa9e90db715735cdd2bf"
sha256 cellar: :any_skip_relocation, el_capitan: "2484fb6eabaaa65a988191b9c2f920d7290bc20f73dbf41e4a996e0306827364"
end
# Makefile: Add install directory option
# See https://github.com/klange/nyancat/pull/34
patch do
url "https://github.com/klange/nyancat/commit/e11af77f2938ea851f712df62f08de4d369598d4.patch?full_index=1"
sha256 "24a0772d2725e151b57727ce887f4b3911d19e875785eb7e13a68f4b987831e8"
end
def install
system "make"
system "make", "install", "instdir=#{prefix}"
end
test do
system "#{bin}/nyancat", "--frames", "1"
end
end