lolcat 42.24.0 (new formula)
Closes #10122. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
c0577b4ffa
commit
f02388beee
1 changed files with 24 additions and 0 deletions
24
Formula/lolcat.rb
Normal file
24
Formula/lolcat.rb
Normal 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
|
Loading…
Reference in a new issue