homebrew-core/Formula/icdiff.rb

21 lines
532 B
Ruby

class Icdiff < Formula
desc "Improved colored diff"
homepage "https://github.com/jeffkaufman/icdiff"
url "https://github.com/jeffkaufman/icdiff/archive/release-1.8.1.tar.gz"
sha256 "57a2f1164e9cce98e44cba35473203a19034e919a69762589779f54f4612d8f7"
bottle :unneeded
def install
bin.install "icdiff", "git-icdiff"
end
test do
(testpath/"file1").write "test1"
(testpath/"file2").write "test2"
system "#{bin}/icdiff", "file1", "file2"
system "git", "init"
system "#{bin}/git-icdiff"
end
end