weechat: re-add inreplace "-u _PyMac_Error" flags.

this will fix Homebrew/homebrew#26610 which failed the build with error:

    no such file or directory: 'Python.framework/Versions/2.7/Python'

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Bruce Wang 2014-02-16 21:08:55 +11:00 committed by Mike McQuaid
parent 7c88fc21a5
commit 3b775d43ec

View file

@ -19,6 +19,11 @@ class Weechat < Formula
option 'with-ruby', 'Build the ruby module'
def install
# this will fix error:
# no such file or directory: 'Python.framework/Versions/2.7/Python'
inreplace 'src/plugins/python/CMakeLists.txt',
'${PYTHON_LFLAGS}', '-u _PyMac_Error'
args = std_cmake_args + %W[
-DPREFIX=#{prefix}
-DENABLE_GTK=OFF