weechat: cleanup python usage.
This commit is contained in:
parent
7f90eccaee
commit
d72f8b4f2a
1 changed files with 2 additions and 8 deletions
|
@ -36,6 +36,7 @@ class Weechat < Formula
|
|||
args << '-DENABLE_RUBY=OFF' unless build.with? 'ruby'
|
||||
args << '-DENABLE_ASPELL=OFF' unless build.with? 'aspell'
|
||||
args << '-DENABLE_GUILE=OFF' unless build.with? 'guile'
|
||||
args << '-DENABLE_PYTHON=OFF' unless build.with? 'python'
|
||||
|
||||
# NLS/gettext support disabled for now since it doesn't work in stdenv
|
||||
# see https://github.com/Homebrew/homebrew/issues/18722
|
||||
|
@ -43,14 +44,7 @@ class Weechat < Formula
|
|||
args << '..'
|
||||
|
||||
mkdir 'build' do
|
||||
if python do
|
||||
system 'cmake', *args
|
||||
end
|
||||
else
|
||||
# The same cmake call but without any python set up.
|
||||
args << '-DENABLE_PYTHON=OFF'
|
||||
system 'cmake', *args
|
||||
end
|
||||
system 'cmake', *args
|
||||
system 'make install'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue