From e1d17dbe38df5f74eb02bc920b89353866aea389 Mon Sep 17 00:00:00 2001 From: Tim D. Smith Date: Thu, 25 Sep 2014 16:29:16 -0700 Subject: weechat: link to the python in PATH Closes #32657. Signed-off-by: Tim D. Smith --- Library/Formula/weechat.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Library') diff --git a/Library/Formula/weechat.rb b/Library/Formula/weechat.rb index 16e78a549..ac08abd1f 100644 --- a/Library/Formula/weechat.rb +++ b/Library/Formula/weechat.rb @@ -26,10 +26,10 @@ 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' + # builds against the python in PATH by asking cmake to use introspected + # values instead of ignoring them + # https://github.com/weechat/weechat/pull/217 + inreplace "cmake/FindPython.cmake", "PATHS ${", "HINTS ${" args = std_cmake_args + %W[ -DPREFIX=#{prefix} -- cgit v1.2.3