683fcb0de9
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
35 lines
879 B
Ruby
35 lines
879 B
Ruby
require 'formula'
|
|
|
|
class Teem < Formula
|
|
homepage 'http://teem.sourceforge.net/'
|
|
url 'http://sourceforge.net/projects/teem/files/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
|