Skip to content

Commit

Permalink
adol-c 2.3.0 and adjust inreplace
Browse files Browse the repository at this point in the history
Upgrade adol-c to version 2.3.0
Adjust the inreplace to patch configure.ac also, because this
software tends to recreate configure on Lion and wipe out the
changes we inreplaced.  Tested using clang and llvm.

Signed-off-by: Adam Vandenberg <[email protected]>
  • Loading branch information
nibbles 2bits authored and adamv committed Jun 9, 2012
1 parent d1fb80f commit 922225f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions adol-c.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

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'
md5 '5fe149865b47f77344ff910702da8b99'
url 'http://www.coin-or.org/download/source/ADOL-C/ADOL-C-2.3.0.tgz'
sha1 'd9124ce0b199cb8b841a9a9ec10d1fb31ed11b49'

head 'https://projects.coin-or.org/svn/ADOL-C/trunk/', :using => :svn
# HEAD contains bugfix for NaNs appearing in 2.2.1
Expand All @@ -14,7 +14,8 @@ class AdolC < Formula
depends_on 'colpack'

def install
inreplace "configure" do |s|
# Configure may get automatically regenerated. So patch configure.ac also.
inreplace %w(configure configure.ac) do |s|
s.gsub! "readlink -f", "realpath"
s.gsub! "lib64", "lib"
end
Expand Down

0 comments on commit 922225f

Please sign in to comment.