parent
52017d089a
commit
179ccaa247
1 changed files with 6 additions and 9 deletions
|
@ -1,8 +1,8 @@
|
||||||
class Exa < Formula
|
class Exa < Formula
|
||||||
desc "Modern replacement for 'ls'"
|
desc "Modern replacement for 'ls'"
|
||||||
homepage "https://the.exa.website"
|
homepage "https://the.exa.website"
|
||||||
url "https://github.com/ogham/exa/archive/v0.5.0.tar.gz"
|
url "https://github.com/ogham/exa/archive/v0.6.0.tar.gz"
|
||||||
sha256 "273573df4234829c48102b5afa050d8e1adfc235e426e5ab9faa136bea46c20c"
|
sha256 "84cd6b3c389d5ec0483f8e438557d971897b5e1015d22a8cb3ae7558f87f4bf0"
|
||||||
head "https://github.com/ogham/exa.git"
|
head "https://github.com/ogham/exa.git"
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
|
@ -14,15 +14,12 @@ class Exa < Formula
|
||||||
|
|
||||||
depends_on "cmake" => :build
|
depends_on "cmake" => :build
|
||||||
depends_on "rust" => :build
|
depends_on "rust" => :build
|
||||||
depends_on "libgit2" => :recommended
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
args = ["--release"]
|
system "make", "install", "PREFIX=#{prefix}"
|
||||||
args << "--no-default-features" if build.without? "libgit2"
|
bash_completion.install "contrib/completions.bash" => "exa"
|
||||||
|
zsh_completion.install "contrib/completions.zsh" => "_exa"
|
||||||
system "cargo", "build", *args
|
fish_completion.install "contrib/completions.fish" => "exa.fish"
|
||||||
bin.install "target/release/exa"
|
|
||||||
man1.install "contrib/man/exa.1"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
|
|
Loading…
Reference in a new issue