homebrew-core/Formula/teem.rb
Victor Martinez 8dc451e3e2 Fixed several broken sourceforge.net download locations
Closes Homebrew/homebrew#20645.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-30 12:17:57 -07:00

35 lines
882 B
Ruby

require 'formula'
class Teem < Formula
homepage 'http://teem.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/teem/teem/1.11.0/teem-1.11.0-src.tar.gz'
sha1 'faafa0362abad37591bc1d01441730af462212f9'
head 'https://teem.svn.sourceforge.net/svnroot/teem/teem/trunk'
depends_on 'cmake' => :build
option 'experimental-apps', "Build experimental apps"
option 'experimental-libs', "Build experimental libs"
def install
cmake_args = std_cmake_args
cmake_args << "-DBUILD_SHARED_LIBS:BOOL=ON"
if build.include? 'experimental-apps'
cmake_args << "-DBUILD_EXPERIMENTAL_APPS:BOOL=ON"
end
if build.include? 'experimental-libs'
cmake_args << "-DBUILD_EXPERIMENTAL_LIBS:BOOL=ON"
end
cmake_args << "."
system "cmake", *cmake_args
system "make install"
end
def test
system "#{bin}/nrrdSanity"
end
end