homebrew-core/Formula/git-delta.rb
2019-11-03 23:17:59 +09:00

27 lines
945 B
Ruby

class GitDelta < Formula
desc "Syntax-highlighting pager for git"
homepage "https://github.com/dandavison/delta"
url "https://github.com/dandavison/delta/archive/0.0.14.tar.gz"
sha256 "777b90bb20c89b63eb158d238dfb38914c3bc4617d65f8a0e465227f9c6884f9"
head "https://github.com/dandavison/delta.git"
bottle do
cellar :any_skip_relocation
sha256 "84e58fc97ad0057fefb99d0a54dd55b144036983e1e8c0288c6db81f283698cc" => :catalina
sha256 "85d6b34b4896986a1922ccefbae41819f50b5d7d1003d5a74559452af6c4324c" => :mojave
sha256 "b88d314815bc4701d835a60c15e50d9b0ff91c48bcec13f5297228cfa15bbeba" => :high_sierra
end
depends_on "rust" => :build
uses_from_macos "llvm"
conflicts_with "delta", :because => "both install a `delta` binary"
def install
system "cargo", "install", "--locked", "--root", prefix, "--path", "."
end
test do
assert_match "delta #{version}", `#{bin}/delta --version`.chomp
end
end