git-delta 0.0.12 (new formula)
Closes #45060. Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
parent
0ebeb19a88
commit
f2a2ed1f69
1 changed files with 21 additions and 0 deletions
21
Formula/git-delta.rb
Normal file
21
Formula/git-delta.rb
Normal file
|
@ -0,0 +1,21 @@
|
|||
class GitDelta < Formula
|
||||
desc "Syntax-highlighting pager for git"
|
||||
homepage "https://github.com/dandavison/delta"
|
||||
url "https://github.com/dandavison/delta.git",
|
||||
:tag => "0.0.12",
|
||||
:revison => "2ba73e32d57075bb8b34181752f977fcbadfe5f5"
|
||||
head "https://github.com/dandavison/delta.git"
|
||||
|
||||
depends_on "rust" => :build
|
||||
uses_from_macos "llvm"
|
||||
|
||||
conflicts_with "delta", :because => "both install a `delta` binary"
|
||||
|
||||
def install
|
||||
system "cargo", "install", "--root", prefix, "--path", "."
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match "delta #{version}", `#{bin}/delta --version`.chomp
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue