valgrind: build on Xcode-only systems

This time, don't use lookbehind which Ruby 1.8.7 doesn't have.

Closes Homebrew/homebrew#45851.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Tamir Duberstein 2015-11-09 19:23:16 -05:00 committed by Dominyk Tiller
parent 1107da88c6
commit 5ed84e3f06

View file

@ -39,6 +39,12 @@ class Valgrind < Formula
end
system "./autogen.sh" if build.head?
# Look for headers in the SDK on Xcode-only systems: https://bugs.kde.org/show_bug.cgi?id=295084
unless MacOS::CLT.installed?
inreplace "coregrind/Makefile.in", %r{(\s)(?=/usr/include/mach/)}, '<\1>'+MacOS.sdk_path.to_s
end
system "./configure", *args
system "make"
system "make", "install"