homebrew-core/Formula/kdiff3.rb
Jaime Marquínez Ferrándiz 74c83fa9f6 Batch convert http download urls from SourceForge to https
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-02 09:16:53 -08:00

23 lines
660 B
Ruby

require 'formula'
class Kdiff3 < Formula
homepage 'http://kdiff3.sourceforge.net/'
url 'https://downloads.sourceforge.net/project/kdiff3/kdiff3/0.9.97/kdiff3-0.9.97.tar.gz'
sha1 '1f2828c4b287b905bac64992b46a3e9231319547'
depends_on 'qt'
def install
# configure builds the binary
system "./configure", "qt4"
prefix.install "releaseQt/kdiff3.app"
bin.install_symlink prefix+"kdiff3.app/Contents/MacOS/kdiff3"
end
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?
end
end