Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/mxcl/homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
jocelynmallon committed Oct 14, 2011
2 parents 87e31ee + 5de0afe commit edf6f9a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Library/Formula/valgrind.rb
Expand Up @@ -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
Expand All @@ -32,8 +32,11 @@ def install
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
Expand Down

0 comments on commit edf6f9a

Please sign in to comment.