diff options
| author | brada | 2012-01-25 23:25:54 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-04-17 21:27:59 -0700 |
| commit | fd665c81f0b1b4036a8aca2bd92da1244f75606a (patch) | |
| tree | 6f7bd645ccc9eb103b8ff853c9748fbdaff76564 /Library | |
| parent | fbf12f34763f723f803f36041988bc20143eb061 (diff) | |
| download | homebrew-fd665c81f0b1b4036a8aca2bd92da1244f75606a.tar.bz2 | |
adol-c: add trunk and colpack
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/adol-c.rb | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/Library/Formula/adol-c.rb b/Library/Formula/adol-c.rb index 16ec73ec6..fe2c9ba3b 100644 --- a/Library/Formula/adol-c.rb +++ b/Library/Formula/adol-c.rb @@ -1,14 +1,28 @@ require 'formula' class AdolC < Formula + homepage 'https://projects.coin-or.org/ADOL-C' url 'http://www.coin-or.org/download/source/ADOL-C/ADOL-C-2.2.1.tgz' - homepage 'http://www.coin-or.org/projects/ADOL-C.xml' md5 '5fe149865b47f77344ff910702da8b99' + head 'https://projects.coin-or.org/svn/ADOL-C/trunk/', :using => :svn + # HEAD contains bugfix for NaNs appearing in 2.2.1 + # http://answerpot.com/showthread.php?2997935-sparse_jac+return+unreasonable+NaN's + + # realpath is used in configure to find colpack + depends_on 'aardvark_shell_utils' => :build + depends_on 'colpack' + def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}" + inreplace "configure" do |s| + s.gsub! "readlink -f", "realpath" + s.gsub! "lib64", "lib" + end + + system "./configure", "--prefix=#{prefix}", + "--enable-sparse", + "--with-colpack=#{HOMEBREW_PREFIX}" system "make install" + system "make test" end - end |
