Skip to content

Commit

Permalink
valgrind: apply 10.9 patch and cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Jan 21, 2014
1 parent 6e5afe9 commit 173a498
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Library/Formula/valgrind.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ class Valgrind < Formula
homepage 'http://www.valgrind.org/'
url 'http://valgrind.org/downloads/valgrind-3.9.0.tar.bz2'
sha1 '9415e28933de9d6687f993c4bb797e6bd49583f1'
head 'svn://svn.valgrind.org/valgrind/trunk'

head do
url 'svn://svn.valgrind.org/valgrind/trunk'

if build.head? || MacOS.version == :mavericks
depends_on :autoconf
depends_on :automake
depends_on :libtool
Expand All @@ -24,10 +23,13 @@ def patches
# add missing CFLAGS. See: https://bugs.kde.org/show_bug.cgi?id=295084
# 2: Fix for 10.7.4 w/XCode-4.5, duplicate symbols. Reported upstream in
# https://bugs.kde.org/show_bug.cgi?id=307415
# 3: Fix for 10.9 Mavericks. From upstream bug:
# https://bugs.kde.org/show_bug.cgi?id=326724#c12
p = []
p << 'https://gist.github.com/raw/3784836/f046191e72445a2fc8491cb6aeeabe84517687d9/patch1.diff' unless MacOS::CLT.installed?
p << 'https://gist.github.com/raw/3784930/dc8473c0ac5274f6b7d2eb23ce53d16bd0e2993a/patch2.diff' if MacOS.version == :lion
return p
p << 'https://gist.github.com/mckelvin/8514475/raw/1939e5dfeb1dfc2974582f0dbbf5e3aaeb46d17a/valgrind-3.9.0-marericks.patch' if MacOS.version == :mavericks
p
end

def install
Expand All @@ -41,10 +43,10 @@ def install
args << "--enable-only32bit"
end

system "./autogen.sh" if build.head?
system "./autogen.sh" if build.head? || MacOS.version == :mavericks
system "./configure", *args
system 'make'
system "make install"
system "make"
system "make", "install"
end

def test
Expand Down

0 comments on commit 173a498

Please sign in to comment.