aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2013-01-26 13:52:14 -0800
committerAdam Vandenberg2013-01-26 13:52:14 -0800
commit40e0fb11b5d53f071126131031b9bcedd33054ba (patch)
tree53033f28f346f7e55ac7b2693f7455c21b927df0 /Library/Formula
parent2810026a1062e1523c21e84f88fb410a1c4838ed (diff)
downloadhomebrew-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.rb12
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