Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

valgrind 3.8.0

* changes checksum to sha1
* comments on CFLAGS requirements for 10.8
* add download url for HEAD
* add autotools as dependency for HEAD
* runs autogen for HEAD build
* changes references to MACOS_VERSION to MacOS.version

Closes #14323.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
commit c59910eafc5e71f8756e31479a0a8baee38b58c6 1 parent b946bf7
@rizzatti rizzatti authored jacknagel committed
Showing with 17 additions and 3 deletions.
  1. +17 −3 Library/Formula/valgrind.rb
View
20 Library/Formula/valgrind.rb
@@ -4,17 +4,30 @@ class Valgrind < Formula
homepage 'http://www.valgrind.org/'
# Valgrind 3.7.0 drops support for OS X 10.5
- if MACOS_VERSION >= 10.6
- url 'http://valgrind.org/downloads/valgrind-3.7.0.tar.bz2'
- md5 'a855fda56edf05614f099dca316d1775'
+ if MacOS.version >= 10.6
+ url 'http://valgrind.org/downloads/valgrind-3.8.0.tar.bz2'
+ sha1 '074b09e99b09634f1efa6f7f0f87c7a541fb9b0d'
else
url "http://valgrind.org/downloads/valgrind-3.6.1.tar.bz2"
md5 "2c3aa122498baecc9d69194057ca88f5"
end
+ head 'svn://svn.valgrind.org/valgrind/trunk'
+
+ if build.head?
+ depends_on :autoconf
+ depends_on :automake
+ depends_on :libtool
+ end
+
skip_clean 'lib'
def install
+ # avoid __bzero when building against OS X 10.8 sdk
+ if MacOS.version >= 10.8
+ ENV.remove_from_cflags "-mmacosx-version-min=#{MacOS.version}"
+ end
+
args = ["--prefix=#{prefix}", "--mandir=#{man}"]
if MacOS.prefer_64_bit?
args << "--enable-only64bit" << "--build=amd64-darwin"
@@ -22,6 +35,7 @@ def install
args << "--enable-only32bit"
end
+ system "./autogen.sh" if build.head?
system "./configure", *args
system "make"
system "make install"
Please sign in to comment.
Something went wrong with that request. Please try again.