Skip to content

Commit

Permalink
weechat: re-add inreplace "-u _PyMac_Error" flags.
Browse files Browse the repository at this point in the history
this will fix Homebrew/legacy-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>
  • Loading branch information
number5 authored and MikeMcQuaid committed Feb 21, 2014
1 parent 7c88fc2 commit 3b775d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Formula/weechat.rb
Expand Up @@ -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
Expand Down

0 comments on commit 3b775d4

Please sign in to comment.