diff options
| author | Misty De Meo | 2012-02-02 12:37:26 -0600 |
|---|---|---|
| committer | Misty De Meo | 2012-02-02 12:44:36 -0600 |
| commit | 673d4b1346d3fb3e8b6d2ff6a5e3ea4da4a27607 (patch) | |
| tree | 8b2ff9f2903e047b2e4dedf54ff326108c54baee /Library | |
| parent | 065ede7278b0f04ac1be571e86cec140fe3251f6 (diff) | |
| download | homebrew-673d4b1346d3fb3e8b6d2ff6a5e3ea4da4a27607.tar.bz2 | |
par2tbb: add conflicts warnings, clang failure
* par2tbb conflicts with par2, so issue a warning if par2 is installed.
* update handling of clang failure; this should be changed once
fails_with_clang is available
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/par2tbb.rb | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Library/Formula/par2tbb.rb b/Library/Formula/par2tbb.rb index 80d8a61c0..7c9567353 100644 --- a/Library/Formula/par2tbb.rb +++ b/Library/Formula/par2tbb.rb @@ -17,9 +17,16 @@ class Par2tbb < Formula # but only 10.6+ are available on Xcode4 inreplace 'Makefile.am', /^.*-mmacosx-version.*$/, '' - # NOTE: fails build with clang; doesn't recognize a x87 instruction - # works with llvm-g++ though. - ENV.llvm if ENV.compiler == :clang + # FIXME This should be replaced with fails_with_clang once available + if ENV.compiler == :clang + opoo "Formula will not build with Clang, using LLVM." + ENV.llvm + end + + if Formula.factory('par2').installed? + opoo "par2tbb conflicts with par2. Your par2 binaries will be overwritten. + If this bothers you, you can restore par2 with `brew link par2`." + end host_triplet = MacOS.prefer_64_bit? ? "x86_64-apple-darwin11" : "i686-apple-darwin11" |
