diff options
| author | Mike McQuaid | 2014-01-23 20:49:15 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-01-24 17:31:47 +0000 |
| commit | 7b9dd2b9e44373aeae370cc3691e5d0981431aff (patch) | |
| tree | cd857a344319450c0a99310218f2d79b7dd8086f | |
| parent | 6ea4d0cb754f9f308828510617e0042ccfd98380 (diff) | |
| download | homebrew-7b9dd2b9e44373aeae370cc3691e5d0981431aff.tar.bz2 | |
llvm: cleanup python usage (again).
| -rw-r--r-- | Library/Formula/llvm.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Formula/llvm.rb b/Library/Formula/llvm.rb index d6239fd04..55c5b5f15 100644 --- a/Library/Formula/llvm.rb +++ b/Library/Formula/llvm.rb @@ -31,7 +31,7 @@ class Llvm < Formula keg_only :provided_by_osx def install - if python and build.include? 'disable-shared' + if build.with? "python" and build.include? 'disable-shared' raise 'The Python bindings need the shared library.' end @@ -68,7 +68,7 @@ class Llvm < Formula system 'make', 'VERBOSE=1', 'install' # install llvm python bindings - if python + if build.with? "python" (lib+'python2.7/site-packages').install buildpath/'bindings/python/llvm' (lib+'python2.7/site-packages').install buildpath/'tools/clang/bindings/python/clang' if build.with? 'clang' end @@ -87,5 +87,4 @@ class Llvm < Formula brew rm llvm && brew install llvm EOS end - end |
