git-delta 0.0.12 (new formula)

Closes #45060.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
Dawid Dziurla 2019-10-09 20:13:26 +02:00 committed by Rui Chen
parent 0ebeb19a88
commit f2a2ed1f69

21
Formula/git-delta.rb Normal file
View 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