aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ace.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-02-24 12:50:21 -0800
committerAdam Vandenberg2012-02-24 21:35:51 -0800
commit8bf54c485cc793c4bb423dd4f5d02dcc7b67fd7a (patch)
treeb16bfe7af4d56758b68a1b603818cc0ea0791f66 /Library/Formula/ace.rb
parent531a5765099c95f56c0455e0a4686b8952569105 (diff)
downloadhomebrew-8bf54c485cc793c4bb423dd4f5d02dcc7b67fd7a.tar.bz2
Add `buildpath` to Formula
Diffstat (limited to 'Library/Formula/ace.rb')
-rw-r--r--Library/Formula/ace.rb16
1 files changed, 10 insertions, 6 deletions
diff --git a/Library/Formula/ace.rb b/Library/Formula/ace.rb
index da1f38d23..9b1bbc0c5 100644
--- a/Library/Formula/ace.rb
+++ b/Library/Formula/ace.rb
@@ -27,15 +27,19 @@ class Ace < Formula
ln_sf makefile, "include/makeinclude/platform_macros.GNU"
# Set up the environment the way ACE expects during build.
- root=Dir.pwd
- ENV['ACE_ROOT']=root
- ENV['DYLD_LIBRARY_PATH']="#{root}/ace:#{root}/lib"
+ ENV['ACE_ROOT'] = buildpath
+ ENV['DYLD_LIBRARY_PATH'] = "#{buildpath}/ace:#{buildpath}/lib"
# Done! We go ahead and build.
cd "ace" do
- system "make", "-f", "GNUmakefile.ACE", "INSTALL_PREFIX=#{prefix}",
- "LDFLAGS=", "DESTDIR=", "INST_DIR=/ace",
- "debug=0", "shared_libs=1", "static_libs=0", "install"
+ system "make", "-f", "GNUmakefile.ACE",
+ "INSTALL_PREFIX=#{prefix}",
+ "LDFLAGS=",
+ "DESTDIR=",
+ "INST_DIR=/ace",
+ "debug=0",
+ "shared_libs=1", "static_libs=0",
+ "install"
end
end
end