22 lines
600 B
Ruby
22 lines
600 B
Ruby
|
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
|