2017-03-29 18:37:43 +00:00
|
|
|
class Exa < Formula
|
|
|
|
desc "Modern replacement for 'ls'"
|
|
|
|
homepage "https://the.exa.website"
|
2017-07-08 00:43:14 +00:00
|
|
|
url "https://github.com/ogham/exa/archive/v0.7.0.tar.gz"
|
|
|
|
sha256 "1be554f28a234741cdc336891996969c49c16c80c8ca84dedb05e76b4ccac709"
|
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-17 16:30:01 +00:00
|
|
|
rebuild 1
|
2017-09-17 17:02:16 +00:00
|
|
|
sha256 "db4b31c636e12fc7ec144a78e75982cbf7bd1055421e780478b614138e6b07d4" => :high_sierra
|
2017-09-17 16:30:01 +00:00
|
|
|
sha256 "38df071abb28b604ccfac40d7252828c410bacd256e95d7f853940333d603b83" => :sierra
|
|
|
|
sha256 "d2e08a87b7a7b81ab1f4a03f3d89381beea29c2dcc2ebbee3060336fe2863df5" => :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
|