2014-12-07 17:43:46 +00:00
|
|
|
class Icdiff < Formula
|
|
|
|
homepage "https://github.com/jeffkaufman/icdiff"
|
2014-12-22 21:29:14 +00:00
|
|
|
url "https://github.com/jeffkaufman/icdiff/archive/release-1.7.1.tar.gz"
|
|
|
|
sha1 "8af0bb43cb15096fcea1a1ab9a7130d4ca35a058"
|
2014-12-07 17:43:46 +00:00
|
|
|
|
2014-12-22 21:51:22 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "6119783a80f264ca23e220443709e928fcf998b6" => :yosemite
|
|
|
|
sha1 "5a1b2d11e972d003be88ddec44a0289a2bef4fa3" => :mavericks
|
|
|
|
sha1 "d439ece392e2fbaccabfe95408ce5434ec003a13" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-12-07 17:43:46 +00:00
|
|
|
def install
|
|
|
|
bin.install "icdiff", "git-icdiff"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2014-12-08 15:22:07 +00:00
|
|
|
(testpath/"file1").write "test1"
|
|
|
|
(testpath/"file2").write "test2"
|
|
|
|
system "#{bin}/icdiff", "file1", "file2"
|
2014-12-07 17:43:46 +00:00
|
|
|
system "git", "init"
|
|
|
|
system "#{bin}/git-icdiff"
|
|
|
|
end
|
|
|
|
end
|