opencv : Fix style inconsistencies

This commit is contained in:
mwilliammyers 2016-07-15 20:30:37 -06:00
parent 8cf03c209f
commit 0654ee6a10

View File

@ -86,17 +86,22 @@ def install(self, spec, prefix):
'-DWITH_IPP:BOOL=%s' % ('ON' if '+ipp' in spec else 'OFF'), '-DWITH_IPP:BOOL=%s' % ('ON' if '+ipp' in spec else 'OFF'),
'-DWITH_CUDA:BOOL=%s' % ('ON' if '+cuda' in spec else 'OFF'), '-DWITH_CUDA:BOOL=%s' % ('ON' if '+cuda' in spec else 'OFF'),
'-DWITH_QT:BOOL=%s' % ('ON' if '+qt' in spec else 'OFF'), '-DWITH_QT:BOOL=%s' % ('ON' if '+qt' in spec else 'OFF'),
'-DWITH_VTK:BOOL=%s' % ('ON' if '+vtk' in spec else 'OFF')]) '-DWITH_VTK:BOOL=%s' % ('ON' if '+vtk' in spec else 'OFF')
])
if '+gtk' not in spec: if '+gtk' not in spec:
cmake_options.extend(['-DWITH_GTK:BOOL=OFF', cmake_options.extend(['-DWITH_GTK:BOOL=OFF',
'-DWITH_GTK_2_X:BOOL=OFF']) '-DWITH_GTK_2_X:BOOL=OFF'])
elif '^gtkplus@3:' in spec: elif '^gtkplus@3:' in spec:
cmake_options.extend(['-DWITH_GTK:BOOL=ON', cmake_options.extend([
'-DWITH_GTK_2_X:BOOL=OFF']) '-DWITH_GTK:BOOL=ON',
'-DWITH_GTK_2_X:BOOL=OFF'
])
elif '^gtkplus@2:3' in spec: elif '^gtkplus@2:3' in spec:
cmake_options.extend(['-DWITH_GTK:BOOL=OFF', cmake_options.extend([
'-DWITH_GTK_2_X:BOOL=ON']) '-DWITH_GTK:BOOL=OFF',
'-DWITH_GTK_2_X:BOOL=ON'
])
if '+python' in spec: if '+python' in spec:
python = spec['python'] python = spec['python']