llvm: install all tools, make keg-only.
Closes Homebrew/homebrew#24263.
This commit is contained in:
parent
8253231604
commit
3447f0447e
1 changed files with 2 additions and 13 deletions
|
@ -28,6 +28,8 @@ class Llvm < Formula
|
|||
|
||||
env :std if build.universal?
|
||||
|
||||
keg_only :provided_by_osx
|
||||
|
||||
def install
|
||||
if python and build.include? 'disable-shared'
|
||||
raise 'The Python bindings need the shared library.'
|
||||
|
@ -70,12 +72,6 @@ class Llvm < Formula
|
|||
python.site_packages.install buildpath/'bindings/python/llvm'
|
||||
python.site_packages.install buildpath/'tools/clang/bindings/python/clang' if build.with? 'clang'
|
||||
end
|
||||
|
||||
# Remove all binaries except llvm-config
|
||||
rm_f Dir["#{bin}/*"] - Dir["#{bin}/llvm-config"]
|
||||
|
||||
# Remove all man pages
|
||||
man.rmtree if build.with? 'clang'
|
||||
end
|
||||
|
||||
def test
|
||||
|
@ -86,13 +82,6 @@ class Llvm < Formula
|
|||
s = ''
|
||||
s += python.standard_caveats if python
|
||||
s += <<-EOS.undent
|
||||
This formula only provide library components of LLVM. To use full
|
||||
featured LLVM please try the llvm* formulae in homebrew-versions tap,
|
||||
for instance:
|
||||
|
||||
brew tap homebrew/versions
|
||||
brew install llvm33
|
||||
|
||||
Extra tools are installed in #{share}/llvm and #{share}/clang.
|
||||
|
||||
If you already have LLVM installed, then "brew upgrade llvm" might not work.
|
||||
|
|
Loading…
Reference in a new issue