aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTim D. Smith2014-09-25 16:29:16 -0700
committerTim D. Smith2014-09-25 22:32:04 -0700
commite1d17dbe38df5f74eb02bc920b89353866aea389 (patch)
treee287590b6d41dae131a6c969214a5433911bb17f /Library
parentf0a77d28cf7dc756dbc9aaf426964d6bc2533613 (diff)
downloadhomebrew-e1d17dbe38df5f74eb02bc920b89353866aea389.tar.bz2
weechat: link to the python in PATH
Closes #32657. Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/weechat.rb8
1 files changed, 4 insertions, 4 deletions
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}