33 lines
1,023 B
Ruby
33 lines
1,023 B
Ruby
class Lolcat < Formula
|
|
desc "Rainbows and unicorns in your console!"
|
|
homepage "https://github.com/busyloop/lolcat"
|
|
url "https://github.com/busyloop/lolcat.git",
|
|
:tag => "v99.9.20",
|
|
:revision => "438e5e5b9b8130170f8df3e428efefe42bca5278"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "a73327392af6889de24d8726eb4f1946c4dd55b6a9bd1cb7ddcae1c76e93f023" => :mojave
|
|
sha256 "7b54960a6747828d3ad4deb0da56fe16bed72befc56e6d0d27c3cf3a0734bcc1" => :high_sierra
|
|
sha256 "460b4f13561187598ce13996dbd75fc0674ec5d6ff28f38da5999f2176e4041c" => :sierra
|
|
end
|
|
|
|
depends_on "ruby" if MacOS.version <= :sierra
|
|
|
|
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
|
|
This is
|
|
a test
|
|
EOS
|
|
|
|
system bin/"lolcat", "test.txt"
|
|
end
|
|
end
|