aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/autopano-sift-c.rb
blob: c670bf5ae4275390dd98453f43ec4f3c202f3269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class AutopanoSiftC < Formula
  homepage 'http://wiki.panotools.org/Autopano-sift-C'
  url 'http://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