2018-12-11 19:12:49 +00:00
|
|
|
class Lsd < Formula
|
|
|
|
desc "Clone of ls with colorful output, file type icons, and more"
|
|
|
|
homepage "https://github.com/Peltoche/lsd"
|
2019-01-23 23:07:51 +00:00
|
|
|
url "https://github.com/Peltoche/lsd/archive/0.12.0.tar.gz"
|
|
|
|
sha256 "9b9a05452c23ccc94676e2e6b86f57805262496b14b6ec018df08996131eeec5"
|
2018-12-11 19:12:49 +00:00
|
|
|
|
2019-01-07 11:45:32 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "d9c592376ddcf9f8634ddae8c0fe80e8e50eec9bb33237e8706f6746f8fa5756" => :mojave
|
|
|
|
sha256 "7e35bf909cf5ad90c317f6d5d73aa72caa767298ed773e21e203ba4635c253b8" => :high_sierra
|
|
|
|
sha256 "3da3d3bbc6fbb235f789276e21144b76147ad5617c774cda798d78c8cb60994a" => :sierra
|
|
|
|
end
|
|
|
|
|
2018-12-11 19:12:49 +00:00
|
|
|
depends_on "rust" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "cargo", "install", "--root", prefix, "--path", "."
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2019-01-23 23:07:51 +00:00
|
|
|
output = shell_output("#{bin}/lsd -l #{prefix}")
|
2018-12-11 19:12:49 +00:00
|
|
|
assert_match "README.md", output
|
|
|
|
end
|
|
|
|
end
|