homebrew-core/Formula/fmdiff.rb

35 lines
1 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Fmdiff < Formula
desc "Use FileMerge as a diff command for Subversion and Mercurial"
homepage "https://www.defraine.net/~brunod/fmdiff/"
url "http://bruno.defraine.net/fmdiff/fmscripts-20120813.tar.gz"
sha256 "7312654040acc29787c15fb2b6d53abe0a397fb9faec6bf43398d25bb31f38ee"
2015-03-19 11:07:54 +00:00
bottle do
sha256 "a713fc8fb048aaaac4dcac2a79933a54ff229d5ede4024a10399255f2114c502" => :yosemite
sha256 "bbce86236cc094efb560d2f4492bb35e49ff45aefc99d063192232ea4f6a6fcb" => :mavericks
sha256 "6ed6345bf6d69a8d33f6f6f72c836088ed10deaf397f8d2742059f810c14aaa2" => :mountain_lion
end
head "http://soft.vub.ac.be/svn-gen/bdefrain/fmscripts/", :using => :svn
def install
system "make"
system "make", "DESTDIR=#{bin}", "install"
end
test do
ENV.prepend_path "PATH", testpath
# dummy filemerge script
(testpath/"filemerge").write <<-EOS.undent
#!/bin/sh
echo "it works"
EOS
chmod 0744, testpath/"filemerge"
touch "test"
assert_match(/it works/, shell_output("#{bin}/fmdiff test test"))
end
end