modified: diffout.py
[GalaxyCodeBases.git] / etc / Homebrew / valgrind1015.rb
blob232db87e7bf6145943b3e9b5b1aa9d8dc2534b5d
1 class Valgrind < Formula
2   desc "Dynamic analysis tools (memory, debug, profiling)"
3   homepage "http://www.valgrind.org/"
5   stable do
6     url "https://sourceware.org/pub/valgrind/valgrind-3.14.0.tar.bz2"
7     mirror "https://dl.bintray.com/homebrew/mirror/valgrind-3.14.0.tar.bz2"
8     sha256 "037c11bfefd477cc6e9ebe8f193bb237fe397f7ce791b4a4ce3fa1c6a520baa5"
10     depends_on :maximum_macos => :high_sierra
11   end
13   bottle do
14     sha256 "7869473ca1009d871dfcb496cc4d08e0318315d18721854ef42960b76e2ef64d" => :high_sierra
15     sha256 "5ac984d472025c7bbc081e3be88b31f709944cf924945ebe85427f00d7cca73e" => :sierra
16   end
18   head do
19     url "https://github.com/LouisBrunner/valgrind-macos.git"
21     depends_on "autoconf" => :build
22     depends_on "automake" => :build
23     depends_on "libtool" => :build
24   end
26   # Valgrind needs vcpreload_core-*-darwin.so to have execute permissions.
27   # See #2150 for more information.
28   skip_clean "lib/valgrind"
30   def install
31     args = %W[
32       --disable-dependency-tracking
33       --prefix=#{prefix}
34       --enable-only64bit
35       --build=amd64-darwin
36     ]
37     # Look for headers in the SDK on Xcode-only systems: https://bugs.kde.org/show_bug.cgi?id=295084
38     if !MacOS::CLT.installed? || MacOS.version >= 10.14
39       args << "--with-xcode-path=#{MacOS.sdk_path.to_s}"
40     end
42     system "./autogen.sh" if build.head?
43     system "./configure", *args
44     system "make"
45     system "make", "install"
46   end
48   test do
49     system "#{bin}/valgrind", "ls", "-l"
50   end
51 end