Files
tigerbrew/Library/Formula/gtest.rb
T
Jack Nagel 0512bc868a gtest: fix gtest-config --libs invocation
The gtest-config script tries to be clever in determining its install
location, but Homebrew's cellar/prefix and symlinks confuse it. This
works around the 'cleverness' by lying to gtest-config.

Fixes #7009.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-04 21:34:13 -05:00

16 lines
561 B
Ruby

require 'formula'
class Gtest < Formula
url 'http://googletest.googlecode.com/files/gtest-1.5.0.tar.gz'
homepage 'http://code.google.com/p/googletest/'
md5 '7e27f5f3b79dd1ce9092e159cdbd0635'
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
# gtest-config tries to be clever in locating libraries, but Homebrew's
# Cellar confuses it. This lets `gtest-config --libs` work correctly
inreplace 'scripts/gtest-config', '`dirname $0`', '$bindir'
system "make install"
end
end