homebrew-core/Formula/clasp.rb
Brett Koonce fd7185def4 clasp 2.1.3
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-14 13:35:51 -07:00

33 lines
774 B
Ruby

require 'formula'
class Clasp < Formula
homepage 'http://potassco.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/potassco/clasp/2.1.3/clasp-2.1.3-source.tar.gz'
sha1 '2332c9263429d089bb6cd9f2ae96d9e37d614e12'
option 'with-mt', 'Enable multi-thread support'
depends_on 'tbb' if build.include? 'with-mt'
def install
if build.include? 'with-mt'
ENV['TBB30_INSTALL_DIR'] = Formula.factory("tbb").opt_prefix
build_dir = 'build/release_mt'
else
build_dir = 'build/release'
end
args = %W[
--config=release
--prefix=#{prefix}
]
args << "--with-mt" if build.include? 'with-mt'
bin.mkpath
system "./configure.sh", *args
cd build_dir do
system "make install"
end
end
end