From f7e418fa273deba0fbcddb13913c157e8fa7c5b3 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 18 May 2011 16:12:27 +0100 Subject: Only apply Valgrind patch on Xcode 4. --- Library/Formula/valgrind.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/valgrind.rb b/Library/Formula/valgrind.rb index a16da2bb7..4ffc00aca 100644 --- a/Library/Formula/valgrind.rb +++ b/Library/Formula/valgrind.rb @@ -1,4 +1,5 @@ require 'formula' +require 'utils' class Valgrind < Formula homepage 'http://www.valgrind.org/' @@ -15,7 +16,9 @@ class Valgrind < Formula def patches # Xcode 4 fix from upstream r11686 # https://bugs.kde.org/show_bug.cgi?id=267997 - { :p0 => DATA } + if MacOS.xcode_version >= "4.0.0" + { :p0 => DATA } + end end def install -- cgit v1.2.3