diff options
| author | Charlie Sharpsteen | 2011-10-13 19:30:05 -0700 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-10-13 19:30:05 -0700 |
| commit | 5de0afed6d6c70d78d5efb350b728b33673a85bd (patch) | |
| tree | 3d7cd2d6b3aec01f130965ea57d967cabf2468cf /Library | |
| parent | 7eb097b7576f76f5a6861e97f3ec0d55bc5242a1 (diff) | |
| download | homebrew-5de0afed6d6c70d78d5efb350b728b33673a85bd.tar.bz2 | |
Valgrind: Fix XCode 4.0 patch
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/valgrind.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Library/Formula/valgrind.rb b/Library/Formula/valgrind.rb index f2b22043a..c5a304f8c 100644 --- a/Library/Formula/valgrind.rb +++ b/Library/Formula/valgrind.rb @@ -16,7 +16,7 @@ class Valgrind < Formula def patches # Xcode 4 fix from upstream r11686 # https://bugs.kde.org/show_bug.cgi?id=267997 - DATA + {:p0 => DATA} end if MacOS.xcode_version >= "4.0" and not ARGV.build_head? def install @@ -32,8 +32,11 @@ class Valgrind < Formula args = ["--prefix=#{prefix}", "--mandir=#{man}"] args << "--enable-only64bit" << "--build=amd64-darwin" if MacOS.prefer_64_bit? - # Remove the `xcode_version` piece after the next update. - system "./autogen.sh" if MacOS.xcode_version >= "4.0" or ARGV.build_head? + # Remove when Xcode 4 fix is removed + system "autoreconf -ivf" if MacOS.xcode_version >= "4.0" and not ARGV.build_head? + + system "./autogen.sh" if ARGV.build_head? + system "./configure", *args system "make install" end |
