2017-03-29 18:37:43 +00:00
|
|
|
class Exa < Formula
|
|
|
|
desc "Modern replacement for 'ls'"
|
|
|
|
homepage "https://the.exa.website"
|
2017-09-30 19:31:09 +00:00
|
|
|
url "https://github.com/ogham/exa/archive/v0.8.0.tar.gz"
|
|
|
|
sha256 "07085fd784d553b7c3b62b5a52e4635580d6154f47e6d64245ec0588638dee3e"
|
2017-03-29 18:37:43 +00:00
|
|
|
head "https://github.com/ogham/exa.git"
|
|
|
|
|
2017-03-30 09:12:13 +00:00
|
|
|
bottle do
|
2017-09-30 19:39:51 +00:00
|
|
|
sha256 "e10e5f5d86fbab6f6d558c620a73f1caf157d42c5a01c54636f2de08f4aaee4b" => :high_sierra
|
|
|
|
sha256 "beb45a502b3e7a61689f14e298b310d83765c5242181ef0c7e12f72c8b7c7736" => :sierra
|
|
|
|
sha256 "bf8070b4da1dbf25d8f7f12b324e845de5282dc5c028045af298cb41d2c30831" => :el_capitan
|
2017-03-30 09:12:13 +00:00
|
|
|
end
|
|
|
|
|
2017-08-04 06:25:17 +00:00
|
|
|
option "without-git", "Build without Git support"
|
|
|
|
|
2017-03-29 18:37:43 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "rust" => :build
|
|
|
|
|
|
|
|
def install
|
2017-08-04 06:25:17 +00:00
|
|
|
args = ["PREFIX=#{prefix}"]
|
|
|
|
args << "FEATURES=" if build.without? "git"
|
|
|
|
|
|
|
|
system "make", "install", *args
|
2017-05-18 03:58:57 +00:00
|
|
|
bash_completion.install "contrib/completions.bash" => "exa"
|
|
|
|
zsh_completion.install "contrib/completions.zsh" => "_exa"
|
|
|
|
fish_completion.install "contrib/completions.fish" => "exa.fish"
|
2017-03-29 18:37:43 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.txt").write("")
|
|
|
|
assert_match "test.txt", shell_output("#{bin}/exa")
|
|
|
|
end
|
|
|
|
end
|