aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/avidemux.rb
diff options
context:
space:
mode:
authornibbles 2bits2012-04-29 23:05:58 -0700
committerJack Nagel2012-04-30 17:23:48 -0500
commit37eca004eed36a4d6296fed47d37826c02e4817e (patch)
tree981c96df50f72532643455860fa4796271f7fd2a /Library/Formula/avidemux.rb
parent800d7992a147de12c80d902cdd5dd28d0da3375c (diff)
downloadhomebrew-37eca004eed36a4d6296fed47d37826c02e4817e.tar.bz2
avidemux: adjust merged patch, use fails_with
Avidemux-2.5.6 had its one patch merged upstream the day this formula was accepted. That was hoped for but unexpected. This commit adjusts the conditional for def patches so that it only gets applied to stable. Fixes a patch failure for 32bit + HEAD. Also in this commit, remove the hardcoded `ENV.llvm` and switch to using `fails_with :clang`, surrounded by a conditional so it can still be built with clang if `--with-debug`. Closes #11959. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/avidemux.rb')
-rw-r--r--Library/Formula/avidemux.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/Library/Formula/avidemux.rb b/Library/Formula/avidemux.rb
index 8e3b4b710..c22c941ba 100644
--- a/Library/Formula/avidemux.rb
+++ b/Library/Formula/avidemux.rb
@@ -26,12 +26,20 @@ class Avidemux < Formula
depends_on 'xvid'
depends_on 'x264'
+ # Check if this still exists @ XCode-4.3.4 or 4.4.0. I think it's fixed then
+ # by llvm in clang svn. So this will have to persist for older clang.
+ fails_with :clang do
+ build 318
+ cause "error in backend: Couldn't allocate input reg for constraint"
+ end unless ARGV.include? '--with-debug'
+
def options
[[ '--with-debug', 'Enable debug build.' ]]
end
def patches
- DATA if Hardware.is_32_bit?
+ # Symbols undefined due to optimization. Fixed in head. Remove @ 2.5.7.
+ DATA if Hardware.is_32_bit? and not ARGV.build_head?
end
def install
@@ -63,8 +71,6 @@ class Avidemux < Formula
end
- # Force llvm if clang on a normal build, fails_with_clang (being sovled).
- ENV.llvm if ENV.compiler == :clang and not ARGV.include? '--with-debug'
# Build the core.
gettext = Formula.factory('gettext')
mkdir 'corebuild' do