2017-03-29 18:37:43 +00:00
|
|
|
class Exa < Formula
|
|
|
|
desc "Modern replacement for 'ls'"
|
|
|
|
homepage "https://the.exa.website"
|
2017-04-11 11:46:39 +00:00
|
|
|
url "https://github.com/ogham/exa/archive/v0.5.0.tar.gz"
|
|
|
|
sha256 "273573df4234829c48102b5afa050d8e1adfc235e426e5ab9faa136bea46c20c"
|
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
|
|
|
|
cellar :any
|
2017-04-11 14:19:07 +00:00
|
|
|
sha256 "cc41870a7afe46a6a5e038ed56693492c260539f7e13ada7d8dea3e4ee419584" => :sierra
|
|
|
|
sha256 "486f82d87223f31e3e6c90fb417695fcf2a70264a22725159ab5cac715a25e1a" => :el_capitan
|
|
|
|
sha256 "1340bee1fb729e88c299c82c41459033bc03175c6407ccbcf269d33a913f1e7a" => :yosemite
|
2017-03-30 09:12:13 +00:00
|
|
|
end
|
|
|
|
|
2017-03-29 18:37:43 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "rust" => :build
|
|
|
|
depends_on "libgit2" => :recommended
|
|
|
|
|
|
|
|
def install
|
|
|
|
args = ["--release"]
|
|
|
|
args << "--no-default-features" if build.without? "libgit2"
|
|
|
|
|
|
|
|
system "cargo", "build", *args
|
|
|
|
bin.install "target/release/exa"
|
|
|
|
man1.install "contrib/man/exa.1"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.txt").write("")
|
|
|
|
assert_match "test.txt", shell_output("#{bin}/exa")
|
|
|
|
end
|
|
|
|
end
|