lolcat 42.24.0 (new formula)

Closes #10122.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
Chris Long 2017-02-19 00:46:54 -08:00 committed by ilovezfs
parent c0577b4ffa
commit f02388beee

24
Formula/lolcat.rb Normal file
View file

@ -0,0 +1,24 @@
class Lolcat < Formula
desc "Rainbows and unicorns in your console!"
homepage "https://github.com/busyloop/lolcat"
url "https://github.com/busyloop/lolcat.git",
:tag => "v42.24.0",
:revision => "dfc68649f6bdac255d5be052d2123f3fbe3f555c"
def install
ENV["GEM_HOME"] = libexec
system "gem", "build", "lolcat.gemspec"
system "gem", "install", "lolcat-#{version}.gem"
bin.install libexec/"bin/lolcat"
bin.env_script_all_files(libexec/"bin", :GEM_HOME => ENV["GEM_HOME"])
end
test do
(testpath/"test.txt").write <<-EOS.undent
This is
a test
EOS
system bin/"lolcat", "test.txt"
end
end