2011-05-22 05:49:24 +00:00
|
|
|
class Kdiff3 < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Compare and merge 2 or 3 files or directories"
|
2014-07-26 16:46:41 +00:00
|
|
|
homepage "http://kdiff3.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/kdiff3/kdiff3/0.9.98/kdiff3-0.9.98.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "802c1ababa02b403a5dca15955c01592997116a24909745016931537210fd668"
|
2011-05-22 05:49:24 +00:00
|
|
|
|
2014-07-26 16:46:41 +00:00
|
|
|
depends_on "qt"
|
2011-05-22 05:49:24 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# configure builds the binary
|
|
|
|
system "./configure", "qt4"
|
2014-02-01 18:10:34 +00:00
|
|
|
prefix.install "releaseQt/kdiff3.app"
|
|
|
|
bin.install_symlink prefix+"kdiff3.app/Contents/MacOS/kdiff3"
|
|
|
|
end
|
2014-02-01 18:14:57 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test1.in").write "test"
|
|
|
|
(testpath/"test2.in").write "test"
|
|
|
|
system "#{bin}/kdiff3", "--auto", "test1.in", "test2.in", "-o", "test.out"
|
|
|
|
assert (testpath/"test.out").exist?
|
2011-05-22 05:49:24 +00:00
|
|
|
end
|
|
|
|
end
|