diff options
| author | William Woodall | 2011-09-04 21:51:36 -0500 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-09-06 07:34:39 -0700 |
| commit | 8ef5aad2ac692ffea7bbca188a32a65a0ee7906c (patch) | |
| tree | df7f96401cf193f45f91cced41e6c55b7e7c6d60 /Library/Formula/gtest.rb | |
| parent | 141ddb6eb1485938dee318fb1afc27075296a3dd (diff) | |
| download | homebrew-8ef5aad2ac692ffea7bbca188a32a65a0ee7906c.tar.bz2 | |
gtest: Added --universal option
Closes #7425.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula/gtest.rb')
| -rw-r--r-- | Library/Formula/gtest.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/gtest.rb b/Library/Formula/gtest.rb index 1457c8cb2..fbac67ff0 100644 --- a/Library/Formula/gtest.rb +++ b/Library/Formula/gtest.rb @@ -5,7 +5,15 @@ class Gtest < Formula homepage 'http://code.google.com/p/googletest/' md5 '7e27f5f3b79dd1ce9092e159cdbd0635' + def options + [ + ["--universal", "Build for both 32 & 64 bit Intel."], + ] + end + def install + ENV.universal_binary if ARGV.build_universal? + 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 |
