diff options
| author | Adam Vandenberg | 2013-01-26 13:52:14 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-01-26 13:52:14 -0800 |
| commit | 40e0fb11b5d53f071126131031b9bcedd33054ba (patch) | |
| tree | 53033f28f346f7e55ac7b2693f7455c21b927df0 /Library/Formula | |
| parent | 2810026a1062e1523c21e84f88fb410a1c4838ed (diff) | |
| download | homebrew-40e0fb11b5d53f071126131031b9bcedd33054ba.tar.bz2 | |
adol-c: use Python one-liner instead of aardvark_shell_utils
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/adol-c.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Library/Formula/adol-c.rb b/Library/Formula/adol-c.rb index a0425ce05..a936de05c 100644 --- a/Library/Formula/adol-c.rb +++ b/Library/Formula/adol-c.rb @@ -7,14 +7,20 @@ class AdolC < Formula head 'https://projects.coin-or.org/svn/ADOL-C/trunk/', :using => :svn - # realpath is used in configure to find colpack - depends_on 'aardvark_shell_utils' => :build depends_on 'colpack' def install + # Make our own realpath script + (buildpath/'realpath').write <<-EOS.undent + #!/usr/bin/python + import os,sys + print os.path.realpath(sys.argv[1]) + EOS + system "chmod +x ./realpath" + # Configure may get automatically regenerated. So patch configure.ac also. inreplace %w(configure configure.ac) do |s| - s.gsub! "readlink -f", "realpath" + s.gsub! "readlink -f", "/#{buildpath}/realpath" s.gsub! "lib64", "lib" end |
