From f2a2ed1f696a1e707e9e0d6d51ce28f51a63dd31 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Wed, 9 Oct 2019 20:13:26 +0200 Subject: [PATCH] git-delta 0.0.12 (new formula) Closes #45060. Signed-off-by: Rui Chen --- Formula/git-delta.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Formula/git-delta.rb diff --git a/Formula/git-delta.rb b/Formula/git-delta.rb new file mode 100644 index 0000000000..7f70c8b0cd --- /dev/null +++ b/Formula/git-delta.rb @@ -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