Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 9779ff5

Browse files
committed
Tweaks to valgrind
1 parent b2a5545 commit 9779ff5

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

Library/Formula/valgrind.rb

+9-21
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,27 @@
11
require 'formula'
22

3-
class Autoconf267 <Formula
4-
url 'http://ftp.gnu.org/gnu/autoconf/autoconf-2.67.tar.bz2'
5-
md5 '3fbf92eb8eaca1e0d33dff9710edb5f0'
6-
homepage 'http://www.gnu.org/software/autoconf/'
7-
end
8-
93
class Valgrind <Formula
104
homepage 'http://www.valgrind.org/'
115

12-
# Stable release doesn't work in 64-bit mode
13-
if MACOS_VERSION == 10.5
6+
# 3.5.0 doesn't work well in Snow Leopard, or at all in 64-bit mode
7+
if MACOS_VERSION >= 10.6
8+
url "svn://svn.valgrind.org/valgrind/trunk", :revision => "11288"
9+
version '3.6-pre'
10+
else
1411
url 'http://www.valgrind.org/downloads/valgrind-3.5.0.tar.bz2'
1512
md5 'f03522a4687cf76c676c9494fcc0a517'
1613
end
1714

18-
head "svn://svn.valgrind.org/valgrind/trunk", :revision => "11255"
15+
head "svn://svn.valgrind.org/valgrind/trunk"
1916

2017
depends_on 'pkg-config'
2118
depends_on 'boost'
2219

2320
def install
24-
args = ["--prefix=#{prefix}", "--mandir=#{man}"]
21+
system "./autogen.sh" if File.exists? "autogen.sh"
2522

26-
if MACOS_VERSION >= 10.6
27-
# OS X comes with 2.61, which is too old
28-
ac_prefix = Pathname.pwd+'ac267'
29-
Autoconf267.new.brew do |f|
30-
system "./configure", "--prefix=#{ac_prefix}"
31-
system "make install"
32-
end
33-
34-
ENV.prepend "PATH", ac_prefix+'bin', ":"
35-
36-
system "./autogen.sh" if File.exists? "autogen.sh"
23+
args = ["--prefix=#{prefix}", "--mandir=#{man}"]
24+
if snow_leopard_64?
3725
args << "--enable-only64bit" << "--build=amd64-darwin"
3826
end
3927

0 commit comments

Comments
 (0)