llvm: install scan-view and scan-build

Closes Homebrew/homebrew#33777.
This commit is contained in:
Jack Nagel 2014-12-30 20:24:00 -05:00
parent 621b5a4061
commit 543ccb699a

View file

@ -110,6 +110,11 @@ class Llvm < Formula
if build.with? "clang"
system "make", "-C", "projects/libcxx", "install",
"DSTROOT=#{prefix}", "SYMROOT=#{buildpath}/projects/libcxx"
(share/"clang/tools").install Dir["tools/clang/tools/scan-{build,view}"]
inreplace "#{share}/clang/tools/scan-build/scan-build", "$RealBin/bin/clang", "#{bin}/clang"
bin.install_symlink share/"clang/tools/scan-build/scan-build", share/"clang/tools/scan-view/scan-view"
man1.install_symlink share/"clang/tools/scan-build/scan-build.1"
end
# install llvm python bindings