exa 0.4.1 (new formula)
Closes #11817. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
ea31f9dce9
commit
99e1cd0270
1 changed files with 25 additions and 0 deletions
25
Formula/exa.rb
Normal file
25
Formula/exa.rb
Normal file
|
@ -0,0 +1,25 @@
|
|||
class Exa < Formula
|
||||
desc "Modern replacement for 'ls'"
|
||||
homepage "https://the.exa.website"
|
||||
url "https://github.com/ogham/exa/archive/v0.4.1.tar.gz"
|
||||
sha256 "1005f320aabc776971ac2adb422eaae001d7adafac47f67c9000f94e70c3b56a"
|
||||
head "https://github.com/ogham/exa.git"
|
||||
|
||||
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
|
Loading…
Reference in a new issue