aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2011-09-04 20:43:17 -0500
committerJack Nagel2011-09-04 21:34:13 -0500
commit0512bc868a16f9b56ac0ced5d9933e7a515e5268 (patch)
tree9472c2dc6aa188717c2fe82cfe6ebed29ef342f7 /Library
parent9d5e895f8647cc0a8a1f6c6e36d4bb858c84afc1 (diff)
downloadhomebrew-0512bc868a16f9b56ac0ced5d9933e7a515e5268.tar.bz2
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>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gtest.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/gtest.rb b/Library/Formula/gtest.rb
index a483c4a79..1457c8cb2 100644
--- a/Library/Formula/gtest.rb
+++ b/Library/Formula/gtest.rb
@@ -7,6 +7,9 @@ class Gtest < Formula
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