nyancat 1.4.4 (new formula)

Closes Homebrew/homebrew#43289.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
Hiroki Yoshida 2015-08-26 18:02:52 +09:00 committed by Baptiste Fontaine
parent 93776213a6
commit 12dee75330

27
Formula/nyancat.rb Normal file
View file

@ -0,0 +1,27 @@
class Nyancat < Formula
desc "Nyancat in your terminal, rendered through ANSI escape sequences."
homepage "https://github.com/klange/nyancat"
url "https://github.com/klange/nyancat/archive/1.4.4.tar.gz"
sha256 "bbd0e573f01b7b5ee3b9c379de3ce12bb2575654e49b790f09388b2b9bd1f462"
# Add _DARWIN_C_SOURCE to allow compiling on OSX
patch do
url "https://github.com/klange/nyancat/pull/30.patch"
sha256 "083b22dc19e246c5ba74959e548a07ced10e1776c57530600ffc8606153b4d1c"
end
# Makefile: Add install directory option
patch do
url "https://github.com/klange/nyancat/pull/34.patch"
sha256 "407e01bae1d97e5153fb467a8cf0b4bc68320bea687294d56bcbacc944220d2c"
end
def install
system "make"
system "make", "install", "instdir=#{prefix}"
end
test do
system "#{bin}/nyancat", "--frames", "1"
end
end