diff options
| author | Xiyue Deng | 2013-08-23 04:03:31 -0700 |
|---|---|---|
| committer | Xiyue Deng | 2013-08-29 00:46:09 -0700 |
| commit | 215cbbc78fce27472f6557517a5a98e6d019348f (patch) | |
| tree | e9b849bf5477ed644f82650e03a4fa6f0f5c808b /Library/Formula | |
| parent | ae4030962605f12eb435327f540cf91590b7fbec (diff) | |
| download | homebrew-215cbbc78fce27472f6557517a5a98e6d019348f.tar.bz2 | |
More tweaks for llvm.
* Port more changes from llvm formulae of homebrew-versions.
- Don't install Clang tools.
* Remove all man pages.
- Currently only clang.1 is available, and we don't ship clang binary
in core.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/llvm.rb | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/Library/Formula/llvm.rb b/Library/Formula/llvm.rb index c4ab475e8..04f64c8d5 100644 --- a/Library/Formula/llvm.rb +++ b/Library/Formula/llvm.rb @@ -29,13 +29,13 @@ class Llvm < Formula env :std if build.universal? def install - if build.with? 'python' and build.include? 'disable-shared' + if python and build.include? 'disable-shared' raise 'The Python bindings need the shared library.' end Clang.new("clang").brew do - clang_dir.install Dir['*'] - end if build.include? 'with-clang' + (buildpath/'tools/clang').install Dir['*'] + end if build.with? 'clang' if build.universal? ENV['UNIVERSAL'] = '1' @@ -68,18 +68,14 @@ class Llvm < Formula # install llvm python bindings if python python.site_packages.install buildpath/'bindings/python/llvm' + python.site_packages.install buildpath/'tools/clang/bindings/python/clang' if build.with? 'clang' end - # Install clang tools and bindings - cd clang_dir do - (share/'clang/tools').install 'tools/scan-build', 'tools/scan-view' - python.site_packages.install 'bindings/python/clang' if python - end if build.include? 'with-clang' - # Remove all binaries except llvm-config - Dir[bin/'*'].each do |exec_path| - rm_f exec_path unless File.basename(exec_path) == 'llvm-config' - end + rm_f Dir["#{bin}/*"] - Dir["#{bin}/llvm-config"] + + # Remove all man pages + man.rmtree if build.with? 'clang' end def test @@ -105,7 +101,4 @@ class Llvm < Formula EOS end - def clang_dir - buildpath/'tools/clang' - end end |
