2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-10 22:39:59 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class GooglePerftools < Formula
|
2012-08-28 17:16:53 +00:00
|
|
|
# TODO rename to gperftools when renames are supported
|
|
|
|
homepage 'http://code.google.com/p/gperftools/'
|
|
|
|
url 'http://gperftools.googlecode.com/files/gperftools-2.0.tar.gz'
|
|
|
|
sha1 'da7181a7ba9b5ee7302daf6c16e886c179fe8d1b'
|
2009-10-10 22:39:59 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2326
|
|
|
|
cause "Segfault during linking"
|
|
|
|
end
|
2011-01-22 21:45:20 +00:00
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
def install
|
2010-02-27 07:12:53 +00:00
|
|
|
ENV.append_to_cflags '-D_XOPEN_SOURCE'
|
2011-12-03 17:03:10 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2010-02-27 07:12:53 +00:00
|
|
|
"--prefix=#{prefix}"
|
2009-10-10 22:39:59 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|