aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-01-04 13:12:38 +0000
committerMike McQuaid2014-01-04 13:35:45 +0000
commit1fbbcd884246d0f695ad939128ec7fecf3c2cc24 (patch)
tree7a61410037233d3a8cb57cc48ba2a240cf536765 /Library/Formula
parent819b80b26629b129347ec9a8607ce5b2714d35d7 (diff)
downloadhomebrew-1fbbcd884246d0f695ad939128ec7fecf3c2cc24.tar.bz2
orfeo: cleanup python usage.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/orfeo.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/Library/Formula/orfeo.rb b/Library/Formula/orfeo.rb
index 9659dd5da..8da2c1fb4 100644
--- a/Library/Formula/orfeo.rb
+++ b/Library/Formula/orfeo.rb
@@ -27,15 +27,7 @@ class Orfeo < Formula
args << '-DBUILD_EXAMPLES=' + ((build.include? 'examples') ? 'ON' : 'OFF')
args << '-DOTB_WRAP_JAVA=' + ((build.include? 'java') ? 'ON' : 'OFF')
args << '-DOTB_USE_PATENTED=' + ((build.include? 'patented') ? 'ON' : 'OFF')
- if python do
- args << '-DOTB_WRAP_PYTHON=ON'
- # For Xcode-only systems, the headers of system's python are inside of Xcode:
- args << "-DPYTHON_INCLUDE_DIR='#{python.incdir}'"
- # Cmake picks up the system's python dylib, even if we have a brewed one:
- args << "-DPYTHON_LIBRARY='#{python.libdir}/lib#{python.xy}.dylib'"
- end; else
- args << '-DOTB_WRAP_PYTHON=OFF'
- end
+ args << '-DOTB_WRAP_PYTHON=OFF' if build.without? 'python'
mkdir 'build' do
system 'cmake', '..', *args