aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryce Mecum2014-12-10 13:03:05 -0900
committerTim D. Smith2014-12-10 14:39:27 -0800
commit555f2a0bbbcdee44a3e91c9f4661dd78caa6be08 (patch)
tree68a16129bdc96586ff0dd54e2b04c23822c5e00f
parent02e6d5f175ee0765e7849ddf373df9119bc880b0 (diff)
downloadhomebrew-555f2a0bbbcdee44a3e91c9f4661dd78caa6be08.tar.bz2
weechat: don't patch HEAD
Fix inreplace command so it only runs on the stable release and not git release Closes #34866. Signed-off-by: Tim D. Smith <git@tim-smith.us>
-rw-r--r--Library/Formula/weechat.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/weechat.rb b/Library/Formula/weechat.rb
index 6997571fb..133c95787 100644
--- a/Library/Formula/weechat.rb
+++ b/Library/Formula/weechat.rb
@@ -28,7 +28,9 @@ class Weechat < Formula
# 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 ${"
+ if build.stable?
+ inreplace "cmake/FindPython.cmake", "PATHS ${", "HINTS ${"
+ end
args = std_cmake_args + %W[
-DPREFIX=#{prefix}