aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2013-07-31 08:45:20 -0700
committerAdam Vandenberg2013-07-31 08:45:20 -0700
commit31b9a90ffb82db30d42d6fed7d6e498a70e1cb07 (patch)
treea326d7d6deb2167ae3031aec51a5efd6d8a9b664
parentfca42423e2471785f84032db8944e89375f33e8f (diff)
downloadhomebrew-31b9a90ffb82db30d42d6fed7d6e498a70e1cb07.tar.bz2
cmu-sphinxbase: only disallow system Pythons that have PPC
-rw-r--r--Library/Formula/cmu-sphinxbase.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Formula/cmu-sphinxbase.rb b/Library/Formula/cmu-sphinxbase.rb
index ac172a32f..d3127b1e9 100644
--- a/Library/Formula/cmu-sphinxbase.rb
+++ b/Library/Formula/cmu-sphinxbase.rb
@@ -1,9 +1,11 @@
require 'formula'
-class HomebrewedPython < Requirement
+class NoPpcPython < Requirement
fatal true
- satisfy(:build_env => false) { Formula.factory('python').installed? }
+ satisfy(:build_env => false) do
+ !archs_for_command('python').ppc?
+ end
def message; <<-EOS.undent
Compiling against the system-provided Python will likely fail.
@@ -22,7 +24,7 @@ class CmuSphinxbase < Formula
depends_on 'pkg-config' => :build
depends_on :python
- depends_on HomebrewedPython
+ depends_on NoPpcPython
depends_on 'libsndfile' => :optional
depends_on 'libsamplerate' => :optional