clasp 2.1.1
Closes Homebrew/homebrew#17170. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
2d4fc07ebc
commit
c6af0eb080
1 changed files with 33 additions and 0 deletions
33
Formula/clasp.rb
Normal file
33
Formula/clasp.rb
Normal file
|
@ -0,0 +1,33 @@
|
|||
require 'formula'
|
||||
|
||||
class Clasp < Formula
|
||||
homepage 'http://potassco.sourceforge.net/'
|
||||
url 'http://downloads.sourceforge.net/project/potassco/clasp/2.1.1/clasp-2.1.1-source.tar.gz'
|
||||
sha1 '4c2bc5fc4b7c9ccfc461dc86a1d449a337602dfe'
|
||||
|
||||
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
|
Loading…
Reference in a new issue