diff options
| author | Dominik Moritz | 2013-01-18 14:07:23 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2013-01-19 14:01:33 -0800 |
| commit | a757fa16da5e0d13d48cbae0b01df7224137fb9c (patch) | |
| tree | 6ee8dc1ae018e45cf70b3c2127672bd1abb01415 /Library/Formula/clasp.rb | |
| parent | 07922fd4cdf4305d5807929413ba2cb630701f70 (diff) | |
| download | homebrew-a757fa16da5e0d13d48cbae0b01df7224137fb9c.tar.bz2 | |
clasp 2.1.1
Closes #17170.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/clasp.rb')
| -rw-r--r-- | Library/Formula/clasp.rb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/clasp.rb b/Library/Formula/clasp.rb new file mode 100644 index 000000000..967ae935a --- /dev/null +++ b/Library/Formula/clasp.rb @@ -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 |
