2011-03-10 05:11:03 +00:00
|
|
|
class Fmdiff < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Use FileMerge as a diff command for Subversion and Mercurial"
|
2015-03-12 23:44:34 +00:00
|
|
|
homepage "https://www.defraine.net/~brunod/fmdiff/"
|
|
|
|
url "http://bruno.defraine.net/fmdiff/fmscripts-20120813.tar.gz"
|
|
|
|
sha256 "7312654040acc29787c15fb2b6d53abe0a397fb9faec6bf43398d25bb31f38ee"
|
2012-02-07 02:49:34 +00:00
|
|
|
|
2015-03-19 11:07:54 +00:00
|
|
|
bottle do
|
|
|
|
sha256 "a713fc8fb048aaaac4dcac2a79933a54ff229d5ede4024a10399255f2114c502" => :yosemite
|
|
|
|
sha256 "bbce86236cc094efb560d2f4492bb35e49ff45aefc99d063192232ea4f6a6fcb" => :mavericks
|
|
|
|
sha256 "6ed6345bf6d69a8d33f6f6f72c836088ed10deaf397f8d2742059f810c14aaa2" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-03-12 23:44:34 +00:00
|
|
|
head "http://soft.vub.ac.be/svn-gen/bdefrain/fmscripts/", :using => :svn
|
2011-03-11 15:41:55 +00:00
|
|
|
|
|
|
|
def install
|
2015-03-12 23:44:34 +00:00
|
|
|
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"))
|
2011-03-11 15:41:55 +00:00
|
|
|
end
|
|
|
|
end
|