homebrew-core/Formula/icdiff.rb
2017-04-17 00:28:01 -07:00

20 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.9.0.tar.gz"
sha256 "ef64fda913c21be229e1ed967c577edcfc917543293c3bbd6d1a5775a84471cb"
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