2019-10-09 18:13:26 +00:00
|
|
|
class GitDelta < Formula
|
|
|
|
desc "Syntax-highlighting pager for git"
|
|
|
|
homepage "https://github.com/dandavison/delta"
|
2019-11-03 13:49:03 +00:00
|
|
|
url "https://github.com/dandavison/delta/archive/0.0.14.tar.gz"
|
|
|
|
sha256 "777b90bb20c89b63eb158d238dfb38914c3bc4617d65f8a0e465227f9c6884f9"
|
2019-10-09 18:13:26 +00:00
|
|
|
head "https://github.com/dandavison/delta.git"
|
|
|
|
|
2019-10-09 19:44:55 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2019-11-03 14:12:04 +00:00
|
|
|
sha256 "84e58fc97ad0057fefb99d0a54dd55b144036983e1e8c0288c6db81f283698cc" => :catalina
|
|
|
|
sha256 "85d6b34b4896986a1922ccefbae41819f50b5d7d1003d5a74559452af6c4324c" => :mojave
|
|
|
|
sha256 "b88d314815bc4701d835a60c15e50d9b0ff91c48bcec13f5297228cfa15bbeba" => :high_sierra
|
2019-10-09 19:44:55 +00:00
|
|
|
end
|
|
|
|
|
2019-10-09 18:13:26 +00:00
|
|
|
depends_on "rust" => :build
|
|
|
|
uses_from_macos "llvm"
|
|
|
|
|
|
|
|
conflicts_with "delta", :because => "both install a `delta` binary"
|
|
|
|
|
|
|
|
def install
|
2019-11-03 01:30:34 +00:00
|
|
|
system "cargo", "install", "--locked", "--root", prefix, "--path", "."
|
2019-10-09 18:13:26 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match "delta #{version}", `#{bin}/delta --version`.chomp
|
|
|
|
end
|
|
|
|
end
|