2012-02-09 18:59:21 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Teem < Formula
|
|
|
|
homepage 'http://teem.sourceforge.net/'
|
2013-06-20 23:08:35 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/teem/teem/1.11.0/teem-1.11.0-src.tar.gz'
|
2013-01-03 16:24:56 +00:00
|
|
|
sha1 'faafa0362abad37591bc1d01441730af462212f9'
|
2012-08-25 16:49:11 +00:00
|
|
|
|
2012-02-09 18:59:21 +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"
|
2012-02-09 18:59:21 +00:00
|
|
|
|
|
|
|
def install
|
2012-05-22 21:37:04 +00:00
|
|
|
cmake_args = std_cmake_args
|
2012-02-09 18:59:21 +00:00
|
|
|
cmake_args << "-DBUILD_SHARED_LIBS:BOOL=ON"
|
|
|
|
|
2012-08-25 16:49:11 +00:00
|
|
|
if build.include? 'experimental-apps'
|
2012-02-09 18:59:21 +00:00
|
|
|
cmake_args << "-DBUILD_EXPERIMENTAL_APPS:BOOL=ON"
|
|
|
|
end
|
2012-08-25 16:49:11 +00:00
|
|
|
if build.include? 'experimental-libs'
|
2012-02-09 18:59:21 +00:00
|
|
|
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
|