aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/llvm.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-04-06 22:58:35 -0700
committerAdam Vandenberg2010-08-07 18:08:53 -0700
commitd0efd9ee94a55e243f3b10e903526274fc21d569 (patch)
treeb21984390a0292957a3819df57c62bac558d284d /Library/Formula/llvm.rb
parentcdf768bc328f01e64e9f74551ff4b40d5cf0da70 (diff)
downloadhomebrew-d0efd9ee94a55e243f3b10e903526274fc21d569.tar.bz2
Update formulae for version 0.7
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
Diffstat (limited to 'Library/Formula/llvm.rb')
-rw-r--r--Library/Formula/llvm.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Formula/llvm.rb b/Library/Formula/llvm.rb
index 9e40d71bf..fe2c3d510 100644
--- a/Library/Formula/llvm.rb
+++ b/Library/Formula/llvm.rb
@@ -14,9 +14,7 @@ class Llvm <Formula
md5 'ac322661f20e7d6c810b1869f886ad9b'
def options
- [
- ['--with-clang', 'Also build & install clang']
- ]
+ [['--with-clang', 'Also build & install clang']]
end
def install
@@ -24,16 +22,14 @@ class Llvm <Formula
if build_clang?
clang_dir = Pathname.new(Dir.pwd)+'tools/clang'
- Clang.new.brew do
- clang_dir.install Dir['*']
- end
+ Clang.new.brew { clang_dir.install Dir['*'] }
end
system "./configure", "--prefix=#{prefix}",
"--enable-targets=host-only",
"--enable-optimized"
- system "make"
- system "make install" # seperate steps required, otherwise the build fails
+ system "make" # seperate steps required, otherwise the build fails
+ system "make install"
if build_clang?
Dir.chdir clang_dir do