homebrew-core/Formula/autopano-sift-c.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

20 lines
551 B
Ruby

require 'formula'
class AutopanoSiftC < Formula
homepage 'http://wiki.panotools.org/Autopano-sift-C'
url 'https://downloads.sourceforge.net/project/hugin/autopano-sift-C/autopano-sift-C-2.5.1/autopano-sift-C-2.5.1.tar.gz'
sha1 'f8c5f4004ae51cb58acc5cedb065ae0ef3e19a8c'
depends_on 'libpano'
depends_on 'cmake' => :build
def install
system "cmake", ".", *std_cmake_args
system "make install"
end
test do
pipe = IO.popen("#{bin}/autopano-sift-c")
assert_match /Version #{Regexp.escape(version)}/, pipe.read
end
end