aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/valgrind.rb
blob: 6331f6d96826a09a43643f507070e0df72b935a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Valgrind <Formula
  url 'http://www.valgrind.org/downloads/valgrind-3.5.0.tar.bz2'
  homepage 'http://www.valgrind.org/'
  md5 'f03522a4687cf76c676c9494fcc0a517'

  def install
    opoo "Valgrind 3.5.0 doesn't support Snow Leopard; see caveats." if MACOS_VERSION > 10.5
    system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
    system "make install"
  end

  def caveats
    if MACOS_VERSION > 10.5
      "Valgrind does not work on Snow Leopard / 64-bit mode. See:\n"+
      "    http://bugs.kde.org/show_bug.cgi?id=205241"
    end
  end
end