From 555f2a0bbbcdee44a3e91c9f4661dd78caa6be08 Mon Sep 17 00:00:00 2001 From: Bryce Mecum Date: Wed, 10 Dec 2014 13:03:05 -0900 Subject: 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 --- Library/Formula/weechat.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library/Formula') 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} -- cgit v1.2.3