llvm: simplify installing resource

This commit is contained in:
Adam Vandenberg 2014-05-12 12:37:24 -07:00
parent 0aea4e0283
commit 1ae2fcae1b

View file

@ -28,9 +28,7 @@ class Llvm < Formula
raise 'The Python bindings need the shared library.'
end
resource('clang').stage do
(buildpath/'tools/clang').install Dir['*']
end if build.with? 'clang'
(buildpath/"tools/clang").install resource("clang") if build.with? "clang"
if build.universal?
ENV['UNIVERSAL'] = '1'