|
1 | 1 | require 'formula'
|
2 | 2 |
|
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 |
| - |
9 | 3 | class Valgrind <Formula
|
10 | 4 | homepage 'http://www.valgrind.org/'
|
11 | 5 |
|
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 |
14 | 11 | url 'http://www.valgrind.org/downloads/valgrind-3.5.0.tar.bz2'
|
15 | 12 | md5 'f03522a4687cf76c676c9494fcc0a517'
|
16 | 13 | end
|
17 | 14 |
|
18 |
| - head "svn://svn.valgrind.org/valgrind/trunk", :revision => "11255" |
| 15 | + head "svn://svn.valgrind.org/valgrind/trunk" |
19 | 16 |
|
20 | 17 | depends_on 'pkg-config'
|
21 | 18 | depends_on 'boost'
|
22 | 19 |
|
23 | 20 | def install
|
24 |
| - args = ["--prefix=#{prefix}", "--mandir=#{man}"] |
| 21 | + system "./autogen.sh" if File.exists? "autogen.sh" |
25 | 22 |
|
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? |
37 | 25 | args << "--enable-only64bit" << "--build=amd64-darwin"
|
38 | 26 | end
|
39 | 27 |
|
|
0 commit comments