homebrew-core/Formula/teem.rb

36 lines
882 B
Ruby
Raw Normal View History

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'
2012-08-25 16:49:11 +00:00
head 'https://teem.svn.sourceforge.net/svnroot/teem/teem/trunk'
depends_on 'cmake' => :build
2012-08-25 16:49:11 +00:00
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"
2012-08-25 16:49:11 +00:00
if build.include? 'experimental-apps'
cmake_args << "-DBUILD_EXPERIMENTAL_APPS:BOOL=ON"
end
2012-08-25 16:49:11 +00:00
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